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

library import issue #3

Open
luckytito opened this issue Jul 9, 2021 · 3 comments
Open

library import issue #3

luckytito opened this issue Jul 9, 2021 · 3 comments

Comments

@luckytito
Copy link

luckytito commented Jul 9, 2021

I'm trying to use the model "m3hrdadfi/wav2vec2-base-100k-gtzan-music-genres". For doing it I'm following your guide at ([https://huggingface.co/m3hrdadfi/wav2vec2-base-100k-gtzan-music-genres]). I cloned the model to local. My problem is this row of code:

model = Wav2Vec2ForSpeechClassification.from_pretrained(model_name_or_path).to(device)

generates the error:

NameError: name 'Wav2Vec2ForSpeechClassification' is not defined

It seems that this model doesn't exists. How to solve it?

@1shershah
Copy link

Did you git checkout soxan? The classes are right there in src folder.

@SaschaHeyer
Copy link

running into the same issue

@SaschaHeyer
Copy link

SaschaHeyer commented Jun 15, 2023

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

3 participants