flashlight / wav2letter

Facebook AI Research's Automatic Speech Recognition Toolkit
https://github.com/facebookresearch/wav2letter/wiki
Other
6.37k stars 1.01k forks source link

Using pre-trained models with simple_streaming_asr_example #920

Closed pletessier closed 3 years ago

pletessier commented 3 years ago

I have successfully followed the tutorial to run simple_streaming_asr_example with the models dowloaded from http://dl.fbaipublicfiles.com/wav2letter/inference/examples/model/

I am now trying to use the pre-trained models presented in https://github.com/facebookresearch/wav2letter/blob/master/recipes/mls/README.md.

Is that compatible ?

I have replaced :

I have an error when running simple_streaming_asr_example :

Started acoustic model file loading ... 
terminate called after throwing an instance of 'cereal::Exception'
  what():  Error while trying to deserialize a polymorphic pointer. Could not find type id 3
Aborted (core dumped)

acoustic_model.bin and https://dl.fbaipublicfiles.com/wav2letter/mls/french/am.bin are obviously not serialized in the same format.

vineelpratap commented 3 years ago

Hi, they are not compatible. It only supports models trianed with this recipe https://github.com/facebookresearch/wav2letter/tree/master/recipes/streaming_convnets/librispeech as of now...?

You can however, follow the commands in https://github.com/facebookresearch/wav2letter/blob/master/recipes/mls/README.md#decoding to do inference (but it won't be streaming) ....