SCNet Small ONNX: an in-browser music source separation model
2 min readupdated
This model splits any song into four separate stems: vocals, bass, drums, and other instruments. The ONNX version is optimized to run on mobile devices and web browsers using ONNX Runtime Web, WebGPU, or WASM, eliminating the need to deploy heavy Python servers. It is built on the SCNet (Sparse Compression Network) architecture from the ICASSP 2024 research, with weights sourced from a popular music separation training repository. The tool is ideal for web developers, audio tool creators, and music enthusiasts who prefer local processing.
Key features
- 4 stems: precise separation of mixes into vocals, bass, drums, and other instruments.
- ONNX format: weight export to an ONNX graph for client-side computation.
- Efficiency: the model retains the accuracy of original PyTorch checkpoints with a compact file size of around 23 MB.
- Cross-platform: support for execution via WebGPU, WASM, and ONNX Runtime.
What you can do
- Web service: integrate track separation into a website or browser extension for musicians and DJs.
- Mobile app: process audio locally on a smartphone without uploading files to a cloud server.
- Karaoke and remixes: quickly isolate clean vocals or remove voice tracks to create backing tracks.
Example
The model accepts an audio spectrogram input (4 channels: left/right channels, real and imaginary parts) and outputs 16 channels for four stereo audio tracks.
Read more
Details• MUSDB18-HQ benchmarks: average SDR 9.03 (drums 10.44, vocals 9.90, bass 8.89, others 6.89).
• File size: ~23 MB (opset 17, float16 weights converted to float32 upon session loading).
• Audio parameters: 44.1 kHz stereo, n_fft 4096, hop 1024, chunks of 485,100 samples.
• License: MIT.










Comments