Instructions to use padmalcom/wav2vec2-large-emotion-detection-german with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use padmalcom/wav2vec2-large-emotion-detection-german with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("audio-classification", model="padmalcom/wav2vec2-large-emotion-detection-german")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, Wav2Vec2ForSpeechClassification processor = AutoProcessor.from_pretrained("padmalcom/wav2vec2-large-emotion-detection-german") model = Wav2Vec2ForSpeechClassification.from_pretrained("padmalcom/wav2vec2-large-emotion-detection-german", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- de
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
tags:
|
| 6 |
+
- voice
|
| 7 |
+
- classification
|
| 8 |
+
- emotion
|
| 9 |
+
- speech
|
| 10 |
+
- audio
|
| 11 |
+
datasets:
|
| 12 |
+
- emo-DB
|
| 13 |
+
widget:
|
| 14 |
+
- src: >-
|
| 15 |
+
https://huggingface.co/padmalcom/av2vec2-large-emotion-detection-german/resolve/main/test.wav
|
| 16 |
+
example_title: Sample 1
|
| 17 |
+
pipeline_tag: audio-classification
|
| 18 |
+
metrics:
|
| 19 |
+
- accuracy
|
| 20 |
+
---
|
| 21 |
+
This wav2vec2 based emotion detection model is trained on the [emo-DB dataset](http://emodb.bilderbar.info/start.html).
|
| 22 |
+
|
| 23 |
+
Emotion classes are:
|
| 24 |
+
- 0: 'anger'
|
| 25 |
+
- 1: 'boredom'
|
| 26 |
+
- 2: 'disgust'
|
| 27 |
+
- 3: 'fear'
|
| 28 |
+
- 4: 'happiness'
|
| 29 |
+
- 5: 'sadness'
|
| 30 |
+
- 6: 'neutral'
|
| 31 |
+
|
| 32 |
+
*inference.py* shows, how the model can be used.
|