question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Extremely slow when evaluating

See original GitHub issue

Hi, I am running stage 3 of egs/librimix/ConvTasNet/run.sh. I used --compute_wer 1 --eval_mode max to evaluate WER. However, it is running extremely slow.

2%|█▉                                                                                                  | 58/3000 [46:02<29:01:05, 35.51s/it

It takes more than one day to complete. I checked with nvidia-smi, and it was computing with GPU. However, I think only the separation process is running with GPU. I looked through the code eval.py and found out that numpy arrays are fed to the wer_tracker. So I think that for the asr part, it is evaluating in CPU mode. Is there any reason this can’t be calculated with GPUs?

By the way, I see that eval.py is evaluating with the “Shinji Watanabe/librispeech_asr_train_asr_transformer_e18_raw_bpe_sp_valid.acc.best” asr model. Is it possible to switch to other kinds of asr models by modifying line 52?

Thanks

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
popcornellcommented, Aug 10, 2021

At the time full decoding on GPU was not implemented with batched inputs. I recall the reason was something like this, we had problems running on GPU. Looks like now it runs smooth on GPU, thanks to the ESPNet gang and thank you for trying this. If you have time add an argument like use_gpu and submit a PR it would be great

1reaction
mparientecommented, Aug 9, 2021

Yes, ASR is very long on CPU. I don’t remember why we didn’t run it on GPU in the first place, maybe memory issues? Can’t remember. Maybe @popcornell or @JorisCos would remember?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Evaluating prediction extremely slow - Stack Overflow
There are 10,000 images and labels. When I do this, my computer slows down tremendously and a lot of computation is used, and...
Read more >
(PDF) Does Fast or Slow Evaluation Foster Greater Certainty?
Integrating diverse findings from past research, the authors propose that perceiving either fast or slow evaluation can augment attitude ...
Read more >
Does Fast or Slow Evaluation Foster Greater Certainty?
Integrating diverse findings from past research, the authors propose that perceiving either fast or slow evaluation can augment attitude certainty depending on ...
Read more >
Really slow evaluation of a simple? list expression
A zero-order interpolation is a good way to in effect invert the function from positive integers to values in sortedlist .
Read more >
Very slow "Evaluating local variables" dialog is making remote ...
During remote debugging, "Evaluating local variables" dialog pops up after any action and takes very long time, making remote debugging unusably slow (30sec ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found