marsyas/gtzan
Updated • 9.08k • 17
How to use vadhri/wav2vec2-base-finetuned-gtzan with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("audio-classification", model="vadhri/wav2vec2-base-finetuned-gtzan") # Load model directly
from transformers import AutoProcessor, AutoModelForAudioClassification
processor = AutoProcessor.from_pretrained("vadhri/wav2vec2-base-finetuned-gtzan")
model = AutoModelForAudioClassification.from_pretrained("vadhri/wav2vec2-base-finetuned-gtzan", device_map="auto")This model is a fine-tuned version of facebook/wav2vec2-base 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 | Accuracy | Validation Loss |
|---|---|---|---|---|
| 2.0297 | 1.0 | 113 | 0.46 | 2.0056 |
| 1.6252 | 2.0 | 226 | 0.61 | 1.5821 |
| 1.4001 | 3.0 | 339 | 0.62 | 1.3967 |
| 1.0201 | 4.0 | 452 | 0.77 | 1.1288 |
| 1.0074 | 5.0 | 565 | 0.69 | 1.0933 |
| 0.8466 | 6.0 | 678 | 0.76 | 0.9162 |
| 0.6966 | 7.0 | 791 | 0.79 | 0.9122 |
| 0.5324 | 8.0 | 904 | 0.82 | 0.7715 |
| 0.6692 | 9.0 | 1017 | 1.0549 | 0.71 |
| 0.7181 | 10.0 | 1130 | 0.8758 | 0.76 |
| 0.5585 | 11.0 | 1243 | 1.0753 | 0.7 |
| 0.4479 | 12.0 | 1356 | 1.1517 | 0.7 |
| 0.3145 | 13.0 | 1469 | 0.8475 | 0.79 |
| 0.8197 | 14.0 | 1582 | 0.8852 | 0.78 |
| 0.4665 | 15.0 | 1695 | 1.0134 | 0.77 |
| 0.2371 | 16.0 | 1808 | 1.0250 | 0.75 |
| 0.3823 | 17.0 | 1921 | 0.9516 | 0.81 |
| 0.5478 | 18.0 | 2034 | 1.2008 | 0.77 |
| 0.3165 | 19.0 | 2147 | 1.0737 | 0.8 |
| 0.1403 | 20.0 | 2260 | 0.9801 | 0.83 |
| 0.2754 | 21.0 | 2373 | 1.0137 | 0.82 |
| 0.2649 | 22.0 | 2486 | 1.2249 | 0.77 |
| 0.0686 | 23.0 | 2599 | 1.3234 | 0.77 |
| 0.0073 | 24.0 | 2712 | 1.2360 | 0.8 |
| 0.0068 | 25.0 | 2825 | 1.1338 | 0.81 |
| 0.0058 | 26.0 | 2938 | 1.2976 | 0.79 |
| 0.0054 | 27.0 | 3051 | 1.1782 | 0.83 |
| 0.0047 | 28.0 | 3164 | 1.0677 | 0.84 |
| 0.0045 | 29.0 | 3277 | 1.1128 | 0.83 |
| 0.0036 | 30.0 | 3390 | 1.1602 | 0.81 |
Base model
facebook/wav2vec2-base