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.

load_model_ensemble() got an unexpected keyword argument 'model_state'??

See original GitHub issue

When trying to evaluate pretrained models I keep getting the below error. The same error occurs for the multi-lingual model and the wav2vec_small_100h.pt model… I didn’t finetune the models as I wanted to check the fairseq provided models first. I’m using the same dictionary and using the fairseq transformer LM. Flashlight python bindings are install correctly and I built fairseq from source using pip install --editable ./ from the master directory.

python ../speech_recognition/infer.py ./english_test/text/ --task audio_pretraining --nbest 1 --path ./pretrained/xlsr_53_56k.pt --results-path ./english_test/ --w2l-decoder fairseqlm --lm-model ./pretrained/lm_librispeech_word_transformer.pt --lm-weight 2 --word-score -1 --sil-weight 0 --criterion ctc --labels ltr

2021-01-11 00:47:43 | INFO | main | | decoding with criterion ctc 2021-01-11 00:47:43 | INFO | main | | loading model(s) from ./pretrained/xlsr_53_56k.pt Traceback (most recent call last): File “…/speech_recognition/infer.py”, line 428, in <module> cli_main() File “…/speech_recognition/infer.py”, line 424, in cli_main main(args) File “…/speech_recognition/infer.py”, line 230, in main models, saved_cfg = checkpoint_utils.load_model_ensemble( TypeError: load_model_ensemble() got an unexpected keyword argument ‘model_state’

It seems like a problem with loading the model, but I can’t figure out what I did wrong?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

1reaction
AbirMessaoudicommented, Apr 13, 2021

Hi, I have the same issue. Did anyone solve this problem?

1reaction
alexbittarcommented, Apr 9, 2021

Also having the same issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Model.save() got an unexpected keyword argument 'commit ...
im trying implement the register form and i geting this erorr: Model.save() got an unexpected keyword argument ' ...
Read more >
tb_logger Error: got an unexpected keyword argument ...
Hi, I'm trying to run train.py on Google Colab. interact.py works fine, but when trying to fine-tune, "!python train.py" (with or without arguments)...
Read more >
Calling serializer.save() method with additional argument ...
Calling serializer.save() method with additional argument gives "save() got an unexpected keyword argument". 373 views.
Read more >
Django : __init__() got an unexpected keyword argument 'user'
Django : __init__() got an unexpected keyword argument 'user' [ Beautify Your Computer : https://www.hows.tech/p/recommended.html ] Django ...
Read more >
getter() got an unexpected keyword argument 'x_range'. Any ...
I cannot create a graph. When I run any program with 'get_' function in it, for example get_graph it gives back TypeError: getter()...
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