-
-
Notifications
You must be signed in to change notification settings - Fork 758
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
save speech separation results to disk throw IndexError,size of diarization.labels() and shape of sources.data is not same #1735
Comments
I upload the example,when i run the code,throw exception below:
|
@joonaskalda, any chance you can have a look, now that @yinyao has shared the audio file above? |
i am also running into this issue for s, speaker in enumerate(diarization.labels()):
audio = np.float32(sources.data[:, s] / np.max(np.abs(sources.data[:, s]))) # noqa |
Hello, I also encountered this problem, and I found that it may be caused by the following problem: In the |
Hey @joonaskalda, I believe @RioLLee correctly pin-pointed the reason why this happens. Do you think you'll find time to have a look? |
Hey @eschmidbauer , @RioLLee, could you provide the audios that generated the error so that I can reproduce it? Indeed, I think it's an error that doesn't have the same origin as the problem mentioned by @yinyao in his July 2 message. |
Tested versions
3.3.0
System information
win10
Issue description
I am trying use below code to separate an audio, diarization labels is 3, but when s = 1, sources.data[:,s] throw IndexError: index 1 is out of bounds for axis 1 with size 1,how can i fix it ? i want to save separated audio to disk.
Minimal reproduction example (MRE)
https://github.com/yinyao/yinyao.github.io/blob/master/4.4-Chad-Zannah.wav
The text was updated successfully, but these errors were encountered: