Skip to content
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

ValueError: 'diag' covars must be positive #370

Open
Obile19 opened this issue Apr 30, 2022 · 1 comment
Open

ValueError: 'diag' covars must be positive #370

Obile19 opened this issue Apr 30, 2022 · 1 comment

Comments

@Obile19
Copy link

Obile19 commented Apr 30, 2022

Hi, When I pass 0 or bad number of speaker to diarization function, I have an error!
What should I do now?

@oulfik
Copy link

oulfik commented Apr 30, 2022

Have the same issue when setting numberOfSpeakers to 0 while using the command-line example in the wiki.

C:\Users\oliver\Desktop\digMed\Datenstrukturen und Analysemethoden im Gesundheitsbereich\diarization\pyaudioanalysis\pyAudioAnalysis\pyAudioAnalysis\audioSegmentation.py:326: RuntimeWarning: invalid value encountered in true_divide
transmutation_matrix[i, :] /= transmutation_matrix[i, :].sum()
Traceback (most recent call last):
File "C:\Users\oliver\Desktop\digMed\Datenstrukturen und Analysemethoden im Gesundheitsbereich\diarization\pyaudioanalysis\pyAudioAnalysis\pyAudioAnalysis\audioAnalysis.py", line 617, in
speakerDiarizationWrapper(args.input, args.num, args.flsd)
File "C:\Users\oliver\Desktop\digMed\Datenstrukturen und Analysemethoden im Gesundheitsbereich\diarization\pyaudioanalysis\pyAudioAnalysis\pyAudioAnalysis\audioAnalysis.py", line 239, in speakerDiarizationWrapper
aS.speaker_diarization(inputFile, numSpeakers, lda_dim=0, plot_res=True)
File "C:\Users\oliver\Desktop\digMed\Datenstrukturen und Analysemethoden im Gesundheitsbereich\diarization\pyaudioanalysis\pyAudioAnalysis\pyAudioAnalysis\audioSegmentation.py", line 1005, in speaker_diarization
hmm.means_ = means; hmm.covars_ = cov
File "C:\Users\oliver\Desktop\digMed\Datenstrukturen und Analysemethoden im Gesundheitsbereich\diarization\pyaudioanalysis\pyAudio-env\lib\site-packages\hmmlearn\hmm.py", line 182, in covars_
_utils._validate_covars(covars, self.covariance_type,
File "C:\Users\oliver\Desktop\digMed\Datenstrukturen und Analysemethoden im Gesundheitsbereich\diarization\pyaudioanalysis\pyAudio-env\lib\site-packages\hmmlearn_utils.py", line 28, in _validate_covars
raise ValueError("'diag' covars must be positive")
ValueError: 'diag' covars must be positive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants