You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
In the speechbrain/asr-wav2vec2-ctc-aishell task, how can I load a local model for inference instead of downloading it from HuggingFace?
#2745
Traceback (most recent call last):
File "c:\Users\Lenovo\Desktop\ASR_prjs\speechbrain\debug.py", line 4, in <module>
asr_model = foreign_class(source="C:/Users/Lenovo/Desktop/ASR_prjs/speechbrainasr-wav2vec2-ctc-aishell", pymodule_file="custom_interface.py", classname="CustomEncoderDecoderASR")
File "c:\Users\Lenovo\Desktop\ASR_prjs\speechbrain\speechbrain\inference\interfaces.py", line 109, in foreign_class
hparams_local_path = fetch(
File "c:\Users\Lenovo\Desktop\ASR_prjs\speechbrain\speechbrain\utils\fetching.py", line 387, in fetch
fetched_file = huggingface_hub.hf_hub_download(
File "C:\softwares\Anaconda\path\envs\speech\lib\site-packages\huggingface_hub\utils\_validators.py", line 106, in _inner_fn
validate_repo_id(arg_value)
File "C:\softwares\Anaconda\path\envs\speech\lib\site-packages\huggingface_hub\utils\_validators.py", line 154, in validate_repo_id
raise HFValidationError(
huggingface_hub.errors.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': 'C:/Users/Lenovo/Desktop/ASR_prjs/speechbrainasr-wav2vec2-ctc-aishell'. Use `repo_type` argument if needed.
The model seems like it cannot be loaded using EncoderDecoderASR.from_hparams from speechbrain.pretrained. How should I load the model locally instead?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
I downloaded the model from HuggingFace to my local machine and tried to call it using the following:
but I encountered an error:
The model seems like it cannot be loaded using
EncoderDecoderASR.from_hparamsfromspeechbrain.pretrained. How should I load the model locally instead?All reactions