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

how can i use this to make inference ? #35

Closed
vishvesh098 opened this issue May 26, 2024 · 6 comments
Closed

how can i use this to make inference ? #35

vishvesh098 opened this issue May 26, 2024 · 6 comments

Comments

@vishvesh098
Copy link

kindly guide me on how to make inference using this model.

@hagenw
Copy link
Member

hagenw commented May 27, 2024

Looking at audeering/audonnx#86, I guess the description under https://github.com/audeering/w2v2-how-to?tab=readme-ov-file#quick-start did not work for you?

@vishvesh098
Copy link
Author

Yes but in the notebook where it train/test on dataset it provides result in emotion such as anger sad neutral etc. I want to get output in terms of emotion.

Actually i want to ask how to get inference in terms of emotion ? Or in other words how to convert VAD signals to emotion.

Kindly help me.

@hagenw
Copy link
Member

hagenw commented May 29, 2024

The model was not trained to output emotional categories, what we do in the notebook is we use its hidden_states output as a feature extractor. Those features we then use to train on a database with emotional categories using a classical Support Vector Classification approach.

@vishvesh098
Copy link
Author

Ok. Interesting. Thank you. I will try to first train the hidden states on the datasets with category and then make inference from it.

If there is some code snippet or guidance available it would be very beneficial.

@hagenw
Copy link
Member

hagenw commented May 29, 2024

Most likely, you can just follow the "Use embeddings to train categorical emotion model" section from the notebook.
But note, that we just use a basic SVM classifier, and a small dataset. You might be interested to use another classifier and more data to fine-tune the model for the categorical emotion task.

Otherwise, you might look for models on HuggingFace, that are already trained to predict emotional categories, e.g. https://huggingface.co/ehcalabres/wav2vec2-lg-xlsr-en-speech-emotion-recognition.

@vishvesh098
Copy link
Author

Thank you. I will look into it.

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

2 participants