Instructions to use dima806/music_genres_classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dima806/music_genres_classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("audio-classification", model="dima806/music_genres_classification")# Load model directly from transformers import AutoProcessor, AutoModelForAudioClassification processor = AutoProcessor.from_pretrained("dima806/music_genres_classification") model = AutoModelForAudioClassification.from_pretrained("dima806/music_genres_classification") - Notebooks
- Google Colab
- Kaggle
Music genre classification is a fundamental and versatile application in many various domains. Some possible use cases for music genre classification include:
- music recommendation systems;
- content organization and discovery;
- radio broadcasting and programming;
- music licensing and copyright management;
- music analysis and research;
- content tagging and metadata enrichment;
- audio identification and copyright protection;
- music production and creativity;
- healthcare and therapy;
- entertainment and gaming.
The model is trained based on publicly available dataset of labeled music data β GTZAN Dataset β that contains 1000 sample 30-second audio files evenly split among 10 genres:
- blues;
- classical;
- country;
- disco;
- hip-hop;
- jazz;
- metal;
- pop;
- reggae;
- rock.
The final code is available as a Kaggle notebook. See also my Medium article for more details.
- Downloads last month
- 601,794