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.

Can't load feature extractor for 'facebook/wav2vec2-large-xlsr-53'

See original GitHub issue

Hi @Gastron, TParcollet, I was very happy coming across speechbrain toolkit for my master project on African ASR, However i have been having serious challenges for over 24 hours trying to train a model using FONGBE dataset which i have download and is supported by speechbrain network. Below is the actual error i’m having.

f"Can't load feature extractor for '{pretrained_model_name_or_path}'. If you were trying to load it "
OSError: Can't load feature extractor for 'facebook/wav2vec2-large-xlsr-53'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'facebook/wav2vec2-large-xlsr-53' is the correct path to a directory containing a preprocessor_config.json file

when i run this command to start training python train_with_wav2vec2.py hparams/train_fon_with_wav2vec.yaml --data_folder=/localscratch/ALFFA_PUBLIC/ASR/FONGBE/data/

Acoording to the documentation on the speechbrain huggingface page.

my yaml conifguration is this

# Url for xlsr wav2vec2
#wav2vec2_hub: C:\Users\nathk\Documents\TacoProject\brain\speechbrain\xlsr_53_56k.pt
wav2vec2_hub: facebook/wav2vec2-large-xlsr-53
#wav2vec2_hub: C:/Users/nathk/Documents/TacoProject/brain/speechbrain/recipes/DVoice/ASR/CTC/results/wav2vec2_ctc_FONGBE/1250/save/wav2vec2_checkpoint/config.json


# Data files
data_folder: /localscratch/ALFFA_PUBLIC/ASR/FONGBE/data
train_csv_file: !ref <data_folder>/train.csv

I have manually downloaded the wav2vec2-large-xlsr-53 model and then replace the path in yaml file in this manner: wav2vec2_hub: C:\Users\nathk\Documents\TacoProject\brain\speechbrain\xlsr_53_56k.pt But still nothing seems to work.

Please can you assist me. FONGBE documentation link which i’m using : https://huggingface.co/speechbrain/asr-wav2vec2-dvoice-fongbe

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
TParcolletcommented, Jun 27, 2022

Yes, but make sure that it contains ALL the files from the repo 😃

0reactions
Adel-Moumencommented, Oct 15, 2022

Hello,

it seems there has been no activity for a long time, so I am closing this issue.

Feel free to reopen it if you still encounter the problem. Thank you. 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

OSerror, when loading 'wav2vec2-large-xlsr-53' Model of ...
I try to use xlsr model as the pre-trained model to finetune my own ASR model, but the xlsr model, especially tokenizer, can't...
Read more >
Facebook/wav2vec2-large-xlsr-53 on the hub: tokenizer issue
When trying to run facebook/wav2vec2-large-xlsr-53 · Hugging Face in the browser with an audio snippet, I get an error when loading the model:...
Read more >
Nepali Speech Recognition - Hugging Face - Kaggle
Some weights of Wav2Vec2ForCTC were not initialized from the model checkpoint at facebook/wav2vec2-large-xlsr-53 and are newly initialized: ['lm_head.weight', ' ...
Read more >
huggingface wav2vec github - MEDIA KALTIM
Tensor] = None Constructs a Wav2Vec2 processor which wraps a Wav2Vec2 feature extractor and a Wav2Vec2 CTC tokenizer into a single These models...
Read more >
Fine-tuning XLSR-Wav2Vec2 for Multi-Lingual ASR with ...
For demonstration purposes, we fine-tune the wav2vec2-large-xlsr-53 on the low resource Kannada ASR ... Prepare Data, Tokenizer, Feature Extractor.
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