_voice_activity_detection: division by zero

25 views
Skip to first unread message

Márton Makrai

unread,
Oct 10, 2016, 3:39:11 AM10/10/16
to bob-devel

Dear People,

I get the error bellow

  File "/home/makrai/tool/python/venv2/local/lib/python2.7/site-packages/bob/bio/spear/preprocessor/Energy_2Gauss.py", line 80, in _voice_activity_detection
    bob.learn.em.train(kmeans_trainer, kmeans, normalized_energy, self.max_iterations, self.convergence_threshold)
  File "/home/makrai/tool/python/venv2/local/lib/python2.7/site-packages/bob/learn/em/train.py", line 61, in train
    convergence_value = abs((average_output_previous - average_output)/average_output_previous)
ZeroDivisionError: float division by zero

Could you please tell me what may have caused this, and suggest a solution?

Thanks
Márton Makrai

Pavel Korshunov

unread,
Oct 10, 2016, 8:11:54 AM10/10/16
to bob-...@googlegroups.com
Hi Márton,

It seems that the energy across the whole audio sample is the same, as KMeans clusters all energy values in the same point. So, it looks like you are applying voice activity detection to the audio file with a constant tone, i.e., its energy is constant and there is no voice activity. What kind of audio data are you using?

Best,
-pavel

--
-- You received this message because you are subscribed to the Google Groups bob-devel group. To post to this group, send email to bob-...@googlegroups.com. To unsubscribe from this group, send email to bob-devel+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/bob-devel or directly the project website at http://idiap.github.com/bob/
---
You received this message because you are subscribed to the Google Groups "bob-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bob-devel+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Dr. Pavel Korshunov
Biometric group
Idiap Research Institute
Rue Marconi 19
CH - 1920 Martigny
Switzerland

Room: 207
Reply all
Reply to author
Forward
0 new messages