How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("audio-classification", model="GlowLED/wav2vec2-gtzan")
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoProcessor, AutoModelForAudioClassification

processor = AutoProcessor.from_pretrained("GlowLED/wav2vec2-gtzan")
model = AutoModelForAudioClassification.from_pretrained("GlowLED/wav2vec2-gtzan", device_map="auto")
Quick Links

wav2vec2-gtzan

Fine-tuned facebook/wav2vec2-base for GTZAN music-genre classification (10 classes). Trained with 15s-window augmentation on sanchit-gandhi/gtzan; song-level accuracy 0.92 (window 0.8894). Use with AutoModelForAudioClassification.

Metrics

  • accuracy: 0.92

Usage

# audio-classification
Downloads last month
3
Safetensors
Model size
94.6M params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support