marsyas/gtzan
Updated • 2.13k • 18
How to use Ryukijano/distilhubert-finetuned-gtzan with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("audio-classification", model="Ryukijano/distilhubert-finetuned-gtzan") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoProcessor, AutoModelForAudioClassification
processor = AutoProcessor.from_pretrained("Ryukijano/distilhubert-finetuned-gtzan")
model = AutoModelForAudioClassification.from_pretrained("Ryukijano/distilhubert-finetuned-gtzan", device_map="auto")Model finetuned as a part of the HF audio course.