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

ZeroDivisionError: division by zero #137

Open
wailokkwok opened this issue Jun 5, 2024 · 0 comments
Open

ZeroDivisionError: division by zero #137

wailokkwok opened this issue Jun 5, 2024 · 0 comments

Comments

@wailokkwok
Copy link

Traceback (most recent call last):
File "run_pseudo_labelling.py", line 1028, in
main()
File "run_pseudo_labelling.py", line 1011, in main
eval_step_with_save(split=split)
File "run_pseudo_labelling.py", line 941, in eval_step_with_save
wer_metric, pred_str, label_str, norm_pred_str, norm_label_str, eval_ids = compute_metrics(
File "run_pseudo_labelling.py", line 818, in compute_metrics
wer = 100 * metric.compute(predictions=norm_pred_str, references=norm_label_str)
File "/home/ubuntu/whisper/whisper/lib/python3.8/site-packages/evaluate/module.py", line 467, in compute
output = self._compute(**inputs, **compute_kwargs)
File "/home/ubuntu/.cache/huggingface/modules/evaluate_modules/metrics/evaluate-metric--wer/85bee9e4216a78bb09b2d0d500f6af5c23da58f9210e661add540f5df6630fcd/wer.py", line 106, in _compute
return incorrect / total
ZeroDivisionError: division by zero

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

1 participant