marsyas/gtzan
Updated • 1.71k • 17
How to use explorer7/gtzan-ast-classifier with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("audio-classification", model="explorer7/gtzan-ast-classifier") # Load model directly
from transformers import AutoFeatureExtractor, AutoModelForAudioClassification
extractor = AutoFeatureExtractor.from_pretrained("explorer7/gtzan-ast-classifier")
model = AutoModelForAudioClassification.from_pretrained("explorer7/gtzan-ast-classifier")# Load model directly
from transformers import AutoFeatureExtractor, AutoModelForAudioClassification
extractor = AutoFeatureExtractor.from_pretrained("explorer7/gtzan-ast-classifier")
model = AutoModelForAudioClassification.from_pretrained("explorer7/gtzan-ast-classifier")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.6403 | 1.0 | 113 | 0.4655 | 0.87 |
| 0.2874 | 2.0 | 226 | 0.6336 | 0.82 |
| 0.1274 | 3.0 | 339 | 0.4641 | 0.87 |
| 0.0465 | 4.0 | 452 | 0.5623 | 0.83 |
| 0.0285 | 5.0 | 565 | 0.3886 | 0.89 |
| 0.0042 | 6.0 | 678 | 0.2969 | 0.92 |
| 0.0006 | 7.0 | 791 | 0.3001 | 0.92 |
| 0.0003 | 8.0 | 904 | 0.3014 | 0.92 |
| 0.0003 | 9.0 | 1017 | 0.3009 | 0.92 |
| 0.0022 | 10.0 | 1130 | 0.2989 | 0.92 |
Base model
MIT/ast-finetuned-audioset-10-10-0.4593
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("audio-classification", model="explorer7/gtzan-ast-classifier")