Instructions to use jananiramaseshan/genre-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jananiramaseshan/genre-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("audio-classification", model="jananiramaseshan/genre-classifier")# Load model directly from transformers import AutoProcessor, AutoModelForAudioClassification processor = AutoProcessor.from_pretrained("jananiramaseshan/genre-classifier") model = AutoModelForAudioClassification.from_pretrained("jananiramaseshan/genre-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
genre-classifier
This model is a fine-tuned version of dima806/music_genres_classification on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 3.5166
- Accuracy: 0.4
- F1: 0.3916
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 2e-05
- train_batch_size: 4
- eval_batch_size: 16
- seed: 42
- gradient_accumulation_steps: 4
- total_train_batch_size: 16
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- num_epochs: 2
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|---|---|---|---|---|---|
| 15.0231 | 1.0 | 225 | 3.9793 | 0.33 | 0.3024 |
| 15.2275 | 2.0 | 450 | 3.5166 | 0.4 | 0.3916 |
Framework versions
- Transformers 5.0.0
- Pytorch 2.10.0+cu128
- Datasets 4.8.3
- Tokenizers 0.22.2
- Downloads last month
- 7
Model tree for jananiramaseshan/genre-classifier
Base model
facebook/wav2vec2-base-960h Finetuned
dima806/music_genres_classification