[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111299":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":14,"stars7d":15,"stars30d":15,"stars90d":14,"forks30d":14,"starsTrendScore":13,"compositeScore":16,"rankGlobal":9,"rankLanguage":9,"license":17,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":18,"hasPages":18,"topics":20,"createdAt":9,"pushedAt":28,"updatedAt":29,"readmeContent":30,"aiSummary":31,"trendingCount":14,"starSnapshotCount":14,"syncStatus":32,"lastSyncTime":33,"discoverSource":34},111299,"ComfyUI-DBS","hiroki-abe-58\u002FComfyUI-DBS","hiroki-abe-58","Dynamic Band Splitting (DBS) for ComfyUI: separate a soundtrack into music, sound effects and speech; remove or keep the dialogue of a video. Same output as the official package.",null,"Python",62,5,1,0,3,44.13,"MIT License",false,"main",[21,22,23,24,25,26,27],"audio","comfyui","comfyui-nodes","dialogue-removal","dnr","source-separation","speech-separation","2026-10-19 07:31:03","2026-11-21 09:09:52","# DBS Soundtrack Separation for ComfyUI\n\nSeparate a soundtrack into **music**, **sound effects** and **speech** inside ComfyUI, with the official **Dynamic Band\nSplitting (DBS)** models ([JusperLee\u002FDynamic-Band-Splitting](https:\u002F\u002Fgithub.com\u002FJusperLee\u002FDynamic-Band-Splitting),\n[paper](https:\u002F\u002Farxiv.org\u002Fabs\u002F2610.14993)). Use it to remove the dialogue of a video and keep its music and effects, to pull the\ndialogue out for dubbing or transcription, or to rebalance a mix. The models are tiny (1.0M and 4.7M parameters), run on CUDA or\nthe CPU, and the three stems add back up to the input. The nodes run the vendored official code and never download anything.\n\n> **Unofficial.** This node pack is an independent integration. It is not affiliated with or endorsed by the DBS authors or by\n> Comfy Org.\n>\n> 日本語の概要は [README.ja.md](README.ja.md) にあります。\n\n![Spectrograms of a 12 s excerpt of Tears of Steel and of its music, sound-effects and speech stems](docs\u002Fimages\u002Fstems.png)\n\n*Tears of Steel (CC BY 3.0, Blender Foundation), 12 s of the project page's mixture; below it this pack's DBS-TIGER stems (CPU),\nwhich are bit for bit the official package's output for the same file.*\n\n## What it does\n\n| Node | Purpose |\n| --- | --- |\n| **DBS Loader** | Picks the model (DBS-TIGER-DnR or DBS-BSRNN-DnR) and the device (`auto` = ComfyUI's GPU when it is CUDA, else `cpu`) |\n| **DBS Separate (music \u002F sfx \u002F speech)** | `AUDIO` in → `music`, `sfx`, `speech` (`AUDIO`) and a JSON report |\n\nConnect ComfyUI's **Load Audio** (or **Load Video** → **Get Video Components**) in front. To remove the dialogue, add `music` and\n`sfx` with ComfyUI's **Merge Audio** (`add`); the shipped workflows do that, one of them for a video.\n\n- `channels` = `mono`: the channel mean is separated, as the official usage does. `each channel`: every channel is separated on\n  its own, which keeps stereo (twice the time for stereo).\n- The models work on 44.1 kHz. Other rates are resampled with ComfyUI's own resampler; `output_sample_rate` = `44100` (the\n  model's rate) or `input` (resampled back).\n- The overlap-add windows of the model cards are used: DBS-TIGER 6 s every 3 s, DBS-BSRNN 3 s every 1.5 s. Any length works.\n- The stems are in phase with the input and add back up to it (music + sfx + speech = input, to about 1e-6).\n- Batches: every item is separated on its own.\n\n| Model | Parameters | SI-SDR on DnR v2 (music \u002F sfx \u002F speech) | RTX 5090 | CPU (24 threads) |\n| --- | --- | --- | --- | --- |\n| **DBS-TIGER-DnR** (default) | 1.0M | 7.78 \u002F 6.70 \u002F 15.90 dB | 16x real time | 0.5x real time |\n| DBS-BSRNN-DnR | 4.7M | 6.48 \u002F 5.73 \u002F 15.01 dB | 22x real time | 1.8x real time |\n\nSI-SDR: the authors' model cards (not measured here). Speed: measured here, model loaded, channel mean. Without a CUDA GPU,\nDBS-BSRNN is the practical choice (DBS-TIGER takes about twice the length of the audio on the CPU).\n\n## How far it was checked\n\nWindows 11, ComfyUI v0.38.0, RTX 5090 and CPU; details and raw numbers in [docs\u002FVERIFICATION.md](docs\u002FVERIFICATION.md):\n\n- **Bit-identical to the official package on the CPU.** On the project page's film clips (Tears of Steel, Sintel; CC BY 3.0) the\n  pack's stems equal those of the official README usage (`from_pretrained` + `separate(..., mode=\"chunked\")`), byte for byte, in\n  6 of 6 cases (both models, every overlap-add path, per channel). The official side ran in a separate environment with the\n  upstream's pinned versions.\n- **CUDA:** the official code itself gives slightly different bytes on every run on the GPU; with PyTorch's deterministic\n  algorithms on both sides, the pack equals the official output bit for bit in 4 of 4 cases (30 s clips, both models, channel\n  mean and each channel).\n- **Real ComfyUI queue** (CPU and RTX 5090): Load Audio → DBS → Save Audio (FLAC) gives the official stems to within half a\n  16-bit step (the FLAC rounding); the remove-dialogue workflows, including the video one, run through the queue.\n- **Clean install:** fresh ComfyUI v0.38.0, fresh Python 3.12 environment, `git clone` of this repository, `pip install -r\n  requirements.txt` (nothing new: ComfyUI already brings `einops` and `safetensors`), the models downloaded with\n  `tools\u002Fdownload_model.py` (SHA-256 verified), and the real-queue check against the installed pack.\n- **CI** (GitHub Actions; Ubuntu and Windows): the real models on the CPU on synthetic audio, the pack compared with the official\n  package in the same process for both models, the vendored code compared with the pinned upstream commit, ComfyUI's own\n  validation of the workflows, and a real ComfyUI queue; ComfyUI v0.38.0 and v0.42.1.\n\n**Not checked:** separation quality itself (the pack reproduces the official outputs; it does not re-evaluate the models), audio\nother than film-like mixtures (singing is likely to end up in \"music\"), Linux and macOS outside CI, AMD or Apple GPUs (the pack\nthen uses the CPU).\n\n## Install\n\n1. ComfyUI with the V3 node API (**v0.38.0** or later) and Python 3.10+. A CUDA GPU is optional.\n2. Clone this repository into `ComfyUI\u002Fcustom_nodes\u002F` and install its requirements into ComfyUI's Python (`einops` and\n   `safetensors`, which ComfyUI usually has already):\n\n   ```\n   git clone https:\u002F\u002Fgithub.com\u002Fhiroki-abe-58\u002FComfyUI-DBS custom_nodes\u002FComfyUI-DBS\n   python -m pip install -r custom_nodes\u002FComfyUI-DBS\u002Frequirements.txt\n   ```\n\n3. Download the models (23 MB for both). The script pins the revisions and verifies every file's SHA-256:\n\n   ```\n   python custom_nodes\u002FComfyUI-DBS\u002Ftools\u002Fdownload_model.py --models-dir models\u002Fdbs\n   ```\n\n   Result: `models\u002Fdbs\u002FDBS-TIGER-DnR\u002F` and `models\u002Fdbs\u002FDBS-BSRNN-DnR\u002F`, each with `config.json`, `model.safetensors` and the model\n   card `README.md`. Another location works through `extra_model_paths.yaml` with the key `dbs`.\n\n4. Restart ComfyUI and open one of `workflows\u002Fgui\u002F`:\n   - `separate_soundtrack.json`: the three stems as FLAC;\n   - `remove_dialogue.json`: music + sfx (the soundtrack without dialogue) and the dialogue, in stereo at the input's rate;\n   - `video_remove_dialogue.json`: the same for a video, saved as a new video with the dialogue-free soundtrack.\n\n   Choose your own file in Load Audio or Load Video (the workflows name `soundtrack.wav` and `clip.mp4`).\n\n## Notes and limits\n\n- Trained on DnR v2: English speech (LibriSpeech), music (Free Music Archive) and sound effects (FSD50K) mixed like a film\n  soundtrack. Results on other material (songs with vocals, other languages, very loud music) are for you to judge.\n- Interrupt stops between two windows.\n- On CUDA, repeated runs can differ in the last digits (the official code does the same); start ComfyUI with `--deterministic`\n  if you need identical files every time.\n- The demo backend of the upstream repository runs DBS-TIGER on the CPU with one thread; here that was slower and not identical,\n  so the pack uses PyTorch's default threads, as the README usage does.\n\n## Licenses\n\n- This node pack's code: **MIT** ([LICENSE](LICENSE)).\n- Vendored DBS code (`dbs_comfy\u002Fvendor`): **Apache-2.0**, by Bingzhe Zhang, Kai Li and Xiaolin Hu, with parts adapted from\n  MIT-licensed projects ([NOTICE](NOTICE), `dbs_comfy\u002Fvendor\u002FUPSTREAM.md`, `dbs_comfy\u002Fvendor\u002FTHIRD_PARTY.md`).\n- Models (downloaded only by `tools\u002Fdownload_model.py`): **Apache-2.0** (model cards), trained on DnR v2 (CC BY 4.0).\n\n## Development\n\n```\npython -m pip install pytest ruff soundfile rotary-embedding-torch huggingface_hub\npython tools\u002Fdownload_model.py --models-dir \u003Cdir>\u002Fdbs\ngit clone https:\u002F\u002Fgithub.com\u002FJusperLee\u002FDynamic-Band-Splitting \u003Cupstream> && git -C \u003Cupstream> checkout ff526463a58ee0278e7bd05c4b8bce112b743e34\nDBS_MODELS_DIR=\u003Cdir>\u002Fdbs DBS_UPSTREAM_DIR=\u003Cupstream> DBS_COMFYUI_DIR=\u003CComfyUI checkout> python -m pytest tests\npython scripts\u002Fci_queue_check.py --comfyui \u003CComfyUI checkout> --models-dir \u003Cdir>\u002Fdbs --upstream \u003Cupstream>   # real queue on the CPU\npython scripts\u002Fvendor_sync.py --upstream \u003Cupstream> --check                                                 # vendored code check\n```\n\nThe official package is only needed for the comparison tests (`rotary-embedding-torch` and `huggingface_hub` are what its imports\nneed), and `soundfile` only for the tests and the check script; the node pack itself imports neither.\n","这是一个为ComfyUI设计的动态频带分割（DBS）音频分离节点插件，用于将音轨精准拆分为音乐、音效和语音三个独立音轨。基于官方DBS-TIGER-DnR与DBS-BSRNN-DnR模型，支持CUDA加速或纯CPU运行，输出严格保相且三轨相加可无损还原原始输入；提供模型加载、多通道处理、采样率自适应及实时性能优化。适用于视频去对白、配音素材提取、语音转录预处理及混音重平衡等专业音视频工作流。",2,"2026-11-25 04:45:38","CREATED_QUERY"]