Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

Merge origin/claude/fuobe-parity-4 into o/dbs-d4

Claude625d747636eb
diff --cc docs/research/dbs-separation-7.md
index e0c68098,ad7cb2c2..e6c1920d
--- a/docs/research/dbs-separation-7.md
+++ b/docs/research/dbs-separation-7.md
@@@ -102,17 -102,7 +102,17 @@@ Measured by the pack's author (`docs/VE
| DBS-TIGER | 10 s stereo WAV | each channel (2 passes) | 247.0 | 0.08x |
| DBS-BSRNN | 10 s 5.1 WAV | each channel (6 passes) | 193.4 | 0.31x |
- So DBS-BSRNN runs at about 0.27x real time here (a minute of audio in about 4 minutes, 3–6 on a busy host) and DBS-TIGER at about 0.09x (about 11 minutes a minute): 3x slower, not 4x. Stereo stems cost one pass per channel. On the 20 s test mix, against its known parts (a sanity check, not a benchmark): the dialogue stem scored 14.6 dB SI-SDR with DBS-BSRNN and 18.5 dB with DBS-TIGER (the mix itself scores −1.0 dB as "dialogue"); the music-and-effects bed 15.6 and 19.4 dB. Music + effects + speech matched the channel mean of the input to 3e-5 (16-bit FLAC). Split soundtrack's time estimate uses 0.27x / 0.09x per pass (`src/lib/av/split.ts` `DBS_SPEED`).
+ So DBS-BSRNN runs at about 0.27x real time here (a minute of audio in about 4 minutes, 3–6 on a busy host) and DBS-TIGER at about 0.09x (about 11 minutes a minute): 3x slower, not 4x. Stereo stems cost one pass per channel. On the 20 s test mix, against its known parts (a sanity check, not a benchmark): the dialogue stem scored 14.6 dB SI-SDR with DBS-BSRNN and 18.5 dB with DBS-TIGER (the mix itself scores −1.0 dB as "dialogue"); the music-and-effects bed 15.6 and 19.4 dB. Music + effects + speech matched the channel mean of the input to 3e-5 (16-bit FLAC). D1's time estimate used 0.27x / 0.09x per pass; since D4 it uses the quiet-host speeds below (`src/lib/av/split.ts` `DBS_SPEED`).
+- **Measured by the separation suite (package D4, 2026-11-02).** The same host and pack, ComfyUI started with `--cpu` and nothing else running (load average under 1 before each run), through a running Fuobe (`pnpm eval:run --suite separation --engine open`, run `20261102-111016-separation-open-ae7e`): 24 jobs, six 12 s synthetic stereo mixes at 44.1 kHz (five FLAC, one H.264 + AAC MP4) × four settings. "x real time" is the pack's own `times_real_time` (audio seconds per second of separation, every channel's pass counted); "wall" is the job from upload to the last stem, as a user waits for it.
+
+ | Model | Channels | x real time (pack) | Wall for 12 s | A minute of audio takes |
+ |---|---|---|---|---|
+ | DBS-BSRNN | mono | 0.22–0.28 (mean 0.25) | 45–55 s | about 4 minutes |
+ | DBS-BSRNN | each channel (2 passes) | 0.24–0.27 per pass | 92–100 s | about 8 minutes |
+ | DBS-TIGER | mono | 0.10–0.11 | 110–123 s | about 9–10 minutes |
+ | DBS-TIGER | each channel (2 passes) | 0.10–0.11 per pass | 219–246 s | about 19 minutes |
+
- So on this 4-CPU host DBS-BSRNN is 2.4x faster than DBS-TIGER (not 3x: D1's runs shared the CPU). Split soundtrack's time estimate now uses 0.25x / 0.10x per pass (`DBS_SPEED`). Quality on the same mixes is in §9 D4.
++ So on this 4-CPU host DBS-BSRNN is 2.4x faster than DBS-TIGER (not 3x: D1's runs shared the CPU). Split soundtrack's time estimate now uses 0.25x / 0.10x per pass (`DBS_SPEED`). Quality on the same mixes is in §9 D4. D5 measured DBS-BSRNN at 0.36–0.42x through graph C (§9 D5) on 15 s mono clips of Mandarin speech. The suite ran graph C itself on the same host (run `20261102-154635-separation-open-8fec`, Clean up dialogue at −18 dB on four of these mixes): 0.23–0.29x, against 0.26–0.30x for graph A on the same mixes that day. So graph C is not faster, and the difference comes from the clips or the host's state on the day, not the graph. The pack resamples every input to 44.1 kHz and runs the same 3 s windows (7 for 12 s, 9 for 15 s), so the clip length and its sample rate don't explain it either; the estimate keeps 0.25x, measured on a quiet host.
- **Threads.** The upstream demo runs DBS-TIGER on a CPU with one thread and NNPACK off and says that is faster and identical (`demo/README.md` L74–75; `demo/backend.py` L134–155). The pack measured that mode as 3.3x slower and not bit-identical (71.5 s against 21.4 s for 10 s of audio; VERIFICATION.md L112–114). Which wins on a 4-core host is unknown.
- **Memory.** The stems of the whole input stay in memory until the end: 12 bytes per input sample at 44.1 kHz, about 0.3 GB per 10 minutes (VERIFICATION.md L107–108). An hour of audio would need about 1.9 GB on top of the decoded input (my arithmetic).
@@@ -401,27 -391,9 +401,28 @@@ Open: graph B `dub-prepare-dbs-transcri
A `separation` metric family in `scripts/eval/metrics/fuobe_metrics` (SI-SDR and SDR per stem, mixture-consistency check, peak and level of the bed, ASR WER of the voice stem against the known text), synthetic test mixes built from licensed or generated material (Fuobe TTS speech, generated music and effects) with known stems, cases in `scripts/eval/cases/separation.json` (DBS-TIGER, DBS-BSRNN, mono / fast stereo / each channel, MelBand, Demucs, SAM Audio), the existing blind A/B page for real clips, and a speed record on this host. Outputs decide D1's and D3's defaults.
+*As built (D4, 2026-11-02).* The `separation` and `wer` metric families (`scripts/eval/metrics/fuobe_metrics/separation.py`), the generated suite `scripts/eval/cases/separation.json`, test mixes from `scripts/eval/fixtures/make-separation.py` (12 s, 44.1 kHz stereo; speech: LibriSpeech dev-clean speaker 1272, CC BY 4.0, because no TTS weights were on this host; music, effects, hum and hiss synthesized by the script, CC0), Whisper base.en for WER (`pnpm eval:setup --asr`), audio players in the report and the blind review (dialogue and music & effects judged as separate pairs). Two real runs on the 4-CPU ComfyUI through a running Fuobe; the cloud variant (Demucs) was planned only (no key), and SAM Audio is not in the suite (`samAudioCloud` false). Means over the six mixes unless named (SI-SDR in dB; WER by Whisper):
+
+| Setting | Dialogue | Music | Effects | Music & effects | Bed stereo gap | Dialogue WER (input as is) | Wall for 12 s |
+|---|---|---|---|---|---|---|---|
+| DBS-BSRNN, mono (fast stereo bed) | 14.7 | 8.2 | 3.3 | 9.6 | 0.146 | 0.105 (0.117) | 48 s |
+| DBS-BSRNN, each channel | 14.4 | 9.0 | 4.1 | 11.2 | 0.027 | 0.152 | 93 s |
+| DBS-TIGER, mono | 16.1 | 10.5 | 3.5 | 10.9 | 0.138 | 0.154 | 116 s |
+| DBS-TIGER, each channel | 15.7 | 10.9 | 3.9 | 12.5 | 0.017 | 0.128 | 227 s |
+
+What the numbers say:
+- **DBS-TIGER is better on every mix** (dialogue +1.2 to +2.1 dB, music +2 dB) but 2.4x slower on this CPU: a minute of audio takes 9–10 minutes in mono. Kept: DBS-BSRNN on CPU hosts, DBS-TIGER on CUDA hosts (`dbsModelFor`, unchanged; no GPU here to measure).
+- **The fast stereo bed holds for centred dialogue and fails for panned dialogue.** Centred mixes: bed stereo gap 0.03–0.04 and level within 0.6 dB of the known bed (each channel: 0.02–0.04), at half the time. Dialogue panned left: the mono speech subtracted from both channels leaves the left-right difference in the bed (bed SI-SDR 1.0 dB against 11.2 with each channel, gap 0.71, the bed 1.7 dB too loud). Kept: mono by default; "Stereo stems" is the answer for off-centre dialogue (a hint for the tool's copy, not built here).
- - **AudioMerge's peak scaling was not triggered:** the master at −0.1 dBFS left a bed peaking at −7 dBFS (level −0.04 to −0.12 dB). A bed only goes over full scale when the music itself is near it; the metric is there for real clips.
++- **AudioMerge's peak scaling:** the master at −0.1 dBFS left a bed peaking at −7 dBFS (level −0.04 to −0.12 dB), because its peaks were the dialogue's. A second loud master, `loud-bed` (music at −12 and effects at −16 dBFS RMS, the whole mix normalised to −0.1 dBFS), has a known bed that peaks at +0.1 dBFS: it goes over full scale only where the speech pulls the other way (run `20261102-154635-separation-open-8fec`, DBS-BSRNN mono). DBS's bed came out peaking at −0.07 dBFS, and `bedScale` (the bed's gain against input − voice) read 0.00 dB: nothing was scaled. On an input that is already under full scale, the fast bed can only go over by what the dialogue takes away at the loudest moment, here about 0.1 dB, and the model's dialogue stem didn't reach it. The scaling can matter for an input that is itself over full scale (a float WAV, or an AAC decode that overshoots); that isn't measured. Dialogue under a bed this loud is hard for both the model and Whisper (dialogue 7.5 dB, WER 0.58 against 0.50 for the input as is).
+- **Where steady noise goes (§11):** a 50 Hz hum goes mostly to music with DBS-BSRNN (72 %; 14 % stays in the dialogue) and to effects with DBS-TIGER (54 %; 18 % in the dialogue); tape hiss splits across effects (49–59 %), music and dialogue (20–31 %). DBS doesn't clean hiss off a voice, as D5 says.
+- **Stems add up:** voice + bed match the input to −79 dB (FLAC) on every DBS run; the video source scores as the audio file does.
- - **The dub's voice split** (run `20261102-150312-separation-open-32a4`, centre, hum and video, Qwen3-ASR 0.6B in the graph): MelBand RoFormer scored higher than DBS on these mixes (dialogue 14.6–22.1 dB against 14.2–15.4; music & effects 10.2–16.8 against 9.8–10.5; Qwen3-ASR's own transcript WER 0–0.08 against 0.11–0.12), and took 128–190 s against 47–49 s for 12 s (DBS: 0.26x real time with the ASR). The test mixes have no singing and no recorded effects, which is where a vocals model goes wrong, so this decides nothing about films: the dub's default stays MelBand RoFormer (`DEFAULT_VOICE_SPLIT`), and the owner's real clips on the blind review page are the next step.
++- **The dub's voice split** (run `20261102-150312-separation-open-32a4`, centre, hum and video, Qwen3-ASR 0.6B in the graph): MelBand RoFormer scored higher than DBS on these mixes (dialogue 14.6–22.1 dB against 14.2–15.4; music & effects 10.2–16.8 against 9.8–10.5; Qwen3-ASR's own transcript WER 0–0.08 against 0.11–0.12), and was slower: the first job of each (centre) also loaded Qwen3-ASR and took 127 s with DBS and 190 s with MelBand; warm, 12 s took 47–49 s with DBS (0.26x real time with the ASR) against 128–133 s with MelBand. The test mixes have no singing and no recorded effects, which is where a vocals model goes wrong, so this decides nothing about films: the dub's default stays MelBand RoFormer (`DEFAULT_VOICE_SPLIT`), and the owner's real clips on the blind review page are the next step.
++- **Clean up dialogue (D5, open: graph C at the −18 dB preset;** run `20261102-154635-separation-open-8fec`, centre, hum, hiss and `loud-bed`, DBS-BSRNN mono): the one file scored 15.2–16.6 dB against the voice plus the known bed at −18 dB on the three ordinary mixes (9.4 on `loud-bed`), and Whisper's WER fell where the input was hard (hiss: 0.000 against 0.138 for the input as is; elsewhere the same as the input). But the bed comes out louder than asked: its gain in the file is −12.5 to −12.7 dB, not −18 (−16.7 on `loud-bed`). The dialogue stem itself carries the bed at about −18 dB (measured the same way on graph A's voice stem: −18.0 to −18.3 dB), and graph C adds the bed back at −18 dB on top, in phase, so the two add up to about −12.5. "Dialogue only" leaves that leak at about −18 dB. D5's "a −18 dB bed came out at −17.9 dB" measured the bed against the input music on a different clip; this suite measures the bed's gain in the finished file by least squares against the known voice and bed together. The preset's numbers are not changed here; a person decides, after hearing it, whether the presets should ask for less (by arithmetic, not measured: −24 dB would give about −14.5 dB in the file, "Dialogue only" about −18) or keep the words. A hum is partly put back (25 % of it in the file against 14 % in graph A's dialogue stem), and hiss stays (33 %), as D5 says. The cloud cleaners (VEED Clean Audio, DeepFilterNet 3) are in the suite as dry runs only: no key and no paid call.
+- **"Clean the voice first" (D6, not built yet):** Whisper heard the input as is as well as the DBS dialogue stem (WER 0.117 against 0.105–0.154; the speech sits 6 dB over the music here). Separating first helped only with hiss and DBS-BSRNN (0.069 against 0.138). The evidence supports D6's default off for audio-only speech; on video, measure with real clips first.
+
### D5 · Clean up dialogue (P1)
- A "Clean up dialogue" preset in Split soundtrack plus a direct entry in the Audio hub and on videos. Open: DBS voice, optionally the bed at −18 dB (graph C or the browser mixer). There is no open denoiser in Fuobe's research, so the open route removes music and effects but not hiss or hum (say so). Cloud: add `veed/clean-audio` (research row exists) and `fal-ai/deepfilternet3` (needs a research record first) through `gen-cloud-models.py`; ElevenLabs isolation stays.
+ A "Clean up dialogue" preset in Split soundtrack plus a direct entry in the Audio hub and on videos. Open: DBS voice, optionally the bed at −18 dB (graph C or the browser mixer). There is no open denoiser in Fuobe's research, so the open route removes music and effects but not hiss or hum (say so). Cloud: add `veed/clean-audio` (research row exists) and `fal-ai/deepfilternet3` (needs a research record first) through `gen-cloud-models.py`; ElevenLabs isolation stays. *As built (D5):* a Clean up dialogue task in Split soundtrack (`?preset=clean-dialogue`, a chip on audio and video results) and a Clean dialogue (−18 dB) mixer preset. Open: graph C `soundtrack-remix-dbs` on `oss-dbs-remix` (music and effects at Off / −24 / −18 / −12 dB; Off sends −100 dB), then `oss-mux` for a video. Cloud: `veed-clean-audio` (its `audio_url` takes a video too; fal also lists `veed/clean-audio/video`, which returns the video with the picture copied, not used yet), `deepfilternet3` (audio only: `extract-soundtrack` first for a video; MIT OR Apache-2.0) and ElevenLabs isolation, then `merge-audio-video`; no bed under the cloud voice (`samAudioCloud` false). Main's Clean up voice (RE-USE) is the open denoiser this research did not have; the page points to it. Measured on the CPU ComfyUI with graph C, 15 s mono clips (Mandarin read speech, so outside DBS's English training data): speech under loud music went from −15.2 to −5.1 dB SI-SDR against the clean speech; speech over a 50 + 150 Hz hum with pink hiss went from −1.6 to 5.2 dB, the 50 Hz line about 51 dB lower and 150 Hz about 39 dB lower, hiss above 4 kHz only about 10.6 dB lower; a −18 dB bed came out at −17.9 dB against the input music; DBS-BSRNN ran at 0.36–0.42x real time.
### D6 · Clean the voice first (P1)
@@@ -469,7 -441,7 +470,7 @@@ An ONNX export of the network core (§5
- Whether the authors will release more DBS checkpoints (MUSDB 4-stem, EchoSet), and whether fal or Replicate will host DBS. Replicate could not be ruled out with certainty.
- AudioShake's dollar price per credit.
- Replicate `ryan5453/demucs` hardware (A100 in the text, A40 in the page's JSON); all Replicate prices are page estimates.
- - Where steady noise (hiss, hum, room tone) lands: measured on synthetic mixes in §9 D4 (hum mostly to music or effects, hiss spread with 20–31 % left in the dialogue); room tone and real recordings are unmeasured.
-- Where steady noise (hiss, hum, room tone) lands: sfx or speech. It matters for "Clean up dialogue". *Partly measured (D5):* on one synthetic clip a mains hum went mostly to sfx (removed), broadband hiss mostly stayed with the speech (about 10 dB lower).
++- Where steady noise (hiss, hum, room tone) lands: sfx or speech. It matters for "Clean up dialogue". Measured twice, in different ways, and the two agree on hum but read hiss differently. *D5:* one mono Mandarin clip through graph C, measured as the drop in level at the noise's frequencies in the cleaned voice: a mains hum went mostly to sfx (removed), broadband hiss mostly stayed with the speech (about 10 dB lower). *D4 (§9 D4):* six stereo English mixes through graph A, measured as each stem's share of the known noise by projection: hum mostly to music (BSRNN) or effects (TIGER), hiss spread across effects (49–59 %), music and dialogue (20–31 % left in the dialogue). A 20–31 % share of the hiss's energy is 5–7 dB down, so both say the dialogue keeps an audible part of the hiss. Room tone and real recordings are unmeasured.
- The licences of individual DnR v2 source clips and whether they matter for the Apache-2.0 weights or their outputs.
## Sources (read 2026-10-29)