marsyas/gtzan
Updated • 13.7k • 18
How to use lxk87142/gtzan-audio-course-model with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("audio-classification", model="lxk87142/gtzan-audio-course-model") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoProcessor, AutoModelForAudioClassification
processor = AutoProcessor.from_pretrained("lxk87142/gtzan-audio-course-model")
model = AutoModelForAudioClassification.from_pretrained("lxk87142/gtzan-audio-course-model", device_map="auto")Base model
ntu-spml/distilhubert