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

Demonstration conformer example does not work with latest release #213

Open
giannisp-verneek opened this issue Jul 21, 2021 · 4 comments
Open

Comments

@giannisp-verneek
Copy link

I'm trying the conformer demonstration example and I am getting an initialization error:

  File "~/TensorFlowASR/examples/demonstration/conformer.py", line 66, in <module>
    conformer = Conformer(**config.model_config, vocabulary_size=text_featurizer.num_classes)
TypeError: __init__() missing 1 required positional argument: 'encoder_subsampling'

I tried it with the latest pypi release

@cookiehunter
Copy link

cookiehunter commented Jul 22, 2021

I am encountering the same problem. Also latest pypi release (gpu) with TF 2.5

Edit:
Found the issue: The zip file in google drive for the pretrained LibriSpeech subword-conformer is outdated. The individual files work.

@giannisp-verneek
Copy link
Author

Also, I realized that the config file on the drive for subsample conformer does not have the correct parameter naming for the conformer. I had to rename them based on the parameters of the conformer constructor.

@nglehuy
Copy link
Collaborator

nglehuy commented Jul 23, 2021

@cookiehunter @giannisp-verneek I'll update the pretrain config ASAP.

@zubairahmed-ai
Copy link

@usimarit same issue here

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

4 participants