-
Notifications
You must be signed in to change notification settings - Fork 37
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
UnboundLocalError: local variable 'feas' referenced before assignment #18
Comments
Do you have the |
yeah.. Thankyou. I was missing
|
While trying to execute the below command ..
python spk-diarization2.py /mnt/c/users/karthikeyan/Downloads/proper.wav
am getting,
Reading file: /mnt/c/users/karthikeyan/Downloads/proper.wav
Writing output to: stdout
Using feacat from: /home/userk/speaker-diarization/feacat
Writing temporal files in: /tmp
Writing lna files in: /home/userk/speaker-diarization/lna
Writing exp files in: /home/userk/speaker-diarization/exp
Writing features in: /home/userk/speaker-diarization/fea
Performing exp generation and feacat concurrently
Traceback (most recent call last):
File "./generate_exp.py", line 37, in
from docopt import docopt
ImportError: No module named docopt
Calling voice-detection2.py
Reading recipe from: /tmp/initrypiaG.recipe
Reading .exp files from: /home/userk/speaker-diarization/exp
Writing output to: /tmp/vadHJVgzE.recipe
Sample rate set to: 125
Minimum speech turn duration: 0.5 seconds
Minimum nonspeech between-turns duration: 1.5 seconds
Segment before expansion set to: 0.0 seconds
Segment end expansion set to: 0.0 seconds
Error, /home/userk/speaker-diarization/exp/proper.exp does not exist
Waiting for feacat to end.
Calling spk-change-detection.py
Reading recipe from: /tmp/vadHJVgzE.recipe
Reading feature files from: /home/userk/speaker-diarization/fea
Feature files extension: .fea
Writing output to: /tmp/spkcM3EdlF.recipe
Conversion rate set to frame rate: 125.0
Using a growing window
Deltaws set to: 0.096 seconds
Using BIC as distance measure, lambda = 1.0
Window size set to: 1.0 seconds
Window step set to: 3.0 seconds
Threshold distance: 0.0
Useful metrics for determining the right threshold:
Maximum between windows distance: 0
Total windows: 0
Total segments: 0
Maximum between detected segments distance: 0
Total detected speaker changes: 0
Calling spk-clustering.py
('===', '/tmp/spkcM3EdlF.recipe')
Reading recipe from: /tmp/spkcM3EdlF.recipe
Reading feature files from: /home/userk/speaker-diarization/fea
Feature files extension: .fea
Writing output to: stdout
Conversion rate set to frame rate: 125.0
Using hierarchical clustering
Using BIC as distance measure, lambda = 1.3
Threshold distance: 0.0
Maximum speakers: 0
('::::::::::::::::::::::::::::::::::', 0)
Initial cluster with: 0 speakers
Traceback (most recent call last):
File "./spk-clustering.py", line 432, in
process_recipe(parsed_recipe, speakers, outf)
File "./spk-clustering.py", line 293, in process_recipe
spk_cluster_m(feas[1], recipe, speakers, outf, dist, segf)
UnboundLocalError: local variable 'feas' referenced before assignment
I tried looking into
spk-clustering.py
. thelen(receipe)
andfeas
values are 0....thank you,
The text was updated successfully, but these errors were encountered: