Skip to content

Filter stemsplit Spleeter

Phillippe Pelzer edited this page Nov 15, 2026 · 3 revisions

stemsplit with Spleeter

This page covers the Spleeter engine of the stemsplit filter. Spleeter is Deezer's 2stems U-Net. It is one 39 MB file. It is fast and its quality is modest.

You pick it with model=<spleeter file>. A Spleeter file cannot be put in a models= list.

ffmpeg -i song.flac -af "stemsplit=model=spleeter-2stems-f16.gguf:stem=vocals" vocals.flac

Options that only Spleeter uses

Option Default What it does
highband extend How to handle the band above 11,025 Hz, which the network does not see.
exponent 2 Separation exponent. 2 is the released Spleeter setting. Lower is a softer split, higher is a harder one.
bleed 0 Smallest share of the mixture that every stem keeps in any bin. It fills the deepest spectral holes. It does not cure ducking.
smooth 0 Smooth the masks over this many frequency bins on each side.
overlap 0 Crossfade between segments, for example 5, 1.5 or 00:00:05.000. 0 matches reference Spleeter. Memory rises a little when it is non-zero.

threads, use_gpu and gpu_device apply to Spleeter too. The full table is on Filter-stemsplit.

The four highband modes

Mode What it does
extend Carries each stem's own mask at the top of the modelled band upward, crossfaded in. This is the default.
passthrough Routes the untouched input high band into the last stem.
zeros Silences the high band in every stem. This is upstream Spleeter, bit for bit.
average Tiles each frame's mean mask across the high band.

extend is the default because passthrough makes the accompaniment step up as it crosses 11,025 Hz. On a piano-and-voice ballad that step measured +14.0 dB. Under extend the same measurement is -0.4 dB. The vocal stem also gets its 11 to 18 kHz sibilance and breath back. The stemsplit project measured about 38 dB back in 11 to 14 kHz and about 51 dB in 14 to 18 kHz. Nothing changes inside the modelled band.

Speed and memory

  • About 7 to 9 times real time on an 8-core desktop CPU: 30 seconds of audio in 3.3 to 4.1 seconds, model load included (i7-10700K, Windows build of v1.0.45).
  • Peak memory is about 194 MiB for stem=all.
  • threads=0 uses half the physical cores. On that CPU, threads=8 took 3.3 s, the default took 4.1 s and threads=16 took 15.7 s. Hyperthreads and oversubscription slow it down a lot.

GPU

Spleeter never uses a GPU under use_gpu=auto. The output would change. ggml's Vulkan backend accumulates convolutions in 16-bit float on cards with cooperative-matrix support. That measured -58.8 dB against the CPU. It is not audible, but it is not bit-identical.

Opt in with use_gpu=1:

ffmpeg -i in.mp3 -af "stemsplit=model=spleeter-2stems-f16.gguf:stem=vocals:use_gpu=1" out.wav
Backend Measured Result
Vulkan, RTX 3070 30 s of audio, 20 runs, whole-process time 830 ms with use_gpu=1, 2198 ms on the CPU (2.6 times faster)

Spleeter does not run on Metal. It uses the CPU on a Mac, whatever use_gpu says. See GPU-Acceleration and Metal.

Model

spleeter-2stems-f16.gguf is 39,319,552 bytes. SHA-256 155dc9d2e2eef70ad633af98134df29a5273defaeb98ef013d46251faa69d0ad. It is a release asset of nomercy-stemsplit-models v2026.10.31. It is not in the platform archives.

Licence

Spleeter's code and released checkpoints are MIT-licensed. See the citation on Filter-stemsplit.

Clone this wiki locally