load_model_ensemble() got an unexpected keyword argument 'model_state'??
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
It seems like a problem with loading the model, but I can't figure out what I did wrong?
Hello @abnerLing , did you solve the problem? I have the same issue.
@EmreOzkose After pulling the latest commit and downloading the new model at least for the multilingual one (https://github.com/pytorch/fairseq/issues/3042#issuecomment-759835759) it ended up working for me.
Having same issue.
File "examples/speech_recognition/infer.py", line 427, in
Also having the same issue
Hi, I have the same issue. Did anyone solve this problem?
same here. any resolutions?
cp1 = './vq-wav2vec_kmeans.pt'
cp2 = './vq-wav2vec.pt'
wav2vec, metadata = load_model_ensemble([cp1, cp2])
Use load_model_ensemble([cp1, cp2]) with string paths, not loaded model states.