EfficientSED fmn10 + transformer (ONNX): frame-level sound event detection
An ONNX export of the fmn10+tf-256_advanced-kd-weak-strong checkpoint from EfficientSED: a frame-wise MobileNet (fmn10) with two small transformer blocks on top, trained on AudioSet's frame-level (strong) labels with knowledge distillation. About 5.0M parameters. It takes raw audio and returns a probability for each of 447 sound classes every 40 ms. The spectrogram front end is part of the graph, and the model runs in browsers with ONNX Runtime Web.
This copy is hosted for SoundScope, a browser app for finding sounds in long recordings. It is a format conversion; no weights were retrained, fine-tuned or quantized.
Files
| File | Size | What |
|---|---|---|
efficientsed_fmn10_tf256.onnx | 22.09 MB | the model (opset 17, float32) |
efficientsed_fmn10_tf256.onnx.gz | 19.20 MB | the same bytes, gzip-compressed (Hugging Face serves files uncompressed); unpack with DecompressionStream("gzip") |
labels.json | the 447 class names, in output order | |
LICENSE | upstream MIT licence |
SHA-256 of efficientsed_fmn10_tf256.onnx: 109c26bab55dc45779250b0e2a02610d3c9cf6aad2e0a3791faad5eaa27b11f3
Input and output
- Input
waveform: float32, shape[1, 160000], mono, 16 kHz, values in [-1, 1]. The length is fixed at 10 s, because the transformer always sees 250 frames. Pad shorter audio with zeros. - Output
scores: float32, shape[1, 250, 447], sigmoid probabilities, one row per 40 ms.
import * as ort from "onnxruntime-web";
const session = await ort.InferenceSession.create("efficientsed_fmn10_tf256.onnx");
const audio = new Float32Array(160000); // 10 s of 16 kHz mono
const { scores } = await session.run({ waveform: new ort.Tensor("float32", audio, [1, 160000]) });
// scores.dims = [1, 250, 447]
Changes from the original
- The upstream front end uses
torch.stft. For the export it was replaced by an equivalent conv1d DFT (same Hann window centred in a 512-point FFT, hop 160, reflect padding, pre-emphasis, Kaldi mel banks, log,(x + 4.5) / 5), so the graph uses only ops that ONNX Runtime Web supports. - Sigmoid is applied inside the graph, and the output is transposed to
[1, frames, classes]. - Only the strong (frame-level) head is exported.
Checked against the original PyTorch model on real audio: output max difference within 1e-6, in PyTorch and in ONNX Runtime (Python). In the browser (ONNX Runtime Web, WASM, Edge), the stored scores matched Python on 99.96% or more of decisions.
Measured (SoundScope's own tests)
- Paper result for this checkpoint (from the EfficientSED README): PSDS1 45.25 on AudioSet Strong.
- SoundScope's comparison with frame_mn10 on five labelled datasets (rooms, street, dawn birds, wild animals, night flight calls): more accurate on four, slightly worse on night flight calls. About 1.37x slower in the browser.
Credit and licence
The model, weights and training are by Tobias Morocutti, Florian Schmid, Jonathan Greif, Francesco Foscarin and Gerhard Widmer, from the paper Exploring Performance-Complexity Trade-Offs in Sound Event Detection Models (EUSIPCO 2025). The code builds on PretrainedSED. It is released under the MIT licence (see LICENSE, copyright (c) 2024 Florian Schmid). The upstream repository has no separate licence statement for the weights; this copy follows the repository's MIT licence.