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

KeyError : No AudioToMelSpectrogramPreprocessor in 2_Online_ASR_Microphone_Demo.ipynb #585

Closed
ierezell opened this issue Apr 21, 2020 · 2 comments

Comments

@ierezell
Copy link

ierezell commented Apr 21, 2020

  • Wanted behaviour :
    Run the notebook following given instructions

  • Actual Behaviour :
    In model_definition['AudioToMelSpectrogramPreprocessor']['dither'] = 0
    KeyError: 'AudioToMelSpectrogramPreprocessor'

There is no field AudioToMelSpectrogramPreprocessor in the yaml, thus all the subfields leads to error (same for model_definition['AudioToMelSpectrogramPreprocessor']['features'],
model_definition['AudioToMelSpectrogramPreprocessor']['pad_to'])

(tried with other files as well with no success)

@ierezell ierezell changed the title KeyError in 2_Online_ASR_Microphone_Demo.ipynb KeyError : No AudioToMelSpectrogramPreprocessor in 2_Online_ASR_Microphone_Demo.ipynb Apr 21, 2020
@redoctopus
Copy link
Collaborator

Looks like the checkpoint has an older version of the quartznet15x5 config, and the class name has changed. Either one of the following should fix the error:

  1. Use the config at examples/asr/configs/quartznet15x5.yaml, or
  2. Change the key AudioPreprocessing to AudioToMelSpectrogramPreprocessor in the YAML file you are currently using.

@ierezell
Copy link
Author

Thanks for the quick response !

Fixed by taking the config from github, the notebook is working (still have a pulseaudio bug on my side).

dcurran90 pushed a commit to dcurran90/NeMo that referenced this issue Oct 15, 2024
dcurran90 pushed a commit to dcurran90/NeMo that referenced this issue Oct 15, 2024
…VIDIA#512) (NVIDIA#661)

Revert "Docs: Model needs to be served and ready before generating (NVIDIA#585)"

This reverts commit 7af2491.

lab generate starts an internal lab server since PR NVIDIA#512.

Signed-off-by: Christian Heimes <[email protected]>
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

2 participants