Run this model with HF Jobs
Run dima806/music_genres_classification on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/dima806/music_genres_classification. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/dima806/music_genres_classification on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForAudioClassification processor = AutoProcessor.from_pretrained("dima806/music_genres_classification") model = AutoModelForAudioClassification.from_pretrained("dima806/music_genres_classification", device_map="auto") - 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
- 1,700