Downloads · 30 days
9
7% of all-time downloads
hanxunh/AudioMosaic-vit-b16-finetune-esc-split2
AudioMosaic-vit-b16-finetune-esc-split2 is a audio classification model from hanxunh. 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 AudioMosaic. The card lists the license as mit.
<div align="center" <a href="https://arxiv.org/abs/2605.14231" target="blank"<img src="https://img.shields.io/badge/arXiv-b5212f.svg?logo=arxiv" alt="arXiv"</a <a href="https://huggingface.co/collections/hanxunh/audio…
Downloads · 30 days
9
7% of all-time downloads
All-time downloads
129
Public
Parameters
85.5M
342 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors342 MB · 100%
From the Hugging Face model README
AudioMosaic: Contrastive Masked Audio Representation Learning
Code: https://github.com/HanxunH/AudioMosaic
Pretrained encoder: hanxunh/AudioMosaic-vit-b16-pretrained
This is the AudioMosaic ViT-B/16 encoder fine-tuned on ESC-50 (fold 2) for single-label audio classification over 50 classes.
| Metric | Value |
|---|---|
| Accuracy | 98.75 |
import sys, torch
from huggingface_hub import snapshot_download
local_dir = snapshot_download("hanxunh/AudioMosaic-vit-b16-finetune-esc-split2")
sys.path.insert(0, local_dir)
from load_model import load_classifier
model = load_classifier(device="cuda")
# Forward a log-mel spectrogram batch of shape [B, 1, 1024, 128]
fbank = torch.randn(2, 1, 1024, 128).cuda()
with torch.no_grad():
logits = model(fbank) # [B, 50]
pred = logits.argmax(dim=-1) # predicted class id
The release contains:
model.safetensors — fine-tuned classifier weightsconfig.json — architecture hyperparametersmodeling.py — vendored model architecture (no need to install AudioMosaic)load_model.py — convenience loaderRequired dependencies: torch, timm, torchlibrosa, safetensors, huggingface_hub.
@inproceedings{huang2026audiomosaic,
title={AudioMosaic: Contrastive Masked Audio Representation Learning},
author={Hanxun Huang and Qizhou Wang and Xingjun Ma and Cihang Xie and Christopher Leckie and Sarah Erfani},
booktitle={ICML},
year={2026}
}