marsyas/gtzan
Updated • 2.81k • 18
How to use shamsaH/ast-gtzan with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("audio-classification", model="shamsaH/ast-gtzan") # Load model directly
from transformers import AutoFeatureExtractor, AutoModelForAudioClassification
extractor = AutoFeatureExtractor.from_pretrained("shamsaH/ast-gtzan")
model = AutoModelForAudioClassification.from_pretrained("shamsaH/ast-gtzan", device_map="auto")This model is a fine-tuned version of MIT/ast-finetuned-audioset-10-10-0.4593 on the GTZAN dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.6923 | 1.0 | 50 | 0.7741 | 0.73 |
| 0.3050 | 2.0 | 100 | 0.5227 | 0.845 |
| 0.1151 | 3.0 | 150 | 0.5137 | 0.85 |
| 0.0343 | 4.0 | 200 | 0.5492 | 0.845 |
| 0.0184 | 5.0 | 250 | 0.5301 | 0.825 |
| 0.0021 | 6.0 | 300 | 0.3934 | 0.88 |
| 0.0006 | 7.0 | 350 | 0.4942 | 0.86 |
| 0.0006 | 8.0 | 400 | 0.4131 | 0.88 |
| 0.0207 | 9.0 | 450 | 0.4362 | 0.875 |
| 0.0025 | 10.0 | 500 | 0.4199 | 0.875 |
Base model
MIT/ast-finetuned-audioset-10-10-0.4593