Instructions to use GlowLED/wav2vec2-gtzan with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use GlowLED/wav2vec2-gtzan with Transformers:
# 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") - Notebooks
- Google Colab
- Kaggle
File size: 474 Bytes
365be86 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ---
library_name: transformers
pipeline_tag: audio-classification
tags:
- audio-classification
- gtzan
- music
- wav2vec2
- fine-tuned
---
# 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
```python
# audio-classification
``` |