Downloads · 30 days
34
15% of all-time downloads
auro-rirum/audioforge-scratch-cnn-fsd50k
audioforge-scratch-cnn-fsd50k is a audio classification model from auro-rirum. Use it for the audio classification task on the model card, and read the license before you ship it in a product. It is set up for audioforge. The card lists the license as mit.
ScratchAudioCNN trained from random initialization on FSD50K for multi-label environmental sound event classification, produced by the AudioForge training pipeline.
Downloads · 30 days
34
15% of all-time downloads
All-time downloads
222
Public
Parameters
2.4M
9.7 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors9.7 MB · 100%
From the Hugging Face model README
ScratchAudioCNN trained from random initialization on FSD50K for
multi-label environmental sound event classification, produced by the
AudioForge training pipeline.
| Metric | Value |
|---|---|
| mAP | 0.3020141498869784 |
| micro F1 | 0.4260097201273672 |
| macro F1 | 0.11832448567467674 |
This is a custom PyTorch architecture, not a native transformers class --
loading it requires the audioforge package:
import json
import torch
from huggingface_hub import hf_hub_download
from safetensors.torch import load_file
from audioforge.models.scratch_cnn import create_scratch_cnn
config_path = hf_hub_download("auro-rirum/audioforge-scratch-cnn-fsd50k", "config.json")
weights_path = hf_hub_download("auro-rirum/audioforge-scratch-cnn-fsd50k", "model.safetensors")
with open(config_path, encoding="utf-8") as f:
config = json.load(f)
model = create_scratch_cnn(**config)
model.load_state_dict(load_file(weights_path))
model.eval()
Input: log-mel spectrogram [batch, 1, n_mels, frames] (see
audioforge.features.logmel). Output: raw logits [batch, num_labels];
apply torch.sigmoid for per-label probabilities.