Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Error in utils.py when evaluating #50

Open
stingerpk opened this issue Sep 2, 2017 · 1 comment
Open

Error in utils.py when evaluating #50

stingerpk opened this issue Sep 2, 2017 · 1 comment
Assignees

Comments

@stingerpk
Copy link

Hello, I am using evaluating using the following command:

python evaluate.py --manifest val:/path/to/manifest.csv --model_file /path/to/librispeech_16_epochs.prm --use_wer --inference_file /path/to/results.pkl

I get the following error:

Traceback (most recent call last):
  File "evaluate.py", line 103, in <module>
    use_wer=args.use_wer)
  File "/home/ubuntu/nervana/deepspeech/speech/utils.py", line 75, in get_wer
    progress_string = get_progress_string(be.bsz, batchcount, nbatches)
  File "/home/ubuntu/nervana/deepspeech/speech/utils.py", line 23, in get_progress_string
    bar_width = int(float(bcount) / nbatches * max_bar_width)
ZeroDivisionError: float division by zero

I am using current master versions of aeon, neon and deepspeech.

@stingerpk stingerpk changed the title Error in util.py when evaluating Error in utils.py when evaluating Sep 2, 2017
@tyler-nervana
Copy link
Contributor

Could you show a few lines of your manifest file? That error indicates that nbatches is 0, but that implies that your dataset has 0 items in it.

@tyler-nervana tyler-nervana self-assigned this Sep 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants