Downloads · 30 days
14
10% of all-time downloads
hanxunh/AudioMosaic-vit-b16-finetune-envsdd-ata
AudioMosaic-vit-b16-finetune-envsdd-ata 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
14
10% of all-time downloads
All-time downloads
139
Public
Parameters
85.7M
343 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors343 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 the EnvSDD (ATA) train split for binary real/fake environmental-sound spoof detection. Evaluated on four test splits.
| Test Split | EER (%) |
|---|---|
| test01 | 0.00 |
| test02 | 0.00 |
| test03 | 0.30 |
| test04 | 0.30 |
EER values are reported as percentages; lower is better.
import sys, torch
from huggingface_hub import snapshot_download
local_dir = snapshot_download("hanxunh/AudioMosaic-vit-b16-finetune-envsdd-ata")
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, 2]
probs = logits.softmax(-1) # [P(real), P(fake)]
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}
}