Use asr-wav2vec2-commonvoice-fr model offline
I have a problem with using the model asr-wav2vec2-commonvoice-fr offline(speechbrain/asr-wav2vec2-commonvoice-fr · Hugging Face).After running this code:from speechbrain.pretrained import EncoderASR
asr_model = EncoderASR.from_hparams(source="speechbrain/asr-wav2vec2-commonvoice-fr", savedir="pretrained_models/asr-wav2vec2-commonvoice-fr")The model pass to downloading the weights but even after that I can’t use it offline! If anyone has an idea about this, I would really appreciate the help!
2022-02-21T12:29:37Z
After banging my head on it for an hour, I think it’s not atransformersissue, but aspeechbrainissue.transformershas ways of saying “only use local files”, either using theTRANSFORMERS_OFFLINE=1environment variable, or using thelocal_files_only=Trueparameter to.from_pretrained(). Both of these don’t work onEncoderASR.from_hparams().According to the documentation, andthisissue, once you’ve downloaded the model,speechbrainwon’t try to download it again. However, it seems that it always does a network request using the HuggingFace Hub, and I couldn’t get around that.You might have more luck asking in their Discourse:SpeechBrain - Deep Learning and Speech Technologies.Sorry I couldn’t be more helpful, and good luck with solving this issue