MDXNet Mono-to-Stereo
Fast Mono-to-Natural-Stereo Conversion
2 min readupdated
Based on the MDXNet architecture (ConvTDFNet), this model is designed to turn standard mono music or vocals into clean, spacious stereo. Unlike heavy Roformer models, it runs at roughly 50 to 60 times faster than real-time on standard consumer GPUs, and also runs on CPUs and mobile browsers. Trained on over 100 tracks, the tool separates vocals and music tracks while expanding necessary elements without losing quality. It is useful for musicians, sound producers, and audio application developers.
Key features
- Element-oriented expansion: The model separates vocals and instruments, keeping focus on the main elements while expanding the rest.
- High speed: Delivers processing speeds of ~56–60x real-time on consumer GPUs.
- Two ONNX formats: FP16 versions (~20.9 MB) are available for fast inference, and FP32 versions (~41.7 MB) for universal compatibility.
- No PyTorch: The inference script runs via pure NumPy and ONNX Runtime.
What you can do
- Voiceover and restoration: Turn archival mono recordings or old tracks into immersive stereo audio.
- Production and streaming: Integrate conversion into bots, web services, or desktop utilities for fast track processing.
- Web applications: Run audio processing directly in the browser via WebGPU or WASM.
Example
Running inference via the command line with automatic weight downloading:
python infer.py --input path/to/mono_song.wav --output path/to/stereo_song.wav --precision fp16Read more
DetailsArchitecture: MonoToStereoConvTDFNet (11 blocks, ~10.92 million parameters)
Sample rate: 44,100 Hz
Features: STFT with window size 6144 and hop size 1024
Requirements: ONNX Runtime (CPU, CUDA, DirectML, or CoreML)










Comments