Extensions/ComfyUI-Roformer
ComfyUI Extension

ComfyUI-Roformer

Music source separation nodes for 41 popular RoFormer checkpoints on Hugging Face (the 13 pcunwa releases plus community releases): custom loader, chunked inference, stem extraction and saving.

By StanShumsky·Created 2 days ago·Updated a day ago· 0
StanShumsky/ComfyUI-Roformer
Nodes—
On cloudLocal install
Stars0
Updateda day ago
Readme

ComfyUI-Roformer

ComfyUI nodes for 41 of the popular RoFormer music source-separation models: 6-stem and 4-stem separators, specialists (karaoke, vocal de-reverb, guitar), and a full two-way (vocals / instrumental) lineup. Point it at any recording and get the stems back as lossless WAV/FLAC files or as live AUDIO you can feed into any other node. All models run at 44.1 kHz stereo.

Install

From the ComfyUI-Manager: Manager → Install Custom Nodes → search for ComfyUI-Roformer → Install; Manager installs its requirements as well.

Or clone it manually:

cd ComfyUI/custom_nodes
git clone https://github.com/StanShumsky/ComfyUI-Roformer
pip install -r ComfyUI-Roformer/requirements.txt

Restart ComfyUI. That's it — models download automatically on first use (45 MB – 1.7 GB) into ComfyUI/models/roformer/. You can also use your own copies: a .ckpt/.pth checkpoint with its config YAML in any subfolder of models/roformer shows up in the loader.

Quick start

Load Audio → Roformer Loader → Roformer Separate, then:

  • Roformer Save Audio writes one file per stem into the output folder, or
  • Roformer To Audio picks a single stem from a dropdown as live audio for the rest of the graph (the model's own stem list is on the Loader's stems output).

The loader defaults to sw-6stem — six stems at once (bass, drums, other, vocals, guitar, piano). For vocals / instrumental, pick one of the two-way models (Models).

Nodes

All nodes are in the audio/Roformer category.

Roformer Loader

  • model — a checkpoint (see Models) or the name of a folder in models/roformer. The list is ranked for professional use: multi-stem first (by stem count), then the specialists, then the two-way models by leaderboard quality (vocals-target before instrumental-target), experimental weights last; your local folders follow the curated list. The first entry, sw-6stem, is the default. Checkpoints download automatically on first use; a corrupt download is detected and the error tells you to delete the model folder and retry.
  • device — auto (ComfyUI's device), cuda, mps, cpu.
  • Outputs: the model payload, and stems — the model's stem names as text, in the order the model trained them in; preview with any text display or wire it where you like.

Roformer Separate

Runs the loaded model on ComfyUI AUDIO (from Load Audio, or the audio track of a loaded video) at any sample rate — the input is resampled to 44.1 kHz and matched to the model's trained channel count automatically.

  • chunk_seconds — 0 (default) uses the model's own window (about 11–22 s); set a positive value to use less VRAM. Longer audio is processed in overlapping windows with a crossfade, so the output is exactly the length of the input.
  • Outputs (at the file's own sample rate):
    • stems — all stems, for To Audio / Save Audio below.
    • target / other — the model's target stem and the other stem as ready AUDIO (for multi-stem models, other is the model's own other stem when it has one), ready to preview or wire on.
    • info_json — model, stem names, lengths, rates.

Roformer To Audio

Extracts one stem from a stems payload as AUDIO for feeding any other node. stem is a dropdown of every stem name the pack knows about, sorted by priority (vocals first, then the instrumental, drums, bass, guitar, piano, other) and merged case-insensitively — one vocals, one instrument, one other, regardless of how the model spells them (the model's own list is on the Loader's stems output). Matching is the mirror image — case-insensitive and alias-tolerant (instrument picks a payload's Instrumental) — so (auto) (the default, the model's target) or a stale choice always falls back to the first stem and can never fail a run.

Custom Roformer To Audio

The same extraction with the stem typed by hand instead of picked from the dropdown — the name from info_json, matched case-insensitively (empty = the target stem). Use it for local models and custom checkpoints whose stem names are not in the standard list.

Roformer Save Audio

Writes the stems to ComfyUI's output folder as <prefix>_XXXXX_<stem>.wav / .flac (lossless), numbered so runs never overwrite each other. Every stem in the payload is saved.

Roformer Info

The separation summary as a JSON string, for branching or saving run metadata.

Models

All 41 checkpoints, in the same order as the loader dropdown: multi-stem first (by stem count), then the specialists, then the two-way models by mvsep.com leaderboard quality (vocals-target before instrumental-target), experimental weights last. "vocals + residual" means the model predicts vocals and the rest of the mix comes back as the other stem (-inst models work the other way round); multi-stem models emit every stem natively. SDR is the mvsep.com quality score (higher = better). Sizes are the download sizes.

Multi-stem

BS-Roformer-SW is the top single multi-stem model on the mvsep.com boards.

| Loader id | Stems | Family | Size | Release | |---|---|---|---|---| | sw-6stem | bass, drums, other, vocals, guitar, piano | BS-Roformer | 699 MB | BS-RoFormer-SW-6stem — re-upload of jarredou's SW (the original repo is gone) | | ft-4stems | drums, bass, other, vocals | BS-Roformer | 527 MB | bs_roformer_4stems_ft |

Specialized

Single-task fine-tunes the generic separators don't cover.

| Loader id | Stems | Family | Size | Release | |---|---|---|---|---| | dereverb | noreverb + reverb — de-reverberation: feed a roomy vocal, take the noreverb stem | BS-Roformer | 204 MB | dereverb_bs_roformer | | karaoke-bs | Vocals + Instrumental — tuned for backing tracks | BS-Roformer | 204 MB | bs-roformer-karaoke | | guitar-mel | Guitar + Other — dedicated guitar extractor (22 M params) | Mel-Band-Roformer | 45 MB | mel-band-roformer-guitar |

Two-way — vocals target (best first)

| Loader id | Stems | Family | Size | Release | |---|---|---|---|---| | hyperace-v2-voc | vocals + residual · SDR 11.40 | BS-Roformer | 289 MB | BS-Roformer-HyperACE | | kim-ft | vocals + residual · SDR 11.01 — gated: needs a free Hugging Face token (HF_TOKEN or huggingface-cli login) | Mel-Band-Roformer | 913 MB | Kim-Mel-Band-Roformer-FT | | leap-voc | vocals + residual | BS-Roformer | 238 MB | BS-Roformer-Leap | | leap-xe-voc | vocals + residual | BS-Roformer | 268 MB | BS-Roformer-Leap | | resurrection-voc | vocals + residual | BS-Roformer | 205 MB | BS-Roformer-Resurrection | | melband-big-beta5 | vocals + residual (max fullness variant) | Mel-Band-Roformer | 1.5 GB | Mel-Band-Roformer-big | | revive | vocals + residual | BS-Roformer | 639 MB | BS-Roformer-Revive | | revive2 | vocals + residual | BS-Roformer | 639 MB | BS-Roformer-Revive | | revive3e | vocals + residual | BS-Roformer | 639 MB | BS-Roformer-Revive |

Two-way — instrumental target (best first)

| Loader id | Stems | Family | Size | Release | |---|---|---|---|---| | large-inst | instrumental + residual · SDR 17.61 | BS-Roformer | 238 MB | BS-Roformer-Large-Inst | | inst-fno | other + residual · SDR 17.60 | BS-Roformer | 332 MB | BS-Roformer-Inst-FNO | | hyperace-v2-inst | instrumental + residual · SDR 17.40 | BS-Roformer | 289 MB | BS-Roformer-HyperACE | | hyperace | instrumental + residual · SDR 17.27 | BS-Roformer | 275 MB | BS-Roformer-HyperACE | | melband-inst-v1 | other + residual | Mel-Band-Roformer | 913 MB | Mel-Band-Roformer-Inst | | melband-inst-v1e | other + residual (max instrum fullness) | Mel-Band-Roformer | 913 MB | Mel-Band-Roformer-Inst |

Two-way — other variants

| Loader id | Stems | Family | Size | Release | |---|---|---|---|---| | leap-inst | other + residual | BS-Roformer | 238 MB | BS-Roformer-Leap | | leap-xe-inst | other + residual | BS-Roformer | 268 MB | BS-Roformer-Leap | | resurrection-inst | other + residual | BS-Roformer | 205 MB | BS-Roformer-Resurrection | | melband-small | vocals + residual | Mel-Band-Roformer | 203 MB | Mel-Band-Roformer-small | | melband-duality-v1 | Vocals + Instrumental (native 2-stem, no residual) | Mel-Band-Roformer | 1.7 GB | Mel-Band-Roformer-InstVoc-Duality | | melband-duality-v2 | Vocals + Instrumental (native 2-stem, no residual) | Mel-Band-Roformer | 1.7 GB | Mel-Band-Roformer-InstVoc-Duality | | melband-inst-v1e-plus | other + residual | Mel-Band-Roformer | 913 MB | Mel-Band-Roformer-Inst | | melband-inst-v1-plus-test | other + residual | Mel-Band-Roformer | 913 MB | Mel-Band-Roformer-Inst | | melband-inst-v2 | other + residual | Mel-Band-Roformer | 1.5 GB | Mel-Band-Roformer-Inst | | kim-ft2 | vocals + residual | Mel-Band-Roformer | 913 MB | Kim-Mel-Band-Roformer-FT (gated) | | kim-ft2-bleedless | vocals + residual | Mel-Band-Roformer | 913 MB | Kim-Mel-Band-Roformer-FT (gated) | | kim-ft3-prev | vocals + residual | Mel-Band-Roformer | 913 MB | Kim-Mel-Band-Roformer-FT (gated) | | melband-big-beta1 … beta4, beta6, beta6x, beta7 (beta5 in the vocals-target table) | vocals + residual | Mel-Band-Roformer | 0.9-1.7 GB | Mel-Band-Roformer-big |

Experimental

| Loader id | Stems | Family | Size | Release | |---|---|---|---|---| | inst-exp-vrl | other + residual | BS-Roformer | 393 MB | BS-Roformer-Inst-EXP-Value-Residual — repo README: "may not have practical performance" | | exp-siamese | vocals + residual | Siamese Roformer | 205 MB | BS-EXP-SiameseRoformer — experimental dual-stream release |

Stem names come from each model's training config, so the list above is exactly what you get — for the multi-stem models pick any of the stems with Roformer To Audio.

Notes

Quality. Every model is built strictly from its own config file and must match it exactly, so an incompatible or corrupt checkpoint fails loudly at load time instead of silently predicting garbage. All 41 checkpoints were verified against their actual weights on 2026-11-21, including real separation runs; if one still fails for you, report the error — it identifies the checkpoint and the cause.

Performance. A 4-minute song takes roughly 30–60 s on an RTX 4090 for the ~250 MB models; the 1.5–1.7 GB mel-band models want at least 10 GB of VRAM and are several times slower. CPU works but expect minute-scale processing. chunk_seconds trades a little quality for VRAM.

Licensing. Code: see LICENSE. Checkpoints: each Hugging Face repo carries its own license/terms — at least two (Revive, Resurrection) have open commercial-use permission threads, so check the repo you use before redistributing or shipping the outputs commercially.