Audio Classification
Transformers
Safetensors
English
audio-spectrogram-transformer
audio
ast
music
mood
Instructions to use guyPerry/audio-mood-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use guyPerry/audio-mood-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("audio-classification", model="guyPerry/audio-mood-classifier")# Load model directly from transformers import AutoFeatureExtractor, AutoModelForAudioClassification extractor = AutoFeatureExtractor.from_pretrained("guyPerry/audio-mood-classifier") model = AutoModelForAudioClassification.from_pretrained("guyPerry/audio-mood-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Fix id2label with real class names
Browse files- config.json +7 -7
config.json
CHANGED
|
@@ -9,16 +9,16 @@
|
|
| 9 |
"hidden_dropout_prob": 0.0,
|
| 10 |
"hidden_size": 768,
|
| 11 |
"id2label": {
|
| 12 |
-
"0": "
|
| 13 |
-
"1": "
|
| 14 |
-
"2": "
|
| 15 |
},
|
| 16 |
"initializer_range": 0.02,
|
| 17 |
"intermediate_size": 3072,
|
| 18 |
"label2id": {
|
| 19 |
-
"
|
| 20 |
-
"
|
| 21 |
-
"
|
| 22 |
},
|
| 23 |
"layer_norm_eps": 1e-12,
|
| 24 |
"max_length": 1024,
|
|
@@ -32,4 +32,4 @@
|
|
| 32 |
"time_stride": 10,
|
| 33 |
"transformers_version": "5.13.1",
|
| 34 |
"use_cache": false
|
| 35 |
-
}
|
|
|
|
| 9 |
"hidden_dropout_prob": 0.0,
|
| 10 |
"hidden_size": 768,
|
| 11 |
"id2label": {
|
| 12 |
+
"0": "calm_melancholic",
|
| 13 |
+
"1": "energetic_upbeat",
|
| 14 |
+
"2": "moderate_neutral"
|
| 15 |
},
|
| 16 |
"initializer_range": 0.02,
|
| 17 |
"intermediate_size": 3072,
|
| 18 |
"label2id": {
|
| 19 |
+
"calm_melancholic": 0,
|
| 20 |
+
"energetic_upbeat": 1,
|
| 21 |
+
"moderate_neutral": 2
|
| 22 |
},
|
| 23 |
"layer_norm_eps": 1e-12,
|
| 24 |
"max_length": 1024,
|
|
|
|
| 32 |
"time_stride": 10,
|
| 33 |
"transformers_version": "5.13.1",
|
| 34 |
"use_cache": false
|
| 35 |
+
}
|