Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Wav2Vec2FeatureExtractor' object has no attribute 'feature_extractor' #13

Closed
freds0 opened this issue Apr 2, 2022 · 0 comments
Closed

Comments

@freds0
Copy link

freds0 commented Apr 2, 2022

When running wav2vec training using my dataset, the following problem occurred, on line 296 of the run_wav2vec_clf.py script:

Traceback (most recent call last): File "run_wav2vec_clf.py", line 490, in <module> main() File "run_wav2vec_clf.py", line 295, in main target_sampling_rate = feature_extractor.feature_extractor.sampling_rate AttributeError: 'Wav2Vec2FeatureExtractor' object has no attribute 'feature_extractor'

The solution for me was to replace with the line:

target_sampling_rate = feature_extractor.sampling_rate

Hope this helps if anyone else has the same problem.

@freds0 freds0 closed this as completed Apr 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant