Instructions to use dima806/classical_composer_classification-new with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dima806/classical_composer_classification-new with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("audio-classification", model="dima806/classical_composer_classification-new")# Load model directly from transformers import AutoProcessor, AutoModelForAudioClassification processor = AutoProcessor.from_pretrained("dima806/classical_composer_classification-new") model = AutoModelForAudioClassification.from_pretrained("dima806/classical_composer_classification-new") - Notebooks
- Google Colab
- Kaggle
# Load model directly
from transformers import AutoProcessor, AutoModelForAudioClassification
processor = AutoProcessor.from_pretrained("dima806/classical_composer_classification-new")
model = AutoModelForAudioClassification.from_pretrained("dima806/classical_composer_classification-new")Quick Links
Currently, the model returns the confidence score that the input audio is created by one of the following classical composers found in MusicNet Dataset - a curated collection of 330 freely-licensed labeled classical music recordings - used for the training of this model:
More details in my Kaggle notebook and my Medium post.
- Downloads last month
- 14
Model tree for dima806/classical_composer_classification-new
Base model
facebook/wav2vec2-base-960h
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("audio-classification", model="dima806/classical_composer_classification-new")