Views
No views yet
| Emotion | Accuracy | F1 Score | Valid Samples | Ignored Samples |
|---|---|---|---|---|
| angry | 0.8762 | 0.0000 | 4749 | 0 |
| disgust | 0.9872 | 0.0000 | 4749 | 0 |
| fear | 0.9821 | 0.0000 | 4749 | 0 |
| happy | 0.8793 | 0.0000 | 4749 | 0 |
| neutral | 0.6477 | 0.0000 | 4749 | 0 |
| depress | 0.9111 | 0.0000 | 4749 | 0 |
| surprise | 0.9299 | 0.0000 | 4749 | 0 |
| frustrated | 0.6949 | 0.0000 | 1996 | 2753 |
| excited | 0.7996 | 0.0000 | 1996 | 2753 |
1{
2 "model_id": "facebook/wav2vec2-base",
3 "emotion_labels": [
4 "angry",
5 "disgust",
6 "fear",
7 "happy",
8 "neutral",
9 "depress",
10 "surprise",
11 "frustrated",
12 "excited"
13 ],
14 "num_classes": 9,
15 "ignore_label": -100,
16 "batch_size": 4,
17 "num_epochs": 6,
18 "learning_rate": 0.0001,
19 "warmup_steps": 100,
20 "gradient_accumulation_steps": 4,
21 "classification_threshold": 0.5,
22 "weight_decay": 0.01,
23 "max_grad_norm": 1.0,
24 "seed": 42
25}1import torch
2from transformers import Wav2Vec2Processor
3
4# Load model and processor
5model = # Load your model here
6processor = Wav2Vec2Processor.from_pretrained('mangoesai/wav2vec2-emotion-classifier-V2')
7
8# Process audio
9inputs = processor(audio_array, sampling_rate=16000, return_tensors="pt", padding=True)
10
11# Get predictions
12with torch.no_grad():
13 outputs = model(inputs.input_values, inputs.attention_mask)
14 probabilities = torch.sigmoid(outputs)
15 predictions = (probabilities > 0.5).int()1@misc{wav2vec2-emotion-classifier,
2 author = {Your Name},
3 title = {Wav2Vec2 Multi-Label Emotion Classifier},
4 year = {2024},
5 publisher = {HuggingFace},
6 url = {https://huggingface.co/mangoesai/wav2vec2-emotion-classifier-V2}
7}