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.

Clean up voice: RE-USE in the catalog, its graphs, pins and licences

Adarsh2e166e170cdf
diff --git a/scripts/comfy/build-library.mjs b/scripts/comfy/build-library.mjs
index 43e9461d..70b3e854 100644
--- a/scripts/comfy/build-library.mjs
+++ b/scripts/comfy/build-library.mjs
@@ -70,6 +70,8 @@ export const LOADER_FOLDERS = {
LoadMoGeModel: { model_name: 'geometry_estimation' },
// MiniMax H3 video: larryvrh's turbo LoRA loader (ComfyUI-MiniMax-H3-Turbo) reads models/loras.
MiniMaxH3TurboLoRA: { lora_name: 'loras' },
+ // Clean up voice: ComfyUI-RE-USE's loader reads models/reuse.
+ REUSELoader: { model: 'reuse' },
};
// Nodes that fetch their own weights at runtime (no manual download needed; listed in the entry's autoDownloads).
const SELF_DOWNLOADING = new Set(['RIFE VFI', 'DownloadAndLoadWav2VecModel', 'RMBG', 'AILab_Qwen3ASRSubtitle', 'Apply Whisper', 'ClothesSegment', 'LatentSyncNode']);
@@ -139,6 +141,8 @@ export const BINDING_KEYS = new Set([
'sampler', 'unet',
// The owner's SOTA image families (2026-10-31): Ideogram 4's sampling preset
'preset',
+ // Clean up voice (ComfyUI-RE-USE): the RE-USE file, the rate it runs at, room tone, level and the music & effects bed's level
+ 'reuseModel', 'rate', 'roomToneDb', 'level', 'bedDb',
]);
// Sizes in GB: two decimals, and three where two would read 0 (a 4 MB DBS model), so no other entry's size changes.
diff --git a/scripts/comfy/hand-built/voice-clean-bed-reuse.json b/scripts/comfy/hand-built/voice-clean-bed-reuse.json
new file mode 100644
index 00000000..58b8d0f4
--- /dev/null
+++ b/scripts/comfy/hand-built/voice-clean-bed-reuse.json
@@ -0,0 +1,120 @@
+{
+ "1": {
+ "class_type": "LoadAudio",
+ "inputs": {
+ "audio": "input.wav"
+ },
+ "_meta": {
+ "title": "Soundtrack to clean (audio, or a video with sound)"
+ }
+ },
+ "2": {
+ "class_type": "REUSELoader",
+ "inputs": {
+ "model": "NemotronLabs-RE-USE.safetensors",
+ "device": "auto"
+ },
+ "_meta": {
+ "title": "Load RE-USE"
+ }
+ },
+ "3": {
+ "class_type": "DBSLoader",
+ "inputs": {
+ "model": "DBS-BSRNN-DnR",
+ "device": "auto"
+ },
+ "_meta": {
+ "title": "DBS Loader"
+ }
+ },
+ "4": {
+ "class_type": "DBSSeparate",
+ "inputs": {
+ "model": [
+ "3",
+ 0
+ ],
+ "audio": [
+ "1",
+ 0
+ ],
+ "channels": "mono",
+ "output_sample_rate": "input"
+ },
+ "_meta": {
+ "title": "DBS Separate (music / sfx / speech)"
+ }
+ },
+ "5": {
+ "class_type": "AudioMerge",
+ "inputs": {
+ "audio1": [
+ "1",
+ 0
+ ],
+ "audio2": [
+ "4",
+ 2
+ ],
+ "merge_method": "subtract"
+ },
+ "_meta": {
+ "title": "Music & effects: the original minus the speech"
+ }
+ },
+ "6": {
+ "class_type": "REUSEEnhance",
+ "inputs": {
+ "reuse_model": [
+ "2",
+ 0
+ ],
+ "audio": [
+ "4",
+ 2
+ ],
+ "rate": "source",
+ "pre_lowpass": "off",
+ "channels": "mono",
+ "chunk_seconds": 0,
+ "overlap_seconds": 1,
+ "room_tone_db": -60,
+ "level": "match input",
+ "bed": [
+ "5",
+ 0
+ ],
+ "bed_db": 0
+ },
+ "_meta": {
+ "title": "Clean up voice (RE-USE)"
+ }
+ },
+ "7": {
+ "class_type": "SaveAudioAdvanced",
+ "inputs": {
+ "audio": [
+ "6",
+ 0
+ ],
+ "filename_prefix": "fuobe/reuse/voice-bed",
+ "format": "flac"
+ },
+ "_meta": {
+ "title": "Clean dialogue over the music & effects"
+ }
+ },
+ "8": {
+ "class_type": "PreviewAny",
+ "inputs": {
+ "source": [
+ "6",
+ 1
+ ]
+ },
+ "_meta": {
+ "title": "RE-USE report"
+ }
+ }
+}
diff --git a/scripts/comfy/hand-built/voice-clean-reuse.json b/scripts/comfy/hand-built/voice-clean-reuse.json
new file mode 100644
index 00000000..cac51157
--- /dev/null
+++ b/scripts/comfy/hand-built/voice-clean-reuse.json
@@ -0,0 +1,70 @@
+{
+ "1": {
+ "class_type": "LoadAudio",
+ "inputs": {
+ "audio": "input.wav"
+ },
+ "_meta": {
+ "title": "Voice to clean (audio, or a video with sound)"
+ }
+ },
+ "2": {
+ "class_type": "REUSELoader",
+ "inputs": {
+ "model": "NemotronLabs-RE-USE.safetensors",
+ "device": "auto"
+ },
+ "_meta": {
+ "title": "Load RE-USE"
+ }
+ },
+ "3": {
+ "class_type": "REUSEEnhance",
+ "inputs": {
+ "reuse_model": [
+ "2",
+ 0
+ ],
+ "audio": [
+ "1",
+ 0
+ ],
+ "rate": "source",
+ "pre_lowpass": "off",
+ "channels": "mono",
+ "chunk_seconds": 0,
+ "overlap_seconds": 1,
+ "room_tone_db": -60,
+ "level": "match input"
+ },
+ "_meta": {
+ "title": "Clean up voice (RE-USE)"
+ }
+ },
+ "4": {
+ "class_type": "SaveAudioAdvanced",
+ "inputs": {
+ "audio": [
+ "3",
+ 0
+ ],
+ "filename_prefix": "fuobe/reuse/voice",
+ "format": "flac"
+ },
+ "_meta": {
+ "title": "Clean voice"
+ }
+ },
+ "5": {
+ "class_type": "PreviewAny",
+ "inputs": {
+ "source": [
+ "3",
+ 1
+ ]
+ },
+ "_meta": {
+ "title": "RE-USE report"
+ }
+ }
+}
diff --git a/scripts/comfy/install-comfyui.sh b/scripts/comfy/install-comfyui.sh
index 6432e06a..bbbc6890 100755
--- a/scripts/comfy/install-comfyui.sh
+++ b/scripts/comfy/install-comfyui.sh
@@ -175,4 +175,38 @@ SHA
fi
# --- end DBS weights
+# --- ComfyUI-RE-USE (Clean up voice: NVIDIA RE-USE speech enhancement). Fuobe's own pack, kept in this repository at
+# comfy-nodes/ComfyUI-RE-USE (MIT; the network code adapted from NVIDIA's repository keeps its OpenMDW-1.1 notices). It is
+# copied from the checkout this script runs in, so it always matches this install. It needs no Python package beyond
+# ComfyUI's own (no mamba-ssm). REUSE_PACK=0 leaves it out.
+REPO_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
+if [ "${REUSE_PACK:-1}" = "1" ] && [ -d "$REPO_ROOT/comfy-nodes/ComfyUI-RE-USE" ]; then
+ rm -rf "$COMFYUI_DIR/custom_nodes/ComfyUI-RE-USE"
+ cp -r "$REPO_ROOT/comfy-nodes/ComfyUI-RE-USE" "$COMFYUI_DIR/custom_nodes/"
+ rm -rf "$COMFYUI_DIR/custom_nodes/ComfyUI-RE-USE/tests"
+fi
+# RE-USE weights (voice-clean-reuse, voice-clean-bed-reuse): 2 files, 39 MB each, from the NemotronLabs repositories
+# (OpenMDW-1.1) at pinned revisions, into models/reuse/, each checked with sha256sum -c. Never nvidia/RE-USE: that older
+# release is non-commercial. The laughter model is the optional "Keep laughter". REUSE_WEIGHTS=0 skips them.
+if [ "${REUSE_WEIGHTS:-1}" = "1" ]; then
+ REUSE_DIR="$COMFYUI_DIR/models/reuse"
+ mkdir -p "$REUSE_DIR"
+ for spec in "NemotronLabs-RE-USE 31f82f2efad1095034492f236e8dac9239ba713b" "NemotronLabs-RE-USE-laughter 1b1521dd659608e1e063ada83e0acfe1da473a8b"; do
+ read -r name rev <<<"$spec"
+ [ -s "$REUSE_DIR/$name.safetensors" ] && continue
+ if curl -fsSL --retry 3 -o "$REUSE_DIR/$name.safetensors.part" "https://huggingface.co/nvidia/NVIDIA-$name/resolve/$rev/model.safetensors"; then
+ mv "$REUSE_DIR/$name.safetensors.part" "$REUSE_DIR/$name.safetensors"
+ else
+ rm -f "$REUSE_DIR/$name.safetensors.part"
+ echo "warn: could not download nvidia/NVIDIA-$name at $rev"
+ fi
+ done
+ (cd "$REUSE_DIR" && sha256sum -c --quiet <<'SHA'
+06badaf4029b297f97f7fe48d62990b48d5482608210df577354e0d4e0ed70e1 NemotronLabs-RE-USE.safetensors
+35c2a4e284515275d2e49a8e8cb5cd392ae67a1f1d345de1c12a0202c7b6b610 NemotronLabs-RE-USE-laughter.safetensors
+SHA
+ ) || echo "warn: a RE-USE weight file is missing or failed its SHA-256 check (delete it from models/reuse and re-run)"
+fi
+# --- end ComfyUI-RE-USE
+
echo "ComfyUI installed in $COMFYUI_DIR. Start it with: $SCRIPT_DIR/start-comfyui.sh"
diff --git a/scripts/comfy/library.spec.mjs b/scripts/comfy/library.spec.mjs
index 9b6e1c3a..d696c58f 100644
--- a/scripts/comfy/library.spec.mjs
+++ b/scripts/comfy/library.spec.mjs
@@ -117,6 +117,13 @@
// Entry field requiredModels: files a loader reads by a name with no extension (DBSLoader's model folder), listed in the
// manifest like any model (KNOWN_MODELS keys are the path under the folder, e.g. 'DBS-BSRNN-DnR/model.safetensors'), so the
// Workflows page's presence check and its install commands cover them.
+// Keys added with Clean up voice (NVIDIA RE-USE, ComfyUI-RE-USE). * = the provider fills it:
+// reuseModel* (REUSELoader model: the file for params.extra.reuseModel voice | laughter, refused in words when
+// GET /models/reuse doesn't list it)
+// rate* (REUSEEnhance rate: source | source up to 24000 | source up to 16000 | 8000-48000; params.extra.rate,
+// "auto" = the host's pick: the source's rate on CUDA, at most 24 kHz on a CPU, 16 kHz past 2 minutes)
+// roomToneDb, level, bedDb (REUSEEnhance room_tone_db (-60 = off), level match input | -16 LUFS | off, bed_db)
+// channels* (REUSEEnhance channels, and DBSSeparate's in the bed graph: the DBS rules)
// Keys added with the owner's SOTA image families (2026-10-31), model controls (params.extra):
// preset (Ideogram 4's sampling preset by name: Quality | Default | Turbo, the graph's own table)
@@ -163,6 +170,9 @@ export const CUSTOM_NODE_REPOS = {
// PlagueKind's SLA attention and AdaLN LoRA fix (MIT, v1.5.6; the SLA kernel needs Triton). Pinned in install-comfyui.sh.
'ComfyUI-MiniMax-H3-Turbo': 'https://github.com/Larryvrh/ComfyUI-MiniMax-H3-Turbo/tree/77bfa67575b14e3be6214f1747732e540c68b5dd',
'plaguekind-nodes': 'https://github.com/PlagueKind/ComfyUI-PlagueKind-Nodes/tree/d58d006a4ea32c25c06499f2ff104f0852a045a6',
+ // Clean up voice (NVIDIA RE-USE): Fuobe's own pack, in this repository (comfy-nodes/ComfyUI-RE-USE), pinned at the commit
+ // that last changed it (tests/reuse-pack-pin.test.ts checks it). install-comfyui.sh copies it from the checkout.
+ 'ComfyUI-RE-USE': 'https://github.com/workingprototype/Fuobe/tree/8cc0417b5cb8a603f06502d97d5c6d8c6035ea0d/comfy-nodes/ComfyUI-RE-USE',
};
// Node classes of the packs entries list in `packs` (packs the validation server doesn't have installed): the build
@@ -179,6 +189,7 @@ export const PACK_CLASSES = {
// MiniMax H3 video. The turbo classes need naming here: a ComfyUI with comfyui-workflow-encrypt reports that pack as their module.
'ComfyUI-MiniMax-H3-Turbo': /^MiniMaxH3Turbo(LoRA|Sampler)$/,
'plaguekind-nodes': /^H3(SLAAttention|AdaLNLoRAFix)$/,
+ 'ComfyUI-RE-USE': /^REUSE(Loader|Enhance)$/,
};
// Model download locations for files that the source workflow does not annotate
@@ -326,6 +337,10 @@ export const KNOWN_MODELS = {
'DBS-BSRNN-DnR/config.json': { folder: 'dbs', url: 'https://huggingface.co/JusperLee/DBS-BSRNN-DnR/resolve/5af343f57f106fbb95efe8a60f1a3999eeb0aef8/config.json' },
'DBS-TIGER-DnR/model.safetensors': { folder: 'dbs', url: 'https://huggingface.co/JusperLee/DBS-TIGER-DnR/resolve/22da7d4cd3ea63f9365181008bff1c0d2ab6fb2b/model.safetensors' },
'DBS-TIGER-DnR/config.json': { folder: 'dbs', url: 'https://huggingface.co/JusperLee/DBS-TIGER-DnR/resolve/22da7d4cd3ea63f9365181008bff1c0d2ab6fb2b/config.json' },
+ // RE-USE (Clean up voice): the NemotronLabs repositories only (OpenMDW-1.1; the older nvidia/RE-USE is non-commercial), at
+ // pinned revisions, named so both fit in models/reuse. install-comfyui.sh checks the SHA-256.
+ 'NemotronLabs-RE-USE.safetensors': { folder: 'reuse', url: 'https://huggingface.co/nvidia/NVIDIA-NemotronLabs-RE-USE/resolve/31f82f2efad1095034492f236e8dac9239ba713b/model.safetensors' },
+ 'NemotronLabs-RE-USE-laughter.safetensors': { folder: 'reuse', url: 'https://huggingface.co/nvidia/NVIDIA-NemotronLabs-RE-USE-laughter/resolve/1b1521dd659608e1e063ada83e0acfe1da473a8b/model.safetensors' },
// owner's SOTA families (2026-10-31): Qwen-Image 2.1. `variants`: the same weights in another precision in the same repo.
'qwen_image_2.1_int8_convrot.safetensors': { folder: 'diffusion_models', url: 'https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/diffusion_models/qwen_image_2.1_int8_convrot.safetensors', variants: ['qwen_image_2.1_bf16.safetensors'] },
'qwen_image_2.1_turbo_int8_convrot.safetensors': { folder: 'diffusion_models', url: 'https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/diffusion_models/qwen_image_2.1_turbo_int8_convrot.safetensors', variants: ['qwen_image_2.1_turbo_bf16.safetensors'] },
@@ -3002,6 +3017,64 @@ export const SPEC = [
'Voice is first, so a chain without a stem takes the dialogue. Trained on synthetic English mixes (DnR v2): dialogue separates well (15-16 dB), music against effects less so (5.7-7.8 dB). ' +
'Some FSD50K and FMA clips inside DnR v2 carry their own CC licences, NC variants included; whether that reaches the weights or their outputs is unresolved (recorded as information).',
},
+ // Clean up voice (NVIDIA NemotronLabs RE-USE, universal speech enhancement): Fuobe's own ComfyUI-RE-USE pack (no mamba-ssm).
+ // Not on the validation server: checked statically there (core nodes) and run through the pack's own tests.
+ {
+ id: 'voice-clean-reuse',
+ title: 'Clean up voice: noise, echo, clipping and codec damage removed from speech (NVIDIA RE-USE, ComfyUI-RE-USE)',
+ capability: 'enhance-voice',
+ handBuilt: 'hand-built/voice-clean-reuse.json',
+ packs: ['ComfyUI-RE-USE'],
+ optionalModels: ['NemotronLabs-RE-USE-laughter.safetensors'],
+ bindings: { audio: [b('1', 'audio')], reuseModel: [b('2', 'model')], rate: [b('3', 'rate')], channels: [b('3', 'channels')], roomToneDb: [b('3', 'room_tone_db')], level: [b('3', 'level')] },
+ outputs: [
+ { node: '4', kind: 'audio', stem: 'voice' },
+ { node: '5', kind: 'text', role: 'report' },
+ ],
+ defaults: { reuseModel: 'NemotronLabs-RE-USE.safetensors', rate: 'source', channels: 'mono', roomToneDb: -60, level: 'match input' },
+ vramGb: 0,
+ license: "RE-USE weights OpenMDW-1.1 (NVIDIA; 'ready for commercial use' on the card; the card's safety section points to the NVIDIA Open Model License for use-case limits); ComfyUI-RE-USE code MIT with adapted RE-USE code OpenMDW-1.1",
+ notes:
+ 'CPU OK; about 1 GB VRAM with chunking. audio = an audio file or a video (LoadAudio reads a video\'s soundtrack without decoding frames). ' +
+ 'REUSELoader model NemotronLabs-RE-USE (voice only) or NemotronLabs-RE-USE-laughter (keeps laughs and breaths a little more), 39 MB each; device auto. ' +
+ 'REUSEEnhance rate: the model\'s STFT scales with the rate (a 40 ms window at any rate), so work grows about linearly with it; above the source rate it fills the empty high band (bandwidth extension). ' +
+ 'Chunks from the free memory (2-20 s on CUDA, 5-10 s on a CPU) joined with 1 s raised-cosine crossfades; Cancel works between chunks. ' +
+ 'room_tone_db mixes the original back under the clean voice (Strength: Full -60 = off, Natural -24, Light -14); level match input brings the speech level back (the model is about 3 dB quieter), peak at most -1 dBFS. ' +
+ 'Measured under a busy RTX 5090 (worst cases): 0.26 s of work per second of audio at 16 kHz, 1.4 at 48 kHz with Triton (about 6x slower without); i9 CPU with numba: 4 at 16 kHz, 15 at 48 kHz. ' +
+ 'It keeps the main speaker and removes everything else (other voices, music, effects): voice-clean-bed-reuse keeps the music and effects. ' +
+ 'The Mamba layer is a plain-PyTorch rewrite (no mamba-ssm): it matches the reference maths numerically, but it is not NVIDIA\'s code path.',
+ },
+ {
+ id: 'voice-clean-bed-reuse',
+ title: 'Clean the dialogue of a soundtrack and keep its music and effects (DBS + NVIDIA RE-USE)',
+ capability: 'enhance-voice',
+ handBuilt: 'hand-built/voice-clean-bed-reuse.json',
+ packs: ['ComfyUI-RE-USE', 'ComfyUI-DBS'],
+ requiredModels: ['DBS-BSRNN-DnR/model.safetensors', 'DBS-BSRNN-DnR/config.json', 'DBS-TIGER-DnR/model.safetensors', 'DBS-TIGER-DnR/config.json'],
+ optionalModels: ['NemotronLabs-RE-USE-laughter.safetensors'],
+ bindings: {
+ audio: [b('1', 'audio')],
+ reuseModel: [b('2', 'model')],
+ separationModel: [b('3', 'model')],
+ channels: [b('4', 'channels'), b('6', 'channels')],
+ rate: [b('6', 'rate')],
+ roomToneDb: [b('6', 'room_tone_db')],
+ level: [b('6', 'level')],
+ bedDb: [b('6', 'bed_db')],
+ },
+ outputs: [
+ { node: '7', kind: 'audio', stem: 'voice' },
+ { node: '8', kind: 'text', role: 'report' },
+ ],
+ defaults: { reuseModel: 'NemotronLabs-RE-USE.safetensors', separationModel: 'DBS-BSRNN-DnR', rate: 'source', channels: 'mono', roomToneDb: -24, level: 'match input', bedDb: 0 },
+ vramGb: 0,
+ license: "RE-USE weights OpenMDW-1.1 (NVIDIA; 'ready for commercial use' on the card; the card's safety section points to the NVIDIA Open Model License for use-case limits); ComfyUI-RE-USE code MIT with adapted RE-USE code OpenMDW-1.1; DBS weights Apache-2.0 (JusperLee; trained on DnR v2, CC BY 4.0); ComfyUI-DBS code MIT; vendored DBS code Apache-2.0 with MIT notices (BS-RoFormer, MSST, TIGER)",
+ notes:
+ 'CPU OK. The video soundtrack variant of voice-clean-reuse (the provider runs it for params.extra.background "keep"): DBS splits the soundtrack (graph A\'s nodes), ' +
+ 'RE-USE cleans only the dialogue, and REUSEEnhance mixes the original music & effects (the original minus the speech, AudioMerge subtract) back under it at bed_db, at the higher of the two rates, peak at most -1 dBFS. ' +
+ 'A source with more than 2 channels runs in mono with music + effects as the bed (node 5 rewired, as graph A). The result has the input\'s length, starting at 0, so it goes back on the picture with video-mux-audio-replace. ' +
+ 'DBS was trained on English mixes; the dialogue split is its strong part (15-16 dB).',
+ },
{
id: 'captions-qwen3-asr',
title: 'Transcribe speech into timed caption cues (Qwen3-ASR 0.6B + ForcedAligner)',
diff --git a/src/lib/av/clean-voice.ts b/src/lib/av/clean-voice.ts
new file mode 100644
index 00000000..c8772b2b
--- /dev/null
+++ b/src/lib/av/clean-voice.ts
@@ -0,0 +1,339 @@
+import type { Engine, GenerationRequest } from "@/lib/catalog/types";
+import type { ToolPlan, ToolStep } from "./audio-tools";
+import { DBS_SPEED, durationWords, surroundSource } from "./split";
+
+/**
+ * Audio → Clean up voice (NVIDIA NemotronLabs RE-USE on Fuobe's ComfyUI-RE-USE pack): noise, echo, clipping, codec damage
+ * and phone-band audio fixed in any recording or video soundtrack, the main speaker kept. Pure: the tool page, the app,
+ * the slot switch and the server (src/server/audio-tools.ts) share it, and the ComfyUI provider takes its file and rate
+ * rules.
+ *
+ * - Open engine (ComfyUI + ComfyUI-RE-USE, CPU or GPU): one job on oss-reuse-voice (graph voice-clean-reuse; with
+ * "Keep music & effects", voice-clean-bed-reuse, which splits with DBS first and cleans only the dialogue). A video
+ * gets its clean soundtrack back with a second job on oss-mux (the picture copied untouched).
+ * - Cloud: none. RE-USE isn't hosted on fal or Replicate, and a noise gate in its place would be another tool, so the
+ * cloud engine says the tool runs on your GPU.
+ */
+
+export const CLEAN_FEATURE = "voice-clean";
+/** A cleaned soundtrack put back on its video. */
+export const CLEAN_REMUX_FEATURE = "voice-clean-remux";
+export const CLEAN_MODEL = "oss-reuse-voice";
+export const CLEAN_REMUX_MODEL = "oss-mux";
+
+export const CLOUD_CLEAN_PROBLEM =
+ "Clean up voice runs on your GPU (open source): NVIDIA RE-USE isn't hosted on fal or Replicate, so the cloud engine can't clean a voice. Switch to the open engine.";
+export const CLOUD_ONLY_CLEAN_PROBLEM = "Clean up voice runs on your GPU (open source), but this install is set to paid cloud APIs only (Settings → Engine mode)";
+
+/** What the tool always says, so nobody is surprised. */
+export const CLEAN_NOTES = {
+ speaker: "It keeps the main speaker. Other voices, music and effects are removed unless you keep music & effects.",
+ gaps: "Gaps between words come out silent at Full strength.",
+};
+
+// ---------------------------------------------------------------------------
+// The RE-USE files and how a run picks one
+
+export type ReuseModel = "voice" | "laughter";
+export const REUSE_FILES: Record<ReuseModel, string> = {
+ voice: "NemotronLabs-RE-USE.safetensors",
+ laughter: "NemotronLabs-RE-USE-laughter.safetensors",
+};
+export const REUSE_LABELS: Record<ReuseModel, string> = { voice: "Voice only", laughter: "Keep laughter" };
+
+/** The RE-USE files a host has, from GET /models/reuse (a Windows ComfyUI may list paths with back slashes); undefined when it can't say. */
+export function installedReuse(files: readonly string[] | null | undefined): ReuseModel[] | undefined {
+ if (!files) return undefined;
+ const have = new Set(files.map((f) => f.replace(/\\/g, "/").split("/").pop()));
+ return (Object.keys(REUSE_FILES) as ReuseModel[]).filter((m) => have.has(REUSE_FILES[m]));
+}
+
+/** Why a RE-USE model can't run on this host, in words (with how to fix it). */
+export function missingReuse(model: ReuseModel, installed: readonly ReuseModel[]): string {
+ if (model === "laughter" && installed.includes("voice")) return `Keep laughter isn't installed (models/reuse/${REUSE_FILES.laughter}, 39 MB); pick Voice only or install it from Workflows → Clean up voice.`;
+ return `RE-USE isn't on your ComfyUI yet (models/reuse/${REUSE_FILES[model]}, 39 MB). Copy the install commands from Workflows → Clean up voice.`;
+}
+
+/** The file a run loads: the one asked for (voice / laughter or the file's name), refused in words when the host's list doesn't have it. */
+export function reuseFileFor(asked: unknown, installed?: readonly ReuseModel[]): string {
+ const model: ReuseModel = asked === "laughter" || asked === REUSE_FILES.laughter ? "laughter" : "voice";
+ if (installed && !installed.includes(model)) throw new Error(missingReuse(model, installed));
+ return REUSE_FILES[model];
+}
+
+/** Said when the ComfyUI has no ComfyUI-RE-USE nodes at all (no reuse folder to list). */
+export const NO_REUSE_PACK = "Clean up voice needs the ComfyUI-RE-USE nodes on your ComfyUI. Copy the install commands from Workflows → Clean up voice.";
+
+// ---------------------------------------------------------------------------
+// Settings
+
+export type CleanQuality = "auto" | "full" | "fast";
+export type CleanStrength = "full" | "natural" | "light";
+export type CleanLevel = "match" | "voice";
+export type CleanBackground = "remove" | "keep";
+
+export const QUALITY_LABELS: Record<CleanQuality, string> = { auto: "Auto", full: "Full band 48 kHz", fast: "Fast 16 kHz" };
+export const QUALITY_HINTS: Record<CleanQuality, string> = {
+ auto: "Keeps the source's rate on a GPU; at most 24 kHz on a CPU (16 kHz past 2 minutes).",
+ full: "Full band restores muffled or phone audio (bandwidth extension).",
+ fast: "About 3x faster than full band; the result is band-limited to 8 kHz.",
+};
+export const STRENGTH_LABELS: Record<CleanStrength, string> = { full: "Full", natural: "Natural", light: "Light" };
+/** Strength is how much of the original is left under the clean voice (room tone, in dB; -60 = none). */
+export const STRENGTH_DB: Record<CleanStrength, number> = { full: -60, natural: -24, light: -14 };
+export const LEVEL_LABELS: Record<CleanLevel, string> = { match: "Match the original", voice: "Voice-over (−16 LUFS)" };
+export const LEVEL_NODE: Record<CleanLevel, string> = { match: "match input", voice: "-16 LUFS" };
+export const BACKGROUND_LABELS: Record<CleanBackground, string> = { remove: "Remove everything but the voice", keep: "Keep music & effects" };
+
+/** The quality control's value for the model (params.extra.rate): "auto", or a rate. */
+export const QUALITY_RATE: Record<CleanQuality, "auto" | "48000" | "16000"> = { auto: "auto", full: "48000", fast: "16000" };
+
+/** A CPU cleans at most this much audio at full rate before Auto drops to 16 kHz. */
+export const CPU_FULL_RATE_SECONDS = 120;
+
+/**
+ * REUSEEnhance's rate input for a run: Full band 48 kHz and Fast 16 kHz as named; Auto keeps the source's rate on a CUDA
+ * GPU (8-48 kHz) and caps it on a CPU, at 24 kHz up to 2 minutes of audio and 16 kHz past that. The node knows the
+ * source's rate, so a cap never raises it.
+ */
+export function rateFor(quality: unknown, device?: string | null, seconds?: number | null): string {
+ if (quality === "full" || quality === "48000" || quality === 48000) return "48000";
+ if (quality === "fast" || quality === "16000" || quality === 16000) return "16000";
+ if (typeof quality === "string" && /^(source|\d{4,5}$)/.test(quality) && quality !== "auto") return quality;
+ if (device === "cuda") return "source";
+ return (seconds ?? 0) > CPU_FULL_RATE_SECONDS ? "source up to 16000" : "source up to 24000";
+}
+
+/** The rate a node value runs at, for the estimate (a source of unknown rate counts as 44.1 kHz). */
+export function workRate(rate: string, sourceRate = 44100): number {
+ const src = Math.min(48000, Math.max(8000, sourceRate));
+ if (rate === "source") return src;
+ const cap = /^source up to (\d+)$/.exec(rate);
+ if (cap) return Math.min(src, Number(cap[1]));
+ return Math.min(48000, Math.max(8000, Number(rate) || src));
+}
+
+// ---------------------------------------------------------------------------
+// Time
+
+/**
+ * Seconds of work per second of audio, one pass with 1 s crossfades, as measured (RTX 5090 with Triton and an i9-13900K
+ * with numba, both shared with a busy video queue: worst cases; to measure again on an idle card).
+ */
+export const REUSE_RTF: Record<"cpu" | "cuda", [rate: number, rtf: number][]> = {
+ cuda: [
+ [8000, 0.13],
+ [16000, 0.26],
+ [24000, 0.4],
+ [44100, 1.3],
+ [48000, 1.4],
+ ],
+ cpu: [
+ [8000, 2],
+ [16000, 4],
+ [24000, 5],
+ [44100, 13],
+ [48000, 15],
+ ],
+};
+
+/** Work per second of audio at a rate (linear between the measured rates). */
+export function rtfAt(device: "cpu" | "cuda", rate: number): number {
+ const t = REUSE_RTF[device];
+ if (rate <= t[0][0]) return t[0][1];
+ for (let i = 1; i < t.length; i++) {
+ const [r1, v1] = t[i];
+ const [r0, v0] = t[i - 1];
+ if (rate <= r1) return v0 + ((v1 - v0) * (rate - r0)) / (r1 - r0);
+ }
+ return t[t.length - 1][1];
+}
+
+/** Loading the model and the audio, saving the FLAC (seconds); Triton compiles its scan on a GPU's first run. */
+const OVERHEAD_SECONDS = 3;
+const FIRST_RUN_SECONDS = 20;
+
+/** About how long a clean takes, as a range in seconds. */
+export function cleanTime(o: { seconds: number; rate: number; device?: string | null; passes?: number; bed?: boolean; firstRun?: boolean }): { low: number; high: number } {
+ const dev = o.device === "cuda" ? "cuda" : "cpu";
+ const work = Math.max(0, o.seconds) * Math.max(1, o.passes ?? 1) * rtfAt(dev, o.rate);
+ // Keep music & effects: DBS runs first (its Fast model on a CPU, Best on a GPU).
+ const dbs = o.bed ? Math.max(0, o.seconds) / DBS_SPEED[dev][dev === "cuda" ? "best" : "fast"] : 0;
+ // The measurements were worst cases on a GPU; a CPU's spread is DBS's.
+ const [lo, hi] = dev === "cuda" ? [0.3, 1.2] : [0.8, 1.6];
+ const extra = OVERHEAD_SECONDS + (o.firstRun && dev === "cuda" ? FIRST_RUN_SECONDS : 0);
+ return { low: Math.round(extra + (work + dbs) * lo), high: Math.round(extra + (work + dbs) * hi) };
+}
+
+/** The longest a clean may take (its low estimate): past this the plan says what to change instead. */
+export const CLEAN_MAX_SECONDS = 2 * 3600;
+
+/** Why a clean would take too long (on a CPU, a long file at full band), or null. */
+export function tooLongProblem(t: { low: number }, device?: string | null): string | null {
+ if (t.low <= CLEAN_MAX_SECONDS) return null;
+ const h = Math.round((t.low / 3600) * 10) / 10;
+ return `That's about ${h} h ${device === "cuda" ? "on your GPU" : "on a CPU"}. Pick Fast 16 kHz, use a shorter file, or connect a GPU.`;
+}
+
+export { durationWords };
+
+// ---------------------------------------------------------------------------
+// The plan
+
+export interface CleanInput {
+ engine: Engine;
+ /** The audio or video file (/api/files/…). */
+ media: string;
+ kind: "audio" | "video";
+ name?: string;
+ model?: ReuseModel;
+ quality?: CleanQuality;
+ strength?: CleanStrength;
+ background?: CleanBackground;
+ level?: CleanLevel;
+ /** A video: put the clean soundtrack back on the picture (a second job). */
+ remux?: boolean;
+ /** "each channel" keeps a stereo recording stereo (twice the work). */
+ stereo?: boolean;
+ channels?: number;
+ seconds?: number;
+ /** The file has no sound track (from its header). */
+ silent?: boolean;
+}
+
+export interface CleanPlan extends ToolPlan {
+ /** The settings the plan ran with (the page shows them). */
+ strength: CleanStrength;
+ background: CleanBackground;
+ remux: boolean;
+}
+
+/** Defaults: audio is cleaned Full with nothing kept; a video keeps its music and effects at Natural strength and goes back on the picture. */
+export function cleanDefaults(kind: "audio" | "video"): { strength: CleanStrength; background: CleanBackground; remux: boolean } {
+ return kind === "video" ? { strength: "natural", background: "keep", remux: true } : { strength: "full", background: "remove", remux: false };
+}
+
+const titleOf = (i: { name?: string; kind: "audio" | "video" }) => `Clean voice · ${i.name?.trim() || (i.kind === "video" ? "video soundtrack" : "recording")}`;
+
+/** One RE-USE job on the open engine, and the mux back onto a video; throws what's in the way (in words the page shows). */
+export function planClean(i: CleanInput): CleanPlan {
+ if (i.engine === "cloud") throw new Error(CLOUD_CLEAN_PROBLEM);
+ if (!i.media) throw new Error(`Add the ${i.kind === "video" ? "video" : "audio"} to clean`);
+ if (i.silent) throw new Error(i.kind === "video" ? "This video has no sound to clean" : "This file has no sound to clean");
+ const d = cleanDefaults(i.kind);
+ const strength = i.strength ?? d.strength;
+ const background = i.background ?? d.background;
+ const remux = i.kind === "video" && (i.remux ?? d.remux);
+ const surround = surroundSource(i.channels);
+ const channels = i.stereo && !surround && i.channels !== 1 ? "each channel" : "mono";
+ const title = titleOf(i);
+ const extra: Record<string, unknown> = {
+ reuseModel: i.model ?? "voice",
+ rate: QUALITY_RATE[i.quality ?? "auto"],
+ strength,
+ level: LEVEL_NODE[i.level ?? "match"],
+ channels,
+ ...(background === "keep" && { background: "keep" }),
+ ...(i.channels && i.channels > 0 && { sourceChannels: Math.round(i.channels) }),
+ };
+ const of = remux ? 2 : 1;
+ const request: GenerationRequest = {
+ modelId: CLEAN_MODEL,
+ op: "enhance-voice",
+ feature: CLEAN_FEATURE,
+ batchTitle: title,
+ title,
+ inputs: i.kind === "video" ? { video: i.media } : { audio: i.media },
+ params: { extra, ...(i.seconds && i.seconds > 0 && { sourceDuration: Math.round(i.seconds * 1000) / 1000 }) },
+ step: { label: background === "keep" ? "Cleaning the dialogue · music & effects kept" : "Cleaning the voice", index: 0, of },
+ };
+ const steps: ToolStep[] = [{ key: "clean", request }];
+ if (remux) {
+ steps.push({
+ key: "remux",
+ after: ["clean"],
+ chain: [{ slot: "audio" }],
+ request: {
+ modelId: CLEAN_REMUX_MODEL,
+ op: "mux",
+ feature: CLEAN_REMUX_FEATURE,
+ batchTitle: title,
+ title: `${title} · on the video`,
+ inputs: { video: i.media },
+ step: { label: "Clean soundtrack · picture copied", index: 1, of },
+ },
+ });
+ }
+ const what = i.kind === "video" ? "the video's soundtrack" : "the recording";
+ return {
+ steps,
+ length: i.seconds && i.seconds > 0 ? i.seconds : null,
+ strength,
+ background,
+ remux,
+ summary:
+ background === "keep"
+ ? `Splits ${what} with DBS, cleans the dialogue with RE-USE and puts the music and effects back under it${remux ? ", then puts it back on the picture (copied as it is)" : ""}.`
+ : `Cleans ${what} with RE-USE${remux ? ", then puts it back on the picture (copied as it is)" : ""}.`,
+ notes: [
+ ...(background === "keep" ? [] : [CLEAN_NOTES.speaker]),
+ ...(strength === "full" ? [CLEAN_NOTES.gaps] : []),
+ ...(surround ? [`This file has ${i.channels} channels: it is cleaned in mono, as ComfyUI saves mono or stereo only.`] : []),
+ ],
+ };
+}
+
+/** The estimate for a plan on a host: its rate on that device, every pass, and DBS when music & effects are kept. */
+export function planTime(i: { seconds: number; quality?: CleanQuality; device?: string | null; stereo?: boolean; channels?: number; background?: CleanBackground; sourceRate?: number }): { low: number; high: number; rate: number } {
+ const rate = workRate(rateFor(i.quality ?? "auto", i.device, i.seconds), i.sourceRate);
+ const passes = i.stereo && !surroundSource(i.channels) && i.channels !== 1 ? Math.max(1, i.channels ?? 2) : 1;
+ return { ...cleanTime({ seconds: i.seconds, rate, device: i.device, passes, bed: i.background === "keep" }), rate };
+}
+
+/** "16 kHz", "44.1 kHz" */
+export const khz = (rate: number): string => `${Math.round(rate / 100) / 10} kHz`;
+
+/** What a finished run's report says, in a line ("GPU · Triton · 1.9x real time"). */
+export function reportLine(report: unknown): string | null {
+ const r = typeof report === "string" ? safeJson(report) : report;
+ if (!r || typeof r !== "object") return null;
+ const o = r as { device?: string; scan?: string; times_real_time?: number; rate?: number };
+ const dev = /^cuda/.test(o.device ?? "") ? "GPU" : o.device ? "CPU" : null;
+ const scan = o.scan === "triton" ? "Triton" : o.scan === "numba" ? "numba" : o.scan === "torch-loop" ? "PyTorch loop" : null;
+ const speed = typeof o.times_real_time === "number" ? `${o.times_real_time}x real time` : null;
+ const parts = [dev, o.rate ? khz(o.rate) : null, scan, speed].filter(Boolean);
+ return parts.length ? parts.join(" · ") : null;
+}
+
+/** A hint when a CUDA host ran without Triton (about 6x slower). */
+export function scanHint(report: unknown): string | null {
+ const r = typeof report === "string" ? safeJson(report) : report;
+ const o = (r ?? {}) as { device?: string; scan?: string };
+ return /^cuda/.test(o.device ?? "") && o.scan === "torch-loop" ? "Install Triton for about 6x faster cleaning" : null;
+}
+
+function safeJson(s: string): unknown {
+ try {
+ return JSON.parse(s);
+ } catch {
+ return null;
+ }
+}
+
+// ---------------------------------------------------------------------------
+// The guest demo: NVIDIA's own sample, cleaned (static files, no run)
+
+export interface DemoPair {
+ id: string;
+ label: string;
+ hint: string;
+ before: string;
+ after: string;
+}
+
+export const DEMO_DIR = "/samples/clean-voice";
+export const DEMO_PAIRS: DemoPair[] = [
+ { id: "noisy-mic", label: "Noisy mic", hint: "Hiss, hum and a whine from a cheap mic, cleaned at the source's rate", before: `${DEMO_DIR}/noisy-mic-before.m4a`, after: `${DEMO_DIR}/noisy-mic-after.m4a` },
+ { id: "phone", label: "Phone line → full band", hint: "The same speech squeezed into a phone line, then restored to 48 kHz", before: `${DEMO_DIR}/phone-before.m4a`, after: `${DEMO_DIR}/phone-after.m4a` },
+];
+export const DEMO_CREDIT = { text: "Sample and model: NVIDIA RE-USE (OpenMDW-1.1)", model: "https://huggingface.co/nvidia/NVIDIA-NemotronLabs-RE-USE", licence: `${DEMO_DIR}/LICENSE-OpenMDW-1.1.txt` };
diff --git a/src/lib/catalog/models.ts b/src/lib/catalog/models.ts
index 2024b39f..98d4dd8c 100644
--- a/src/lib/catalog/models.ts
+++ b/src/lib/catalog/models.ts
@@ -1425,6 +1425,43 @@ const open: ModelDef[] = [
],
},
}),
+ // NVIDIA NemotronLabs RE-USE (universal speech enhancement) on Fuobe's own ComfyUI-RE-USE pack (comfy-nodes/, no mamba-ssm):
+ // noise, echo, clipping, codec damage and phone-band audio fixed, the main speaker kept. Open engine only: nothing like it is
+ // hosted on fal or Replicate. params.extra.background "keep" runs voice-clean-bed-reuse (DBS keeps the music and effects;
+ // src/lib/comfy-variants.ts). Clean up voice (src/lib/av/clean-voice.ts) runs on it.
+ o({
+ id: "oss-reuse-voice",
+ name: "RE-USE (clean up voice)",
+ vendor: "NVIDIA",
+ family: "reuse",
+ kind: "audio",
+ tagline: "Removes noise, echo, clipping and codec damage from speech, restores muffled or phone audio to full band · 39 MB · CPU or GPU · OpenMDW-1.1",
+ badges: ["new"],
+ routes: [comfy("enhance-voice", "voice-clean-reuse", "the clean voice (FLAC) + a speed report; ComfyUI-RE-USE. Keep music & effects: voice-clean-bed-reuse (+ ComfyUI-DBS)")],
+ options: {
+ promptless: true,
+ controls: [
+ // Strength is how much of the original stays under the clean voice (room tone).
+ {
+ param: "strength",
+ label: "Strength",
+ values: ["full", "natural", "light"],
+ default: "full",
+ labels: { full: "Full", natural: "Natural (a little room tone)", light: "Light" },
+ sets: { full: { roomToneDb: -60 }, natural: { roomToneDb: -24 }, light: { roomToneDb: -14 } },
+ },
+ {
+ param: "reuseModel",
+ label: "Model",
+ values: ["NemotronLabs-RE-USE.safetensors", "NemotronLabs-RE-USE-laughter.safetensors"],
+ default: "NemotronLabs-RE-USE.safetensors",
+ labels: { "NemotronLabs-RE-USE.safetensors": "Voice only", "NemotronLabs-RE-USE-laughter.safetensors": "Keep laughter" },
+ },
+ // No default: the host decides (the source's rate on a GPU, capped on a CPU), as the composer's own Auto.
+ { param: "rate", label: "Quality", values: ["48000", "16000"], labels: { "48000": "Full band 48 kHz", "16000": "Fast 16 kHz" } },
+ ],
+ },
+ }),
o({
id: "oss-qwen3-asr",
name: "Qwen3-ASR",
diff --git a/src/lib/catalog/plan.ts b/src/lib/catalog/plan.ts
index 3e6f67d3..3e774558 100644
--- a/src/lib/catalog/plan.ts
+++ b/src/lib/catalog/plan.ts
@@ -193,7 +193,7 @@ const PROMPTLESS = new Set<Operation>([
"concat", "frame", "color-match", "finalize", "reframe", "dialogue", "voice-change", "dub", "bg-remove-video", "depth-video", "upscale-image", "upscale-video", "bg-remove",
"interpolate", "v2a", "face-swap", "motion-transfer", "lipsync", "avatar",
// round 3: tools that work from their inputs (open caption burn-in takes timed lines as its prompt and says so when they're missing)
- "trim", "transcribe", "mux", "separate-audio", "layers", "image-to-3d", "captions", "text-layers", "vectorize", "level",
+ "trim", "transcribe", "mux", "separate-audio", "enhance-voice", "layers", "image-to-3d", "captions", "text-layers", "vectorize", "level",
// av-tools: the dub voice track (clips placed on the video's timeline)
"timeline",
// round 4: tools that work from their inputs (removing an object needs a prompt only on models that read one)
@@ -594,6 +594,7 @@ const NEEDS: Partial<
vectorize: { images: 1, msg: "Add the image to turn into an SVG" },
transcribe: { oneOf: ["audio", "video"], msg: "Add the audio or video to transcribe" },
"separate-audio": { oneOf: ["audio", "video"], msg: "Add the audio or video to split" },
+ "enhance-voice": { oneOf: ["audio", "video"], msg: "Add the audio or video to clean" },
level: { audio: true, msg: "Add the audio to level" },
// round 4
"remove-object": { video: true, msg: "Add the video to remove something from" },
diff --git a/src/lib/catalog/types.ts b/src/lib/catalog/types.ts
index a804346a..87b63820 100644
--- a/src/lib/catalog/types.ts
+++ b/src/lib/catalog/types.ts
@@ -58,6 +58,7 @@ export type Operation =
| "mux" // video + audio → the video with that soundtrack
| "image-to-3d" // image → a 3D model (.glb), optionally a turntable video
| "separate-audio" // audio or video → stems (meta.stem): voice and background; DBS also music and effects
+ | "enhance-voice" // audio or video → the main speaker's voice, cleaned (meta.stem voice): noise, echo, clipping and codec damage removed
| "translate" // text → the same text in params.targetLanguage (LLM)
| "write" // brief → text (LLM: scripts, ad copy, shot lists)
| "vectorize" // image → the same picture as an SVG
@@ -129,6 +130,7 @@ export const OPERATION_LABELS: Record<Operation, string> = {
mux: "Add soundtrack",
"image-to-3d": "Image to 3D",
"separate-audio": "Separate voice",
+ "enhance-voice": "Clean up voice",
translate: "Translate",
write: "Write",
vectorize: "Vectorize",
@@ -198,6 +200,7 @@ export const OPERATION_OUTPUT: Record<Operation, MediaKind> = {
mux: "video",
"image-to-3d": "model3d",
"separate-audio": "audio",
+ "enhance-voice": "audio",
translate: "text",
write: "text",
vectorize: "image",
@@ -1159,6 +1162,8 @@ export interface InputSlot {
hint?: string;
accept: MediaKind;
required?: boolean;
+ /** A voice slot: offers "Clean up voice" (RE-USE on the open engine) under it, which cleans the file as it lands. */
+ cleanVoice?: boolean;
}
export interface PresetChoice {
@@ -1222,6 +1227,8 @@ export interface Preset {
grade?: string;
/** Fuobe DoP's relight effects: a step that makes the start frame first, on each engine (src/lib/catalog/dop.ts). */
prestep?: PresetPrestep;
+ /** An app that is a tool of its own: its page renders that tool rather than the composer (Clean up voice). */
+ tool?: "clean-voice";
}
/**
diff --git a/src/lib/comfy-variants.ts b/src/lib/comfy-variants.ts
index 53f083c5..98865cae 100644
--- a/src/lib/comfy-variants.ts
+++ b/src/lib/comfy-variants.ts
@@ -29,6 +29,12 @@ export const H3_BEST_GRAPH: Record<string, string> = {
/** MiniMax H3's 360-degree orbit of a still (params.extra.orbit): the Orbit LoRA graph, with the still as first and last frame. */
export const H3_ORBIT_GRAPH: Record<string, string> = { "minimax-h3-i2v": "minimax-h3-orbit" };
+/**
+ * Clean up voice with "Keep music & effects" (params.extra.background "keep"): DBS splits the soundtrack, RE-USE cleans the
+ * dialogue and the music and effects go back under it.
+ */
+export const REUSE_BED_GRAPH: Record<string, string> = { "voice-clean-reuse": "voice-clean-bed-reuse" };
+
export interface VariantRequest {
op: string;
/** Clips a join takes ("video-concat-{n}"). */
@@ -64,5 +70,7 @@ export function resolveWorkflowId(endpointTemplate: string, r: VariantRequest):
const best = H3_BEST_GRAPH[endpoint];
if (orbit && r.extra.orbit === true && r.has(orbit)) endpoint = orbit;
else if (best && r.extra.quality === "best" && r.has(best)) endpoint = best;
+ const bed = REUSE_BED_GRAPH[endpoint];
+ if (bed && r.extra.background === "keep" && r.has(bed)) endpoint = bed;
return endpoint;
}
diff --git a/src/lib/licences.ts b/src/lib/licences.ts
index 86f44608..a3254e78 100644
--- a/src/lib/licences.ts
+++ b/src/lib/licences.ts
@@ -103,6 +103,9 @@ export function workflowLicence(wf: Pick<LicenceWorkflowInput, "id" | "license">
return wf.license?.trim() || EARLIER_LICENCES.find(([re]) => re.test(wf.id))?.[1] || UNKNOWN_LICENCE;
}
+/** OpenMDW-1.1 (NVIDIA's RE-USE) asks for its text and the notices of origin with every copy of the weights (not of what they make). */
+export const OPENMDW_NOTICE = "Keep the licence text and NVIDIA's notices when you share the weights";
+
/** What a licence text means for using the results: its flags, the countries it leaves out, its notices. */
export function licenceTerms(text: string): { flags: LicenceFlag[]; excludes?: string; notices: string[]; noWeights: boolean } {
const noWeights = /^(n\/a|no model)\b/i.test(text.trim());
@@ -114,6 +117,7 @@ export function licenceTerms(text: string): { flags: LicenceFlag[]; excludes?: s
if (excludes) flags.push("territory");
if (conditional && !nonCommercial && !excludes) flags.push("conditions");
const notices = [...text.matchAll(/show (?:a |the )?"([^"]+)"/g)].map((m) => m[1]);
+ if (/OpenMDW-1\.1/.test(text)) notices.push(OPENMDW_NOTICE);
return { flags, excludes, notices, noWeights };
}
@@ -292,6 +296,8 @@ const KNOWN: { re: RegExp; name: string; class: LicenceClass; url?: string }[] =
{ re: /OpenRAIL\+\+-M/, name: "CreativeML OpenRAIL++-M", class: "conditions" },
{ re: /OpenRAIL-M/, name: "CreativeML OpenRAIL-M", class: "conditions", url: SPDX("CreativeML-OpenRAIL-M") },
{ re: /Gemma Terms of Use/, name: "Gemma Terms of Use", class: "conditions", url: "https://ai.google.dev/gemma/terms" },
+ // NVIDIA's open model licence (RE-USE): commercial use; the licence and NVIDIA's notices go with any copy of the weights.
+ { re: /OpenMDW-1\.1/, name: "OpenMDW-1.1", class: "commercial", url: "https://huggingface.co/nvidia/NVIDIA-NemotronLabs-RE-USE/blob/31f82f2efad1095034492f236e8dac9239ba713b/LICENSE" },
{ re: /Apache[- ]2\.0/, name: "Apache-2.0", class: "commercial", url: SPDX("Apache-2.0") },
{ re: /\bMIT\b/, name: "MIT", class: "commercial", url: SPDX("MIT") },
{ re: /BSD-3-Clause/, name: "BSD-3-Clause", class: "commercial", url: SPDX("BSD-3-Clause") },
@@ -489,6 +495,13 @@ export const NODE_PACKS: NodePack[] = [
url: SPDX("MIT"),
note: "PlagueKind's H3 SLA attention (needs Triton) and AdaLN LoRA fix for MiniMax H3; MIT code",
}),
+ // Clean up voice: Fuobe's own pack, in this repository at its pinned commit (comfy-nodes/ComfyUI-RE-USE).
+ pack("ComfyUI-RE-USE", "https://github.com/workingprototype/Fuobe/tree/8cc0417b5cb8a603f06502d97d5c6d8c6035ea0d/comfy-nodes/ComfyUI-RE-USE", {
+ name: "MIT",
+ class: "commercial",
+ url: SPDX("MIT"),
+ note: "Fuobe's own pack. The network code is adapted from NVIDIA's RE-USE repository (OpenMDW-1.1, notices kept), and the Mamba layer is a plain-PyTorch rewrite (no mamba-ssm). It matches the reference maths numerically, but it is not NVIDIA's code path",
+ }),
];
export const nodePack = (name: string): NodePack | undefined => NODE_PACKS.find((p) => p.name === name);
@@ -519,6 +532,19 @@ export const ATTRIBUTIONS: Attribution[] = [
{ for: "DBS (vendored code)", text: "BS-RoFormer, copyright (c) 2023 Phil Wang", licence: "MIT", url: "https://github.com/lucidrains/BS-RoFormer" },
{ for: "DBS (vendored code)", text: "Music-Source-Separation-Training, copyright (c) 2024 Roman Solovyev (ZFTurbo)", licence: "MIT", url: "https://github.com/ZFTurbo/Music-Source-Separation-Training" },
{ for: "DBS (vendored code)", text: "TIGER / Look2Hear, copyright (c) 2026 Kai Li", licence: "MIT", url: "https://github.com/JusperLee/TIGER" },
+ {
+ for: "RE-USE (clean up voice)",
+ text: "RE-USE speech enhancement model, copyright (c) 2026 NVIDIA Corporation",
+ licence: "OpenMDW-1.1",
+ url: "https://huggingface.co/nvidia/NVIDIA-NemotronLabs-RE-USE",
+ note: "Trained in part on WSJ (LDC) and an internal NVIDIA set (model card). The older nvidia/RE-USE repository is non-commercial (NSCLv1); Fuobe uses only the NemotronLabs repositories.",
+ },
+ {
+ for: "Clean up voice demo",
+ text: "Sample recording mic_test2.wav from NVIDIA's RE-USE repository, and its cleaned copy",
+ licence: "OpenMDW-1.1",
+ url: "https://huggingface.co/nvidia/NVIDIA-NemotronLabs-RE-USE",
+ },
];
/** The parts of a LoRA's licence snapshot the class needs (src/lib/catalog/types.ts LoraLicence). */
diff --git a/src/server/providers/comfyui.ts b/src/server/providers/comfyui.ts
index 198af764..2f782cc7 100644
--- a/src/server/providers/comfyui.ts
+++ b/src/server/providers/comfyui.ts
@@ -44,6 +44,7 @@ import { fixFromPromptError } from "@/lib/gpu/fix-codes";
import { loadIndex } from "../gpu/index-file";
import { crossfadeProblem, fadeCurveWav } from "@/lib/av/crossfade";
import { dbsChannelsFor, dbsModelFor, dbsSurroundBed, installedDbs, surroundSource, type DbsModel } from "@/lib/av/split";
+import { installedReuse, NO_REUSE_PACK, rateFor, reuseFileFor, STRENGTH_DB, type ReuseModel } from "@/lib/av/clean-voice";
import { expandAudioJoinWorkflow, expandVideoJoinWorkflow } from "@/lib/av/joins";
import { expandTimelineWorkflow, readTimeline } from "@/lib/av/timeline";
import { exportValues, framesPerPass, hdrColorSpace, upscaleShortSide, wholeClipProblem, wholeClipTool } from "@/lib/av/video-finish";
@@ -728,6 +729,36 @@ export async function comfyDbsModels(worker: ComfyWorker = "main", maxAgeMs = 10
});
}
+declare global {
+ /** The RE-USE files each ComfyUI address listed last (GET /models/reuse; null: no reuse folder, so no ComfyUI-RE-USE), and when. */
+ var __fuobeComfyReuse: Map<string, { models?: ReuseModel[] | null; at: number }> | undefined;
+}
+
+/**
+ * The RE-USE models the connected ComfyUI has on disk (GET /models/reuse, which ComfyUI-RE-USE registers), at most
+ * `maxAgeMs` old: null when the server answers but has no reuse folder (the pack isn't installed), undefined when it can't
+ * say (unreachable).
+ */
+export async function comfyReuseModels(worker: ComfyWorker = "main", maxAgeMs = 10_000): Promise<ReuseModel[] | null | undefined> {
+ const url = baseUrl(worker);
+ if (!url) return undefined;
+ const cache = (globalThis.__fuobeComfyReuse ??= new Map());
+ const hit = cache.get(url);
+ if (hit && Date.now() - hit.at < maxAgeMs) return hit.models;
+ return oneAsk(`/models/reuse ${url}`, async () => {
+ let models: ReuseModel[] | null | undefined;
+ try {
+ const files = await comfyJson<unknown>("/models/reuse", worker);
+ models = Array.isArray(files) ? installedReuse(files.filter((f): f is string => typeof f === "string")) : undefined;
+ } catch (e) {
+ // ComfyUI answers 404 for a model folder nobody registered: no ComfyUI-RE-USE.
+ models = e instanceof ProviderError && e.status === 404 ? null : undefined;
+ }
+ cache.set(url, { models, at: Date.now() });
+ return models;
+ });
+}
+
/** The connected ComfyUI's RAM in bytes, as the last reachability check read it (whole-clip tools' budget). */
export function comfyRam(): number | undefined {
const computer = computerScope();
@@ -897,6 +928,8 @@ export interface PrepareContext {
device?: () => Promise<string | undefined>;
/** The DBS models on the server's disk (GET /models/dbs), undefined when it can't say: a run never gets one that isn't there. */
dbsModels?: () => Promise<DbsModel[] | undefined>;
+ /** The RE-USE files on the server's disk (GET /models/reuse): null without ComfyUI-RE-USE, undefined when it can't say. */
+ reuseModels?: () => Promise<ReuseModel[] | null | undefined>;
/**
* The route puts the run's one LoRA in the graph's own LoRA slot (ModelRoute.loraSlot: Fuobe Speak's FusioniX on kijai's
* InfiniteTalk graph, with the settings it goes with). Without it a graph with no model loader refuses a LoRA.
@@ -1094,7 +1127,7 @@ export async function prepareWorkflow(endpointTemplate: string, input: GenInput,
// A voice track on the video's timeline: the clips are the spoken lines (the template binds the first).
if (ctx.op === "timeline") values.audio = input.audios?.[0] ?? input.audio;
// Speech workflows read the soundtrack with LoadAudio, which also takes a video upload.
- if ((ctx.op === "transcribe" || ctx.op === "separate-audio" || ctx.op === "translate") && b.audio && !b.video) values.audio = input.audio ?? input.video ?? clips[0];
+ if ((ctx.op === "transcribe" || ctx.op === "separate-audio" || ctx.op === "enhance-voice" || ctx.op === "translate") && b.audio && !b.video) values.audio = input.audio ?? input.video ?? clips[0];
if (b.language && input.targetLanguage) values.language = input.targetLanguage;
if (b.sourceLanguage && input.sourceLanguage) {
const whisper = b.sourceLanguage.some((t) => workflow[t.node]?.class_type === "Apply Whisper");
@@ -1435,6 +1468,28 @@ export async function prepareWorkflow(endpointTemplate: string, input: GenInput,
throw new ProviderError((e as Error).message, 400);
}
}
+ // RE-USE (voice-clean-reuse, voice-clean-bed-reuse): the file for voice / laughter (refused in words when the host's
+ // list doesn't have it, or has no ComfyUI-RE-USE at all), the rate (Auto: the source's on a CUDA GPU, capped on a CPU),
+ // Strength as room tone, and the level in the node's words.
+ if (b.reuseModel) {
+ const installed = await ctx.reuseModels?.().catch(() => undefined);
+ if (installed === null) throw new ProviderError(NO_REUSE_PACK, 400);
+ try {
+ values.reuseModel = reuseFileFor(extra.reuseModel, installed);
+ } catch (e) {
+ throw new ProviderError((e as Error).message, 400);
+ }
+ if (b.rate) {
+ const auto = extra.rate === undefined || extra.rate === "auto";
+ const device = auto ? await ctx.device?.().catch(() => undefined) : undefined;
+ values.rate = rateFor(extra.rate ?? "auto", device, input.sourceDuration ?? ctx.media?.(String(values.audio ?? ""))?.duration);
+ }
+ const strength = extra.strength as keyof typeof STRENGTH_DB | undefined;
+ if (b.roomToneDb && extra.roomToneDb === undefined && strength && strength in STRENGTH_DB) values.roomToneDb = STRENGTH_DB[strength];
+ if (b.level && (extra.level === "match" || extra.level === "voice")) values.level = extra.level === "voice" ? "-16 LUFS" : "match input";
+ for (const k of ["reuseModel", "rate", "strength", "background", ...(values.level !== undefined ? ["level"] : [])]) delete extra[k];
+ }
+ delete extra.background;
const sourceChannels = b.channels ? (ctx.media?.(String(values.audio ?? ""))?.channels ?? (Number(extra.sourceChannels) || undefined)) : undefined;
if (b.channels) values.channels = dbsChannelsFor(extra.channels, sourceChannels);
for (const k of ["separationModel", "channels", "sourceChannels"]) delete extra[k];
@@ -1918,6 +1973,7 @@ export const comfyProvider: ProviderAdapter = {
device: () => comfyDevice(worker),
// Fresh: a model installed a moment ago runs. (On someone's computer, nothing to ask: its ComfyUI has the last word.)
dbsModels: () => comfyDbsModels(worker, 0),
+ reuseModels: () => comfyReuseModels(worker, 0),
});
// On someone's computer: the job waits for their Fuobe tab, which sends exactly this graph under the prompt id minted
// here. A refusal comes back in its report, and the poll explains it as below.
diff --git a/src/server/providers/mock.ts b/src/server/providers/mock.ts
index 0f466231..44768986 100644
--- a/src/server/providers/mock.ts
+++ b/src/server/providers/mock.ts
@@ -1,4 +1,6 @@
import "server-only";
+import fs from "node:fs";
+import path from "node:path";
import { nanoid } from "nanoid";
import { cueText, parseCues, type Cue } from "@/lib/cues";
import { HAND_OFF } from "@/lib/catalog/remove-object";
@@ -284,6 +286,12 @@ function demoOutputs(op: Operation | undefined, kind: MediaKind, prompt: string,
return [demoTranslate(brief, String(meta.targetLanguage ?? "Spanish"))];
case "write":
return [demoWrite(brief)];
+ case "enhance-voice": {
+ // Clean up voice: the bundled demo "after" (NVIDIA's sample, cleaned), else a tone.
+ const file = path.join(process.cwd(), "public", "samples", "clean-voice", "noisy-mic-after.m4a");
+ const after = fs.existsSync(file) ? toDataUri(fs.readFileSync(file), "audio/mp4") : null;
+ return [after ? { url: after, kind: "audio", contentType: "audio/mp4", meta: { stem: "voice", demo: true } } : { url: toDataUri(demoWav(3, [220, 330], 3), "audio/wav"), kind: "audio", contentType: "audio/wav", meta: { stem: "voice", demo: true } }];
+ }
case "separate-audio": {
const stem = (name: string, wav: Buffer): DemoOutput => ({ url: toDataUri(wav, "audio/wav"), kind: "audio", contentType: "audio/wav", meta: { stem: name, demo: true } });
// A dialogue / music / effects split (DBS) returns those three and the music-and-effects bed, voice first.
diff --git a/tests/comfy-library-4.test.ts b/tests/comfy-library-4.test.ts
index fefd5f46..12def167 100644
--- a/tests/comfy-library-4.test.ts
+++ b/tests/comfy-library-4.test.ts
@@ -115,6 +115,9 @@ describe("round-4 ComfyUI workflows", () => {
"fibo2-dev-t2i",
"fibo2-dev-edit",
"fibo2-edit-turbo-edit",
+ // Clean up voice: ComfyUI-RE-USE isn't on the validation server; the pack's own tests run it (comfy-nodes/ComfyUI-RE-USE/tests).
+ "voice-clean-reuse",
+ "voice-clean-bed-reuse",
"video-character-swap-h3",
"video-character-swap-h3-relay",
"video-person-remove-h3-relay",
diff --git a/tests/comfy-reuse.test.ts b/tests/comfy-reuse.test.ts
new file mode 100644
index 00000000..20cff0a8
--- /dev/null
+++ b/tests/comfy-reuse.test.ts
@@ -0,0 +1,229 @@
+import fs from "node:fs";
+import os from "node:os";
+import path from "node:path";
+import { afterAll, describe, expect, it, vi } from "vitest";
+import type { GenInput } from "@/lib/catalog/types";
+import type { ComfyWorkflow, Manifest, ManifestWorkflow } from "@/lib/comfy";
+import { resolveWorkflowId } from "@/lib/comfy-variants";
+import { ATTRIBUTIONS, licenceInfo, licenceTerms, nodePack, OPENMDW_NOTICE, workflowLicence } from "@/lib/licences";
+import type { ReuseModel } from "@/lib/av/clean-voice";
+import type { MediaInfo } from "@/lib/media-probe";
+
+// Clean up voice on the open engine: Fuobe's ComfyUI-RE-USE pack in this repository, its two graphs in the manifest, the
+// pinned weights, the install script, the licence rows, and how the provider fills the RE-USE bindings.
+const tmp = fs.mkdtempSync(path.join(os.tmpdir(), "fuobe-comfy-reuse-"));
+process.env.FUOBE_DATA_DIR = tmp;
+process.env.COMFYUI_URL = "http://comfy.test:8188";
+const { collectOutputs, comfyReuseModels, prepareWorkflow } = await import("@/server/providers/comfyui");
+afterAll(() => fs.rmSync(tmp, { recursive: true, force: true }));
+
+const root = path.resolve(__dirname, "..");
+const read = (p: string) => fs.readFileSync(path.join(root, p), "utf8");
+const manifest = JSON.parse(read("workflows/comfyui/manifest.json")) as Manifest;
+const entry = (id: string) => manifest.workflows.find((w) => w.id === id) as ManifestWorkflow;
+const graph = (id: string) => JSON.parse(read(`workflows/comfyui/${id}.json`)) as ComfyWorkflow;
+const requirements = JSON.parse(read("workflows/comfyui/requirements.json"));
+const packs = JSON.parse(read("workflows/comfyui/packs.json"));
+const pins = JSON.parse(read("workflows/comfyui/model-pins.json"));
+const install = read("scripts/comfy/install-comfyui.sh");
+
+const VOICE = "https://huggingface.co/nvidia/NVIDIA-NemotronLabs-RE-USE/resolve/31f82f2efad1095034492f236e8dac9239ba713b/model.safetensors";
+const LAUGHTER = "https://huggingface.co/nvidia/NVIDIA-NemotronLabs-RE-USE-laughter/resolve/1b1521dd659608e1e063ada83e0acfe1da473a8b/model.safetensors";
+
+describe("the two RE-USE graphs in the manifest", () => {
+ it("voice-clean-reuse: LoadAudio, RE-USE, a FLAC voice and the report", () => {
+ const e = entry("voice-clean-reuse");
+ expect(e).toMatchObject({ capability: "enhance-voice", vramGb: 0 });
+ expect(e.bindings).toMatchObject({
+ audio: [{ node: "1", input: "audio" }],
+ reuseModel: [{ node: "2", input: "model" }],
+ rate: [{ node: "3", input: "rate" }],
+ channels: [{ node: "3", input: "channels" }],
+ roomToneDb: [{ node: "3", input: "room_tone_db" }],
+ level: [{ node: "3", input: "level" }],
+ });
+ expect(e.outputs).toEqual([
+ { node: "4", kind: "audio", stem: "voice" },
+ { node: "5", kind: "text", role: "report" },
+ ]);
+ const g = graph("voice-clean-reuse");
+ expect(Object.fromEntries(Object.entries(g).map(([id, n]) => [id, n.class_type]))).toEqual({ "1": "LoadAudio", "2": "REUSELoader", "3": "REUSEEnhance", "4": "SaveAudioAdvanced", "5": "PreviewAny" });
+ expect(g["3"].inputs).toMatchObject({ reuse_model: ["2", 0], audio: ["1", 0], rate: "source", chunk_seconds: 0, overlap_seconds: 1, room_tone_db: -60, level: "match input" });
+ expect(g["4"].inputs.format).toBe("flac");
+ expect(g["5"].inputs.source).toEqual(["3", 1]);
+ });
+
+ it("voice-clean-bed-reuse: DBS splits, RE-USE cleans the speech, and the original minus the speech goes back under it", () => {
+ const e = entry("voice-clean-bed-reuse");
+ expect(e.capability).toBe("enhance-voice");
+ expect(e.bindings.separationModel).toEqual([{ node: "3", input: "model" }]);
+ expect(e.bindings.channels).toEqual([
+ { node: "4", input: "channels" },
+ { node: "6", input: "channels" },
+ ]);
+ const g = graph("voice-clean-bed-reuse");
+ expect(g["5"].inputs).toEqual({ audio1: ["1", 0], audio2: ["4", 2], merge_method: "subtract" });
+ expect(g["6"].inputs).toMatchObject({ audio: ["4", 2], bed: ["5", 0], bed_db: 0 });
+ expect(e.customNodes.map((c) => c.name).sort()).toEqual(["ComfyUI-DBS", "ComfyUI-RE-USE"]);
+ });
+
+ it("lists the voice model as required and the laughter model as optional, pinned to the NemotronLabs repositories", () => {
+ for (const id of ["voice-clean-reuse", "voice-clean-bed-reuse"]) {
+ const models = entry(id).models;
+ expect(models).toContainEqual({ file: "NemotronLabs-RE-USE.safetensors", folder: "reuse", url: VOICE, sizeGb: 0.04 });
+ expect(models).toContainEqual({ file: "NemotronLabs-RE-USE-laughter.safetensors", folder: "reuse", url: LAUGHTER, sizeGb: 0.04, optional: true });
+ // Never the older, non-commercial nvidia/RE-USE.
+ expect(JSON.stringify(models)).not.toMatch(/huggingface\.co\/nvidia\/RE-USE\//);
+ }
+ });
+
+ it("runs the bed graph for Keep music & effects only", () => {
+ const has = (id: string) => manifest.workflows.some((w) => w.id === id);
+ const req = (extra: Record<string, unknown>) => ({ op: "enhance-voice", clips: 0, images: 0, audio2: false, extra, has });
+ expect(resolveWorkflowId("voice-clean-reuse", req({}))).toBe("voice-clean-reuse");
+ expect(resolveWorkflowId("voice-clean-reuse", req({ background: "keep" }))).toBe("voice-clean-bed-reuse");
+ expect(resolveWorkflowId("voice-clean-reuse", req({ background: "remove" }))).toBe("voice-clean-reuse");
+ });
+});
+
+describe("requirements.json, packs.json and the pins", () => {
+ it("installs the pack from a subfolder of this repository at its pin, with the reuse folder and both classes", () => {
+ const pack = requirements.packs["ComfyUI-RE-USE"];
+ expect(pack).toMatchObject({ repo: "https://github.com/workingprototype/Fuobe", subdir: "comfy-nodes/ComfyUI-RE-USE", classes: ["REUSEEnhance", "REUSELoader"], folders: ["reuse"], requirementsTxt: false, install: "manual" });
+ expect(pack.commit).toMatch(/^[0-9a-f]{40}$/);
+ expect(packs["ComfyUI-RE-USE"].commit).toBe(pack.commit);
+ expect(requirements.folders).toContain("reuse");
+ expect(requirements.sentinels).toEqual(expect.arrayContaining(["REUSELoader", "REUSEEnhance"]));
+ });
+
+ it("knows both weight files: their URLs, sizes and SHA-256", () => {
+ expect(requirements.files["reuse/NemotronLabs-RE-USE.safetensors"]).toMatchObject({ pinnedUrl: VOICE, sizeBytes: 38_592_940, packFolder: "ComfyUI-RE-USE" });
+ expect(requirements.files["reuse/NemotronLabs-RE-USE-laughter.safetensors"]).toMatchObject({ pinnedUrl: LAUGHTER, sizeBytes: 38_592_940, presence: "list" });
+ expect(pins[VOICE].sha256).toBe("06badaf4029b297f97f7fe48d62990b48d5482608210df577354e0d4e0ed70e1");
+ expect(pins[LAUGHTER].sha256).toBe("35c2a4e284515275d2e49a8e8cb5cd392ae67a1f1d345de1c12a0202c7b6b610");
+ expect(requirements.workflows["voice-clean-reuse"]).toMatchObject({ files: ["reuse/NemotronLabs-RE-USE.safetensors"], optional: ["reuse/NemotronLabs-RE-USE-laughter.safetensors"], packs: { "ComfyUI-RE-USE": ["REUSEEnhance", "REUSELoader"] } });
+ });
+});
+
+describe("install-comfyui.sh", () => {
+ it("copies the pack from this checkout (no pin to drift) and fetches both weights with their SHA-256", () => {
+ expect(install).toContain('cp -r "$REPO_ROOT/comfy-nodes/ComfyUI-RE-USE" "$COMFYUI_DIR/custom_nodes/"');
+ expect(install).toContain("06badaf4029b297f97f7fe48d62990b48d5482608210df577354e0d4e0ed70e1 NemotronLabs-RE-USE.safetensors");
+ expect(install).toContain("35c2a4e284515275d2e49a8e8cb5cd392ae67a1f1d345de1c12a0202c7b6b610 NemotronLabs-RE-USE-laughter.safetensors");
+ expect(install).toContain('"NemotronLabs-RE-USE 31f82f2efad1095034492f236e8dac9239ba713b"');
+ expect(install).toMatch(/REUSE_WEIGHTS:-1/);
+ expect(install).not.toMatch(/huggingface\.co\/nvidia\/RE-USE\//);
+ });
+});
+
+describe("the provider fills the RE-USE bindings", () => {
+ async function prepare(input: GenInput, opts: { device?: string; media?: Record<string, MediaInfo>; installed?: ReuseModel[] | null; id?: string } = {}) {
+ let asked = 0;
+ const res = await prepareWorkflow(opts.id ?? "voice-clean-reuse", { seed: 1, ...input }, {
+ generationId: "gen1",
+ op: "enhance-voice",
+ upload: async (_d, _t, name) => `up_${name}`,
+ media: (name) => opts.media?.[name],
+ device: async () => {
+ asked++;
+ return opts.device;
+ },
+ reuseModels: async () => opts.installed,
+ dbsModels: async () => undefined,
+ });
+ return { wf: res.workflow, asked, id: res.manifest.id };
+ }
+
+ it("loads the file for Voice only or Keep laughter, and refuses one the host doesn't have, in words", async () => {
+ expect((await prepare({ audio: "a.wav" })).wf["2"].inputs.model).toBe("NemotronLabs-RE-USE.safetensors");
+ expect((await prepare({ audio: "a.wav", extra: { reuseModel: "laughter" } }, { installed: ["voice", "laughter"] })).wf["2"].inputs.model).toBe("NemotronLabs-RE-USE-laughter.safetensors");
+ await expect(prepare({ audio: "a.wav", extra: { reuseModel: "laughter" } }, { installed: ["voice"] })).rejects.toThrow(/^Keep laughter isn't installed/);
+ await expect(prepare({ audio: "a.wav" }, { installed: [] })).rejects.toThrow(/^RE-USE isn't on your ComfyUI yet \(models\/reuse\/NemotronLabs-RE-USE\.safetensors, 39 MB\)/);
+ await expect(prepare({ audio: "a.wav" }, { installed: null })).rejects.toThrow(/^Clean up voice needs the ComfyUI-RE-USE nodes/);
+ });
+
+ it("picks the rate: the source's on a GPU, capped on a CPU (16 kHz past 2 minutes), or the one asked for", async () => {
+ expect((await prepare({ audio: "a.wav" }, { device: "cuda" })).wf["3"].inputs.rate).toBe("source");
+ expect((await prepare({ audio: "a.wav" }, { device: "cpu" })).wf["3"].inputs.rate).toBe("source up to 24000");
+ const long: MediaInfo = { container: "wav", duration: 600, hasVideo: false, hasAudio: true, channels: 1 };
+ expect((await prepare({ audio: "a.wav" }, { device: "cpu", media: { "a.wav": long } })).wf["3"].inputs.rate).toBe("source up to 16000");
+ const full = await prepare({ audio: "a.wav", extra: { rate: "48000" } }, { device: "cpu" });
+ expect(full.wf["3"].inputs.rate).toBe("48000");
+ expect(full.asked).toBe(0);
+ });
+
+ it("writes Strength as room tone and the level in the node's words, and nothing of the page's own keys", async () => {
+ const { wf } = await prepare({ audio: "a.wav", extra: { strength: "natural", level: "voice", background: "remove", sourceChannels: 2 } });
+ expect(wf["3"].inputs).toMatchObject({ room_tone_db: -24, level: "-16 LUFS", channels: "mono" });
+ expect(JSON.stringify(wf)).not.toMatch(/sourceChannels|strength|background/);
+ expect((await prepare({ audio: "a.wav", extra: { strength: "light" } })).wf["3"].inputs.room_tone_db).toBe(-14);
+ });
+
+ it("reads a video's soundtrack, and keeps music & effects on the bed graph (mono bed for a surround source)", async () => {
+ expect((await prepare({ video: "clip.mp4" })).wf["1"].inputs.audio).toBe("clip.mp4");
+ const bed = await prepare({ video: "clip.mp4", extra: { background: "keep", strength: "natural" } });
+ expect(bed.id).toBe("voice-clean-bed-reuse");
+ expect(bed.wf["6"].inputs).toMatchObject({ room_tone_db: -24, bed: ["5", 0] });
+ const surround: MediaInfo = { container: "mp4", duration: 10, hasVideo: true, hasAudio: true, channels: 6 };
+ const five = await prepare({ video: "clip.mp4", extra: { background: "keep", channels: "each channel" } }, { media: { "clip.mp4": surround } });
+ expect(five.wf["5"].inputs).toEqual({ audio1: ["4", 0], audio2: ["4", 1], merge_method: "add" });
+ expect([five.wf["4"].inputs.channels, five.wf["6"].inputs.channels]).toEqual(["mono", "mono"]);
+ });
+});
+
+describe("which RE-USE files the host has (GET /models/reuse)", () => {
+ it("reads the list (Windows paths too), says null without the pack, and nothing when unreachable", async () => {
+ globalThis.__fuobeComfyReuse = undefined;
+ let answer: Response | Error = Response.json(["NemotronLabs-RE-USE.safetensors", "sub\\NemotronLabs-RE-USE-laughter.safetensors"]);
+ vi.stubGlobal(
+ "fetch",
+ vi.fn(async (url: string) => {
+ expect(url).toBe("http://comfy.test:8188/models/reuse");
+ if (answer instanceof Error) throw answer;
+ return answer.clone();
+ }),
+ );
+ try {
+ expect(await comfyReuseModels("main", 0)).toEqual(["voice", "laughter"]);
+ answer = new Response("Not found", { status: 404 });
+ expect(await comfyReuseModels("main", 0)).toBeNull();
+ answer = new Error("connect ECONNREFUSED");
+ expect(await comfyReuseModels("main", 0)).toBeUndefined();
+ } finally {
+ vi.unstubAllGlobals();
+ globalThis.__fuobeComfyReuse = undefined;
+ }
+ });
+});
+
+describe("a finished clean's outputs", () => {
+ it("are the clean voice (stem voice) and the node's report as text", () => {
+ const report = JSON.stringify({ device: "cuda:0", scan: "triton", rate: 48000, times_real_time: 2.1 });
+ const out = collectOutputs(
+ { outputs: { "4": { audio: [{ filename: "gen1_00001_.flac", subfolder: "fuobe", type: "output" }] }, "5": { text: [report] } } } as never,
+ entry("voice-clean-reuse"),
+ "http://comfy.test:8188",
+ );
+ expect(out[0]).toMatchObject({ kind: "audio", meta: { stem: "voice" } });
+ expect(out[1]).toMatchObject({ kind: "text", text: report, meta: { role: "report" } });
+ });
+});
+
+describe("licences, as information", () => {
+ it("knows OpenMDW-1.1 as a commercial licence that keeps its notices with the weights", () => {
+ const text = entry("voice-clean-reuse").license!;
+ expect(licenceInfo(text)).toMatchObject({ name: "OpenMDW-1.1", class: "commercial", url: expect.stringContaining("NVIDIA-NemotronLabs-RE-USE/blob/31f82f2e") });
+ expect(licenceTerms(text).notices).toEqual([OPENMDW_NOTICE]);
+ expect(licenceTerms(text).flags).toEqual([]);
+ expect(workflowLicence(entry("voice-clean-bed-reuse"))).toContain("DBS weights Apache-2.0");
+ });
+
+ it("records the pack (MIT, adapted NVIDIA code) at its pin, the model and the demo sample", () => {
+ const pack = nodePack("ComfyUI-RE-USE");
+ expect(pack?.licence).toMatchObject({ name: "MIT", class: "commercial" });
+ expect(pack?.repo).toBe(`https://github.com/workingprototype/Fuobe/tree/${requirements.packs["ComfyUI-RE-USE"].commit}/comfy-nodes/ComfyUI-RE-USE`);
+ expect(pack?.licence.note).toMatch(/not NVIDIA's code path/);
+ expect(ATTRIBUTIONS.find((a) => a.for === "RE-USE (clean up voice)")).toMatchObject({ licence: "OpenMDW-1.1", note: expect.stringMatching(/non-commercial \(NSCLv1\)/) });
+ expect(ATTRIBUTIONS.find((a) => a.for === "Clean up voice demo")).toMatchObject({ licence: "OpenMDW-1.1", text: expect.stringContaining("mic_test2.wav") });
+ });
+});
diff --git a/tests/gpu-requirements.test.ts b/tests/gpu-requirements.test.ts
index a0378ba7..68e5c42c 100644
--- a/tests/gpu-requirements.test.ts
+++ b/tests/gpu-requirements.test.ts
@@ -108,9 +108,10 @@ describe("requirements.json", () => {
expect(index.packs["ComfyUI-ThinkSound_Wrapper"].isolated).toBe(true);
});
- it("stays within its size budget (200 KB, 25 KB gzipped)", () => {
+ // 26 KB gzipped since Clean up voice (its pack, two weight files and two graphs: about 0.5 KB).
+ it("stays within its size budget (200 KB, 26 KB gzipped)", () => {
expect(Buffer.byteLength(text)).toBeLessThanOrEqual(200 * 1024);
- expect(zlib.gzipSync(text).length).toBeLessThanOrEqual(25 * 1024);
+ expect(zlib.gzipSync(text).length).toBeLessThanOrEqual(26 * 1024);
});
});
diff --git a/tests/reuse-pack-pin.test.ts b/tests/reuse-pack-pin.test.ts
new file mode 100644
index 00000000..1c0e9e19
--- /dev/null
+++ b/tests/reuse-pack-pin.test.ts
@@ -0,0 +1,35 @@
+import { execFileSync } from "node:child_process";
+import fs from "node:fs";
+import path from "node:path";
+import { describe, expect, it } from "vitest";
+import { nodePack } from "@/lib/licences";
+
+// ComfyUI-RE-USE lives in this repository and other people's ComfyUIs install it at its pin (a sparse checkout of
+// comfy-nodes/ComfyUI-RE-USE at that commit): the pin must be a commit of this branch with the pack exactly as it is
+// here. When the pack changes, a later commit moves the pin (and a rebase that rewrites the pack's commit re-pins it).
+const root = path.resolve(__dirname, "..");
+const read = (p: string) => fs.readFileSync(path.join(root, p), "utf8");
+const pin = JSON.parse(read("workflows/comfyui/packs.json"))["ComfyUI-RE-USE"].commit as string;
+const git = (...args: string[]) => execFileSync("git", ["-C", root, ...args], { encoding: "utf8", stdio: ["ignore", "pipe", "pipe"] });
+const inGit = (() => {
+ try {
+ return git("rev-parse", "--is-inside-work-tree").trim() === "true";
+ } catch {
+ return false;
+ }
+})();
+const shallow = inGit && git("rev-parse", "--is-shallow-repository").trim() === "true";
+
+describe("the ComfyUI-RE-USE pin", () => {
+ it("is the same commit everywhere it is written", () => {
+ expect(pin).toMatch(/^[0-9a-f]{40}$/);
+ expect(JSON.parse(read("workflows/comfyui/requirements.json")).packs["ComfyUI-RE-USE"].commit).toBe(pin);
+ expect(read("scripts/comfy/library.spec.mjs")).toContain(`/tree/${pin}/comfy-nodes/ComfyUI-RE-USE`);
+ expect(nodePack("ComfyUI-RE-USE")?.repo).toContain(`/tree/${pin}/`);
+ });
+
+ it.skipIf(!inGit || shallow)("is an ancestor of HEAD, and the pack there is the pack here", () => {
+ expect(() => git("merge-base", "--is-ancestor", pin, "HEAD")).not.toThrow();
+ expect(() => git("diff", "--quiet", pin, "HEAD", "--", "comfy-nodes/ComfyUI-RE-USE")).not.toThrow();
+ });
+});
diff --git a/workflows/comfyui/manifest.json b/workflows/comfyui/manifest.json
index 4aebe904..1b742fc5 100644
--- a/workflows/comfyui/manifest.json
+++ b/workflows/comfyui/manifest.json
@@ -13504,6 +13504,244 @@
"validated": true,
"notes": "CPU OK, about 1.7 GiB on CUDA. audio = an audio file or a video (LoadAudio reads a video's soundtrack without decoding frames). DBSLoader model DBS-BSRNN-DnR (fast: 18.9 MB, 9.07 dB SI-SDR on DnR v2, the CPU default) or DBS-TIGER-DnR (best: 4.1 MB, 10.13 dB, about 3x slower on a CPU, the CUDA default); device auto. Measured on a 4-CPU host (torch 2.14.1+cpu, 10-20 s clips): DBS-BSRNN 0.17-0.33x real time per channel, DBS-TIGER 0.08-0.09x. DBSSeparate channels mono (the mean of the channels, the official usage) or each channel (stereo stems: every channel separated on its own, 2x the time); output_sample_rate input. ComfyUI saves audio as mono or stereo only (a 5.1 waveform comes out as scrambled stereo three times as long), so the provider splits a file with more than 2 channels in mono and makes its background from music + effects (node 4 rewired to AudioMerge add) rather than the original minus the speech. Outputs in order: voice (speech), music, effects (sfx), background = original minus speech (AudioMerge subtract: with mono it keeps the original stereo image at mono cost; AudioMerge scales the whole result down when it peaks over 1.0), and the pack's JSON report (model, device, rates, windows, seconds, times real time). Voice + background add up to the source, except on a loud master where AudioMerge had to lower the background to fit under full scale (FLAC holds no more). Voice is first, so a chain without a stem takes the dialogue. Trained on synthetic English mixes (DnR v2): dialogue separates well (15-16 dB), music against effects less so (5.7-7.8 dB). Some FSD50K and FMA clips inside DnR v2 carry their own CC licences, NC variants included; whether that reaches the weights or their outputs is unresolved (recorded as information)."
},
+ {
+ "id": "voice-clean-reuse",
+ "title": "Clean up voice: noise, echo, clipping and codec damage removed from speech (NVIDIA RE-USE, ComfyUI-RE-USE)",
+ "capability": "enhance-voice",
+ "file": "voice-clean-reuse.json",
+ "source": "hand-built (scripts/comfy/hand-built/voice-clean-reuse.json)",
+ "bindings": {
+ "audio": [
+ {
+ "node": "1",
+ "input": "audio"
+ }
+ ],
+ "reuseModel": [
+ {
+ "node": "2",
+ "input": "model"
+ }
+ ],
+ "rate": [
+ {
+ "node": "3",
+ "input": "rate"
+ }
+ ],
+ "channels": [
+ {
+ "node": "3",
+ "input": "channels"
+ }
+ ],
+ "roomToneDb": [
+ {
+ "node": "3",
+ "input": "room_tone_db"
+ }
+ ],
+ "level": [
+ {
+ "node": "3",
+ "input": "level"
+ }
+ ],
+ "filenamePrefix": [
+ {
+ "node": "4",
+ "input": "filename_prefix"
+ }
+ ]
+ },
+ "outputs": [
+ {
+ "node": "4",
+ "kind": "audio",
+ "stem": "voice"
+ },
+ {
+ "node": "5",
+ "kind": "text",
+ "role": "report"
+ }
+ ],
+ "defaults": {
+ "reuseModel": "NemotronLabs-RE-USE.safetensors",
+ "rate": "source",
+ "channels": "mono",
+ "roomToneDb": -60,
+ "level": "match input"
+ },
+ "limits": {},
+ "models": [
+ {
+ "file": "NemotronLabs-RE-USE.safetensors",
+ "folder": "reuse",
+ "url": "https://huggingface.co/nvidia/NVIDIA-NemotronLabs-RE-USE/resolve/31f82f2efad1095034492f236e8dac9239ba713b/model.safetensors",
+ "sizeGb": 0.04
+ },
+ {
+ "file": "NemotronLabs-RE-USE-laughter.safetensors",
+ "folder": "reuse",
+ "url": "https://huggingface.co/nvidia/NVIDIA-NemotronLabs-RE-USE-laughter/resolve/1b1521dd659608e1e063ada83e0acfe1da473a8b/model.safetensors",
+ "sizeGb": 0.04,
+ "optional": true
+ }
+ ],
+ "customNodes": [
+ {
+ "name": "ComfyUI-RE-USE",
+ "repo": "https://github.com/workingprototype/Fuobe/tree/8cc0417b5cb8a603f06502d97d5c6d8c6035ea0d/comfy-nodes/ComfyUI-RE-USE"
+ }
+ ],
+ "vramGb": 0,
+ "license": "RE-USE weights OpenMDW-1.1 (NVIDIA; 'ready for commercial use' on the card; the card's safety section points to the NVIDIA Open Model License for use-case limits); ComfyUI-RE-USE code MIT with adapted RE-USE code OpenMDW-1.1",
+ "validated": false,
+ "notes": "CPU OK; about 1 GB VRAM with chunking. audio = an audio file or a video (LoadAudio reads a video's soundtrack without decoding frames). REUSELoader model NemotronLabs-RE-USE (voice only) or NemotronLabs-RE-USE-laughter (keeps laughs and breaths a little more), 39 MB each; device auto. REUSEEnhance rate: the model's STFT scales with the rate (a 40 ms window at any rate), so work grows about linearly with it; above the source rate it fills the empty high band (bandwidth extension). Chunks from the free memory (2-20 s on CUDA, 5-10 s on a CPU) joined with 1 s raised-cosine crossfades; Cancel works between chunks. room_tone_db mixes the original back under the clean voice (Strength: Full -60 = off, Natural -24, Light -14); level match input brings the speech level back (the model is about 3 dB quieter), peak at most -1 dBFS. Measured under a busy RTX 5090 (worst cases): 0.26 s of work per second of audio at 16 kHz, 1.4 at 48 kHz with Triton (about 6x slower without); i9 CPU with numba: 4 at 16 kHz, 15 at 48 kHz. It keeps the main speaker and removes everything else (other voices, music, effects): voice-clean-bed-reuse keeps the music and effects. The Mamba layer is a plain-PyTorch rewrite (no mamba-ssm): it matches the reference maths numerically, but it is not NVIDIA's code path."
+ },
+ {
+ "id": "voice-clean-bed-reuse",
+ "title": "Clean the dialogue of a soundtrack and keep its music and effects (DBS + NVIDIA RE-USE)",
+ "capability": "enhance-voice",
+ "file": "voice-clean-bed-reuse.json",
+ "source": "hand-built (scripts/comfy/hand-built/voice-clean-bed-reuse.json)",
+ "bindings": {
+ "audio": [
+ {
+ "node": "1",
+ "input": "audio"
+ }
+ ],
+ "reuseModel": [
+ {
+ "node": "2",
+ "input": "model"
+ }
+ ],
+ "separationModel": [
+ {
+ "node": "3",
+ "input": "model"
+ }
+ ],
+ "channels": [
+ {
+ "node": "4",
+ "input": "channels"
+ },
+ {
+ "node": "6",
+ "input": "channels"
+ }
+ ],
+ "rate": [
+ {
+ "node": "6",
+ "input": "rate"
+ }
+ ],
+ "roomToneDb": [
+ {
+ "node": "6",
+ "input": "room_tone_db"
+ }
+ ],
+ "level": [
+ {
+ "node": "6",
+ "input": "level"
+ }
+ ],
+ "bedDb": [
+ {
+ "node": "6",
+ "input": "bed_db"
+ }
+ ],
+ "filenamePrefix": [
+ {
+ "node": "7",
+ "input": "filename_prefix"
+ }
+ ]
+ },
+ "outputs": [
+ {
+ "node": "7",
+ "kind": "audio",
+ "stem": "voice"
+ },
+ {
+ "node": "8",
+ "kind": "text",
+ "role": "report"
+ }
+ ],
+ "defaults": {
+ "reuseModel": "NemotronLabs-RE-USE.safetensors",
+ "separationModel": "DBS-BSRNN-DnR",
+ "rate": "source",
+ "channels": "mono",
+ "roomToneDb": -24,
+ "level": "match input",
+ "bedDb": 0
+ },
+ "limits": {},
+ "models": [
+ {
+ "file": "NemotronLabs-RE-USE.safetensors",
+ "folder": "reuse",
+ "url": "https://huggingface.co/nvidia/NVIDIA-NemotronLabs-RE-USE/resolve/31f82f2efad1095034492f236e8dac9239ba713b/model.safetensors",
+ "sizeGb": 0.04
+ },
+ {
+ "file": "DBS-BSRNN-DnR/model.safetensors",
+ "folder": "dbs",
+ "url": "https://huggingface.co/JusperLee/DBS-BSRNN-DnR/resolve/5af343f57f106fbb95efe8a60f1a3999eeb0aef8/model.safetensors",
+ "sizeGb": 0.02
+ },
+ {
+ "file": "DBS-BSRNN-DnR/config.json",
+ "folder": "dbs",
+ "url": "https://huggingface.co/JusperLee/DBS-BSRNN-DnR/resolve/5af343f57f106fbb95efe8a60f1a3999eeb0aef8/config.json",
+ "sizeGb": 0
+ },
+ {
+ "file": "DBS-TIGER-DnR/model.safetensors",
+ "folder": "dbs",
+ "url": "https://huggingface.co/JusperLee/DBS-TIGER-DnR/resolve/22da7d4cd3ea63f9365181008bff1c0d2ab6fb2b/model.safetensors",
+ "sizeGb": 0.004
+ },
+ {
+ "file": "DBS-TIGER-DnR/config.json",
+ "folder": "dbs",
+ "url": "https://huggingface.co/JusperLee/DBS-TIGER-DnR/resolve/22da7d4cd3ea63f9365181008bff1c0d2ab6fb2b/config.json",
+ "sizeGb": 0
+ },
+ {
+ "file": "NemotronLabs-RE-USE-laughter.safetensors",
+ "folder": "reuse",
+ "url": "https://huggingface.co/nvidia/NVIDIA-NemotronLabs-RE-USE-laughter/resolve/1b1521dd659608e1e063ada83e0acfe1da473a8b/model.safetensors",
+ "sizeGb": 0.04,
+ "optional": true
+ }
+ ],
+ "customNodes": [
+ {
+ "name": "ComfyUI-DBS",
+ "repo": "https://github.com/hiroki-abe-58/ComfyUI-DBS/tree/f656e53434b5485c148a2866fbd6ddc6b6152ed6"
+ },
+ {
+ "name": "ComfyUI-RE-USE",
+ "repo": "https://github.com/workingprototype/Fuobe/tree/8cc0417b5cb8a603f06502d97d5c6d8c6035ea0d/comfy-nodes/ComfyUI-RE-USE"
+ }
+ ],
+ "vramGb": 0,
+ "license": "RE-USE weights OpenMDW-1.1 (NVIDIA; 'ready for commercial use' on the card; the card's safety section points to the NVIDIA Open Model License for use-case limits); ComfyUI-RE-USE code MIT with adapted RE-USE code OpenMDW-1.1; DBS weights Apache-2.0 (JusperLee; trained on DnR v2, CC BY 4.0); ComfyUI-DBS code MIT; vendored DBS code Apache-2.0 with MIT notices (BS-RoFormer, MSST, TIGER)",
+ "validated": false,
+ "notes": "CPU OK. The video soundtrack variant of voice-clean-reuse (the provider runs it for params.extra.background \"keep\"): DBS splits the soundtrack (graph A's nodes), RE-USE cleans only the dialogue, and REUSEEnhance mixes the original music & effects (the original minus the speech, AudioMerge subtract) back under it at bed_db, at the higher of the two rates, peak at most -1 dBFS. A source with more than 2 channels runs in mono with music + effects as the bed (node 5 rewired, as graph A). The result has the input's length, starting at 0, so it goes back on the picture with video-mux-audio-replace. DBS was trained on English mixes; the dialogue split is its strong part (15-16 dB)."
+ },
{
"id": "captions-qwen3-asr",
"title": "Transcribe speech into timed caption cues (Qwen3-ASR 0.6B + ForcedAligner)",
diff --git a/workflows/comfyui/model-pins.json b/workflows/comfyui/model-pins.json
index 8bc75c35..8ae1eea5 100644
--- a/workflows/comfyui/model-pins.json
+++ b/workflows/comfyui/model-pins.json
@@ -951,5 +951,15 @@
"revision": "5e590220c687190a3d8dc66d173570f9de097984",
"sizeBytes": 92426760,
"sha256": "e251c836b4792910cb322317f58a91063f73bef7255031912886af840dc7dd43"
+ },
+ "https://huggingface.co/nvidia/NVIDIA-NemotronLabs-RE-USE/resolve/31f82f2efad1095034492f236e8dac9239ba713b/model.safetensors": {
+ "revision": "31f82f2efad1095034492f236e8dac9239ba713b",
+ "sizeBytes": 38592940,
+ "sha256": "06badaf4029b297f97f7fe48d62990b48d5482608210df577354e0d4e0ed70e1"
+ },
+ "https://huggingface.co/nvidia/NVIDIA-NemotronLabs-RE-USE-laughter/resolve/1b1521dd659608e1e063ada83e0acfe1da473a8b/model.safetensors": {
+ "revision": "1b1521dd659608e1e063ada83e0acfe1da473a8b",
+ "sizeBytes": 38592940,
+ "sha256": "35c2a4e284515275d2e49a8e8cb5cd392ae67a1f1d345de1c12a0202c7b6b610"
}
}
diff --git a/workflows/comfyui/object_info.subset.json b/workflows/comfyui/object_info.subset.json
index 485132fb..20216ad3 100644
--- a/workflows/comfyui/object_info.subset.json
+++ b/workflows/comfyui/object_info.subset.json
@@ -14524,6 +14524,213 @@
"experimental": true,
"search_aliases": []
},
+ "REUSEEnhance": {
+ "input": {
+ "required": {
+ "reuse_model": [
+ "REUSE_MODEL",
+ {}
+ ],
+ "audio": [
+ "AUDIO",
+ {}
+ ],
+ "rate": [
+ "COMBO",
+ {
+ "default": "source",
+ "tooltip": "The rate the model runs at. Lower is faster and band-limited; higher than the source fills the empty high band (bandwidth extension).",
+ "multiselect": false,
+ "options": [
+ "source",
+ "source up to 24000",
+ "source up to 16000",
+ "8000",
+ "16000",
+ "22050",
+ "24000",
+ "32000",
+ "44100",
+ "48000"
+ ]
+ }
+ ],
+ "pre_lowpass": [
+ "COMBO",
+ {
+ "default": "off",
+ "tooltip": "Resample down to this rate first (before bandwidth extension)",
+ "multiselect": false,
+ "options": [
+ "off",
+ "8000",
+ "16000",
+ "22050",
+ "24000"
+ ]
+ }
+ ],
+ "channels": [
+ "COMBO",
+ {
+ "default": "mono",
+ "tooltip": "Mono is the mean of the channels; more than 2 channels always run in mono",
+ "multiselect": false,
+ "options": [
+ "mono",
+ "each channel"
+ ]
+ }
+ ],
+ "chunk_seconds": [
+ "FLOAT",
+ {
+ "default": 0,
+ "min": 0,
+ "max": 30,
+ "step": 0.5,
+ "tooltip": "0 = from the free memory"
+ }
+ ],
+ "overlap_seconds": [
+ "FLOAT",
+ {
+ "default": 1,
+ "min": 0.25,
+ "max": 5,
+ "step": 0.25
+ }
+ ],
+ "room_tone_db": [
+ "FLOAT",
+ {
+ "default": -60,
+ "min": -60,
+ "max": -6,
+ "step": 1,
+ "tooltip": "Mix the original in under the clean voice at this level (-60 = off): no dead silence between words"
+ }
+ ],
+ "level": [
+ "COMBO",
+ {
+ "default": "match input",
+ "multiselect": false,
+ "options": [
+ "match input",
+ "-16 LUFS",
+ "off"
+ ]
+ }
+ ]
+ },
+ "optional": {
+ "bed": [
+ "AUDIO",
+ {
+ "tooltip": "Music and effects to mix back under the clean voice"
+ }
+ ],
+ "bed_db": [
+ "FLOAT",
+ {
+ "default": 0,
+ "min": -30,
+ "max": 6,
+ "step": 0.5
+ }
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "reuse_model",
+ "audio",
+ "rate",
+ "pre_lowpass",
+ "channels",
+ "chunk_seconds",
+ "overlap_seconds",
+ "room_tone_db",
+ "level"
+ ],
+ "optional": [
+ "bed",
+ "bed_db"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "AUDIO",
+ "STRING"
+ ],
+ "output_is_list": [
+ false,
+ false
+ ],
+ "output_name": [
+ "audio",
+ "report"
+ ],
+ "name": "REUSEEnhance",
+ "display_name": "Clean up voice (RE-USE)",
+ "description": "Clean up voice: removes noise, echo, clipping and codec damage from speech and keeps the main speaker.",
+ "python_module": "custom_nodes.ComfyUI-RE-USE",
+ "category": "audio/RE-USE",
+ "output_node": false
+ },
+ "REUSELoader": {
+ "input": {
+ "required": {
+ "model": [
+ "COMBO",
+ {
+ "default": "NemotronLabs-RE-USE.safetensors",
+ "tooltip": "A RE-USE model in models/reuse",
+ "multiselect": false,
+ "options": [
+ "NemotronLabs-RE-USE-laughter.safetensors",
+ "NemotronLabs-RE-USE.safetensors"
+ ]
+ }
+ ],
+ "device": [
+ "COMBO",
+ {
+ "default": "auto",
+ "multiselect": false,
+ "options": [
+ "auto",
+ "cuda",
+ "cpu"
+ ]
+ }
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "model",
+ "device"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "REUSE_MODEL"
+ ],
+ "output_is_list": [
+ false
+ ],
+ "output_name": [
+ "REUSE_MODEL"
+ ],
+ "name": "REUSELoader",
+ "display_name": "Load RE-USE (speech enhancement)",
+ "description": "Loads NVIDIA RE-USE (speech enhancement, 9.6M parameters) from models/reuse.",
+ "python_module": "custom_nodes.ComfyUI-RE-USE",
+ "category": "audio/RE-USE",
+ "output_node": false
+ },
"RIFE VFI": {
"input": {
"required": {
diff --git a/workflows/comfyui/packs.json b/workflows/comfyui/packs.json
index 1ab94814..58ec05e8 100644
--- a/workflows/comfyui/packs.json
+++ b/workflows/comfyui/packs.json
@@ -8,6 +8,15 @@
"subdir": null,
"folders": ["dbs"]
},
+ "ComfyUI-RE-USE": {
+ "repo": "https://github.com/workingprototype/Fuobe",
+ "commit": "8cc0417b5cb8a603f06502d97d5c6d8c6035ea0d",
+ "registry": null,
+ "requirementsTxt": false,
+ "isolated": false,
+ "subdir": "comfy-nodes/ComfyUI-RE-USE",
+ "folders": ["reuse"]
+ },
"ComfyUI-Frame-Interpolation": {
"repo": "https://github.com/Fannovel16/ComfyUI-Frame-Interpolation",
"commit": "26545cc2dd95bc3d27f056016300673bdeee78f5",
diff --git a/workflows/comfyui/requirements.json b/workflows/comfyui/requirements.json
index 029bbab7..be875def 100644
--- a/workflows/comfyui/requirements.json
+++ b/workflows/comfyui/requirements.json
@@ -1,9 +1,9 @@
{
"v": 1,
- "hash": "5b5d1c8c168a84339d23a853f8a40c40e7de647a9d7619813f0db19c4c014f08",
+ "hash": "005e4f6ceb29cc90b565a3da20550620076f6a92e7cb2198530b7829d35e88d1",
"comfyui": {"min":"0.42.0","testedCommit":"5841c187"},
- "folders": ["audio_encoders","background_removal","checkpoints","clip_vision","dbs","diffusion_models","facerestore_models","foley","frame_interpolation","geometry_estimation","insightface","latent_upscale_models","loras","mmaudio","model_patches","optical_flow","text_encoders","thinksound","upscale_models","vae"],
- "sentinels": ["AILab_Qwen3ASRSubtitle","AUSBOSS_NODES_CropForInpaint","AUSBOSS_NODES_ImageCropRotatePad","AUSBOSS_NODES_StitchInpaint","Add Subtitles To Frames","Apply Whisper","CFGOverride","ClothesSegment","ComfyMathExpression","DBSLoader","DBSSeparate","DownloadAndLoadWav2VecModel","DualModelGuider","FL_ChatterboxDialogTTS","FL_ChatterboxMultilingualTTS","FL_ChatterboxVC","GetImageRangeFromBatch","GetImageSizeAndCount","GrowMaskWithBlur","H3AdaLNLoRAFix","H3CharacterSwapAssemble","H3CharacterSwapController","H3CharacterSwapExpandMask","H3CharacterSwapModels","H3CharacterSwapPrepareVideo","H3CharacterSwapRecoverMasks","H3CharacterSwapSelectSubject","H3CharacterSwapSettings","H3CharacterSwapShot","H3CharacterSwapWindowPlan","H3RelayAppendWindow","H3RelayApplyEditMask","H3RelayApplyHistory","H3RelayExpandMask","H3RelayFinishWindows","H3RelayPrepareSource","H3RelayRecoverMasks","H3RelayReviewWindows","H3RelaySamplingMemory","H3RelaySelectMask","H3RelayTextMemory","H3RelayWindowInputs","H3RelayWindowPlan","H3SLAAttention","HunyuanDependenciesLoader","HunyuanFoleySampler","HunyuanModelLoader","INTConstant","Ideogram4Scheduler","ImageBatchExtendWithOverlap","ImageGridtoBatch","ImageResizeKJv2","IndexTTS2Simple","Krea2EditGroundedEncode","Krea2EditModelPatch","Krea2OstrisEditModelPatch","LTXAVTextEncoderLoader","LTXVAddGuide","LTXVAudioVAEDecode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVDualCFGGuider","LTXVEmptyLatentAudio","LTXVImgToVideoInplace","LTXVLatentUpsampler","LTXVPreprocess","LTXVScheduler","LTXVSeparateAVLatent","LatentSyncNode","LoadBackgroundRemovalModel","LoadVideoDepthAnythingModel","MMAudioFeatureUtilsLoader","MMAudioModelLoader","MMAudioSampler","MelBandRoFormerModelLoader","MelBandRoFormerSampler","MiniMaxH3TurboLoRA","MiniMaxH3TurboSampler","MultiTalkModelLoader","MultiTalkWav2VecEmbeds","QwenImage21Cache","RIFE VFI","RMBG","ReActorFaceSwap","RemoveBackground","SAM3_Detect","SAM3_TrackToMask","SAM3_VideoTrack","SeedVR2Conditioning","SeedVR2PostProcessing","SeedVR2Preprocess","TS_ImageToSVGStringColor_Vtracer","TS_SVGStringToSVGBytesIO","TextEncodeFibo2","TextEncodeKrea2OstrisEdit","TextEncodeQwenImage21","ThinkSoundFeatureUtilsLoader","ThinkSoundModelLoader","ThinkSoundSampler","Trellis2Conditioning","Trellis2ShapeStage","Trellis2TextureStage","Trellis2UpsampleStage","VHS_BatchManager","VHS_LoadAudioUpload","VHS_LoadVideo","VHS_SelectEveryNthImage","VHS_VideoCombine","VHS_VideoInfo","VHS_VideoInfoLoaded","VideoDepthAnythingOutput","VideoDepthAnythingProcess","VideoLengthAdjuster","WanVideoBlockSwap","WanVideoClipVisionEncode","WanVideoDecode","WanVideoEncode","WanVideoImageToVideoMultiTalk","WanVideoLoraSelect","WanVideoModelLoader","WanVideoPassImagesFromSamples","WanVideoSampler","WanVideoTextEncodeCached","WanVideoVAELoader"],
+ "folders": ["audio_encoders","background_removal","checkpoints","clip_vision","dbs","diffusion_models","facerestore_models","foley","frame_interpolation","geometry_estimation","insightface","latent_upscale_models","loras","mmaudio","model_patches","optical_flow","reuse","text_encoders","thinksound","upscale_models","vae"],
+ "sentinels": ["AILab_Qwen3ASRSubtitle","AUSBOSS_NODES_CropForInpaint","AUSBOSS_NODES_ImageCropRotatePad","AUSBOSS_NODES_StitchInpaint","Add Subtitles To Frames","Apply Whisper","CFGOverride","ClothesSegment","ComfyMathExpression","DBSLoader","DBSSeparate","DownloadAndLoadWav2VecModel","DualModelGuider","FL_ChatterboxDialogTTS","FL_ChatterboxMultilingualTTS","FL_ChatterboxVC","GetImageRangeFromBatch","GetImageSizeAndCount","GrowMaskWithBlur","H3AdaLNLoRAFix","H3CharacterSwapAssemble","H3CharacterSwapController","H3CharacterSwapExpandMask","H3CharacterSwapModels","H3CharacterSwapPrepareVideo","H3CharacterSwapRecoverMasks","H3CharacterSwapSelectSubject","H3CharacterSwapSettings","H3CharacterSwapShot","H3CharacterSwapWindowPlan","H3RelayAppendWindow","H3RelayApplyEditMask","H3RelayApplyHistory","H3RelayExpandMask","H3RelayFinishWindows","H3RelayPrepareSource","H3RelayRecoverMasks","H3RelayReviewWindows","H3RelaySamplingMemory","H3RelaySelectMask","H3RelayTextMemory","H3RelayWindowInputs","H3RelayWindowPlan","H3SLAAttention","HunyuanDependenciesLoader","HunyuanFoleySampler","HunyuanModelLoader","INTConstant","Ideogram4Scheduler","ImageBatchExtendWithOverlap","ImageGridtoBatch","ImageResizeKJv2","IndexTTS2Simple","Krea2EditGroundedEncode","Krea2EditModelPatch","Krea2OstrisEditModelPatch","LTXAVTextEncoderLoader","LTXVAddGuide","LTXVAudioVAEDecode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVDualCFGGuider","LTXVEmptyLatentAudio","LTXVImgToVideoInplace","LTXVLatentUpsampler","LTXVPreprocess","LTXVScheduler","LTXVSeparateAVLatent","LatentSyncNode","LoadBackgroundRemovalModel","LoadVideoDepthAnythingModel","MMAudioFeatureUtilsLoader","MMAudioModelLoader","MMAudioSampler","MelBandRoFormerModelLoader","MelBandRoFormerSampler","MiniMaxH3TurboLoRA","MiniMaxH3TurboSampler","MultiTalkModelLoader","MultiTalkWav2VecEmbeds","QwenImage21Cache","REUSEEnhance","REUSELoader","RIFE VFI","RMBG","ReActorFaceSwap","RemoveBackground","SAM3_Detect","SAM3_TrackToMask","SAM3_VideoTrack","SeedVR2Conditioning","SeedVR2PostProcessing","SeedVR2Preprocess","TS_ImageToSVGStringColor_Vtracer","TS_SVGStringToSVGBytesIO","TextEncodeFibo2","TextEncodeKrea2OstrisEdit","TextEncodeQwenImage21","ThinkSoundFeatureUtilsLoader","ThinkSoundModelLoader","ThinkSoundSampler","Trellis2Conditioning","Trellis2ShapeStage","Trellis2TextureStage","Trellis2UpsampleStage","VHS_BatchManager","VHS_LoadAudioUpload","VHS_LoadVideo","VHS_SelectEveryNthImage","VHS_VideoCombine","VHS_VideoInfo","VHS_VideoInfoLoaded","VideoDepthAnythingOutput","VideoDepthAnythingProcess","VideoLengthAdjuster","WanVideoBlockSwap","WanVideoClipVisionEncode","WanVideoDecode","WanVideoEncode","WanVideoImageToVideoMultiTalk","WanVideoLoraSelect","WanVideoModelLoader","WanVideoPassImagesFromSamples","WanVideoSampler","WanVideoTextEncodeCached","WanVideoVAELoader"],
"packs": {
"ComfyUI-DBS": {"repo":"https://github.com/hiroki-abe-58/ComfyUI-DBS","commit":"f656e53434b5485c148a2866fbd6ddc6b6152ed6","registry":{"id":"dbs-soundtrack-separation","version":""},"classes":["DBSLoader","DBSSeparate"],"folders":["dbs"],"isolated":false,"requirementsTxt":true,"install":"manual"},
"ComfyUI-Frame-Interpolation": {"repo":"https://github.com/Fannovel16/ComfyUI-Frame-Interpolation","commit":"26545cc2dd95bc3d27f056016300673bdeee78f5","registry":{"id":"comfyui-frame-interpolation","version":""},"classes":["RIFE VFI"],"folders":[],"isolated":false,"requirementsTxt":false,"install":"manual"},
@@ -16,6 +16,7 @@
"ComfyUI-MelBandRoFormer": {"repo":"https://github.com/kijai/ComfyUI-MelBandRoFormer","commit":"92c86854e6654f4aacc97484471af95c98ea16d4","registry":{"id":"ComfyUI-MelBandRoFormer","version":""},"classes":["MelBandRoFormerModelLoader","MelBandRoFormerSampler"],"folders":[],"isolated":false,"requirementsTxt":true,"install":"manual"},
"ComfyUI-MiniMax-H3-Turbo": {"repo":"https://github.com/Larryvrh/ComfyUI-MiniMax-H3-Turbo","commit":"77bfa67575b14e3be6214f1747732e540c68b5dd","registry":{"id":"comfyui-minimax-h3-turbo","version":""},"classes":["MiniMaxH3TurboLoRA","MiniMaxH3TurboSampler"],"folders":[],"isolated":false,"requirementsTxt":false,"install":"manual"},
"ComfyUI-QwenASR": {"repo":"https://github.com/1038lab/ComfyUI-QwenASR","commit":"3f9a652a617e578e4e3bd090e3dbc75274bf4775","registry":{"id":"ComfyUI-QwenASR","version":""},"classes":["AILab_Qwen3ASRSubtitle"],"folders":[],"isolated":false,"requirementsTxt":true,"install":"manual"},
+ "ComfyUI-RE-USE": {"repo":"https://github.com/workingprototype/Fuobe","commit":"8cc0417b5cb8a603f06502d97d5c6d8c6035ea0d","classes":["REUSEEnhance","REUSELoader"],"folders":["reuse"],"isolated":false,"subdir":"comfy-nodes/ComfyUI-RE-USE","requirementsTxt":false,"install":"manual"},
"ComfyUI-RMBG": {"repo":"https://github.com/1038lab/ComfyUI-RMBG","commit":"229529e0ea63fb7085848225d74f91f6dc164956","registry":{"id":"comfyui-rmbg","version":""},"classes":["ClothesSegment","RMBG"],"folders":[],"isolated":false,"requirementsTxt":true,"install":"manual"},
"ComfyUI-ReActor": {"repo":"https://github.com/Gourieff/ComfyUI-ReActor","commit":"3be5f356fe5b120a7a274d2509c0ecef5d0a7498","registry":{"id":"comfyui-reactor","version":""},"classes":["ReActorFaceSwap"],"folders":["facerestore_models","insightface"],"isolated":false,"requirementsTxt":true,"install":"manual"},
"ComfyUI-ThinkSound_Wrapper": {"repo":"https://github.com/ShmuelRonen/ComfyUI-ThinkSound_Wrapper","commit":"9a2fb40ae30cabbdb55fb6f6fe02b01c23ab1a3b","classes":["ThinkSoundFeatureUtilsLoader","ThinkSoundModelLoader","ThinkSoundSampler"],"folders":["thinksound"],"isolated":true,"requirementsTxt":true,"install":"manual"},
@@ -163,6 +164,8 @@
"model_patches/uso-flux1-projector-v1.safetensors": {"folder":"model_patches","file":"uso-flux1-projector-v1.safetensors","url":"https://huggingface.co/Comfy-Org/USO_1.0_Repackaged/resolve/main/split_files/model_patches/uso-flux1-projector-v1.safetensors","pinnedUrl":"https://huggingface.co/Comfy-Org/USO_1.0_Repackaged/resolve/5665f4249983d8a7ebae0de7afe2070887b0397c/split_files/model_patches/uso-flux1-projector-v1.safetensors","sizeBytes":21548200,"gated":false,"presence":"loader","loaders":[["ModelPatchLoader","name"]]},
"model_patches/wan2.1_infiniteTalk_single_fp16.safetensors": {"folder":"model_patches","file":"wan2.1_infiniteTalk_single_fp16.safetensors","url":"https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/model_patches/wan2.1_infiniteTalk_single_fp16.safetensors","pinnedUrl":"https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/123acf1cc74bccbb9bfff8ac1ee72edc08c2341d/split_files/model_patches/wan2.1_infiniteTalk_single_fp16.safetensors","sizeBytes":5125258232,"gated":false,"presence":"loader","loaders":[["ModelPatchLoader","name"]]},
"optical_flow/raft_large_C_T_SKHT_V2-ff5fadd5.safetensors": {"folder":"optical_flow","file":"raft_large_C_T_SKHT_V2-ff5fadd5.safetensors","url":"https://huggingface.co/Comfy-Org/void-model/resolve/main/optical_flow/raft_large_C_T_SKHT_V2-ff5fadd5.safetensors","pinnedUrl":"https://huggingface.co/Comfy-Org/void-model/resolve/f9c9e565920002478ab9477f4c99c29c52d16db3/optical_flow/raft_large_C_T_SKHT_V2-ff5fadd5.safetensors","sizeBytes":21060840,"gated":false,"presence":"loader","loaders":[["OpticalFlowLoader","model_name"]]},
+ "reuse/NemotronLabs-RE-USE-laughter.safetensors": {"folder":"reuse","file":"NemotronLabs-RE-USE-laughter.safetensors","url":"https://huggingface.co/nvidia/NVIDIA-NemotronLabs-RE-USE-laughter/resolve/1b1521dd659608e1e063ada83e0acfe1da473a8b/model.safetensors","pinnedUrl":"https://huggingface.co/nvidia/NVIDIA-NemotronLabs-RE-USE-laughter/resolve/1b1521dd659608e1e063ada83e0acfe1da473a8b/model.safetensors","sizeBytes":38592940,"gated":false,"packFolder":"ComfyUI-RE-USE","presence":"list"},
+ "reuse/NemotronLabs-RE-USE.safetensors": {"folder":"reuse","file":"NemotronLabs-RE-USE.safetensors","url":"https://huggingface.co/nvidia/NVIDIA-NemotronLabs-RE-USE/resolve/31f82f2efad1095034492f236e8dac9239ba713b/model.safetensors","pinnedUrl":"https://huggingface.co/nvidia/NVIDIA-NemotronLabs-RE-USE/resolve/31f82f2efad1095034492f236e8dac9239ba713b/model.safetensors","sizeBytes":38592940,"gated":false,"packFolder":"ComfyUI-RE-USE","presence":"loader","loaders":[["REUSELoader","model"]]},
"text_encoders/byt5_small_glyphxl_fp16.safetensors": {"folder":"text_encoders","file":"byt5_small_glyphxl_fp16.safetensors","url":"https://huggingface.co/Comfy-Org/HunyuanVideo_1.5_repackaged/resolve/main/split_files/text_encoders/byt5_small_glyphxl_fp16.safetensors","pinnedUrl":"https://huggingface.co/Comfy-Org/HunyuanVideo_1.5_repackaged/resolve/1405a2b738c29b890cf6d03fc038d8d3e92eeed7/split_files/text_encoders/byt5_small_glyphxl_fp16.safetensors","sizeBytes":438643184,"gated":false,"presence":"loader","loaders":[["DualCLIPLoader","clip_name2"]]},
"text_encoders/clip_g_hidream.safetensors": {"folder":"text_encoders","file":"clip_g_hidream.safetensors","url":"https://huggingface.co/Comfy-Org/HiDream-I1_ComfyUI/resolve/main/split_files/text_encoders/clip_g_hidream.safetensors","pinnedUrl":"https://huggingface.co/Comfy-Org/HiDream-I1_ComfyUI/resolve/942970a008493fc9bf05b4827374009e69f6a993/split_files/text_encoders/clip_g_hidream.safetensors","sizeBytes":1389743104,"gated":false,"presence":"loader","loaders":[["QuadrupleCLIPLoader","clip_name2"]]},
"text_encoders/clip_l.safetensors": {"folder":"text_encoders","file":"clip_l.safetensors","url":"https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/clip_l.safetensors","pinnedUrl":"https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/6af2a98e3f615bdfa612fbd85da93d1ed5f69ef5/clip_l.safetensors","sizeBytes":246144152,"gated":false,"presence":"loader","loaders":[["DualCLIPLoader","clip_name1"]]},
@@ -381,6 +384,8 @@
"video-swap-wan-vace": {"core":["CLIPLoader","CLIPTextEncode","CheckpointLoaderSimple","ComfyMathExpression","CreateVideo","GetImageSize","GetVideoComponents","GrowMask","ImageCompositeMasked","ImageFromBatch","ImageScale","ImageToMask","InvertMask","KSampler","LoadImage","LoadVideo","LoraLoaderModelOnly","MaskToImage","ModelSamplingSD3","PrimitiveFloat","PrimitiveInt","SAM3_TrackToMask","SAM3_VideoTrack","SaveVideo","TrimAudioDuration","TrimVideoLatent","UNETLoader","VAEDecode","VAELoader","Video Slice","WanVaceToVideo"],"packs":{"ComfyUI-KJNodes":["GrowMaskWithBlur"]},"files":["checkpoints/sam3.1_multiplex_fp16.safetensors","diffusion_models/wan2.1_vace_14B_fp16.safetensors","loras/lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors","text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors","vae/wan_2.1_vae.safetensors"],"optional":[],"vramGb":24,"isolated":false,"firstRun":[],"validated":true},
"video-trim": {"core":["LoadVideo","SaveVideo","Video Slice"],"packs":{},"files":[],"optional":[],"vramGb":0,"isolated":false,"firstRun":[],"validated":true},
"voice-change-chatterbox": {"core":["ComfyMathExpression","LoadAudio","PrimitiveInt","SaveAudioMP3"],"packs":{"ComfyUI_Fill-ChatterBox":["FL_ChatterboxVC"]},"files":[],"optional":[],"vramGb":3,"isolated":false,"firstRun":["FL_ChatterboxVC downloads ResembleAI/chatterbox s3gen.pt (1.06 GB) + conds.pt into models/chatterbox/chatterbox_vc on first run"],"validated":true},
+ "voice-clean-bed-reuse": {"core":["AudioMerge","LoadAudio","PreviewAny","SaveAudioAdvanced"],"packs":{"ComfyUI-DBS":["DBSLoader","DBSSeparate"],"ComfyUI-RE-USE":["REUSEEnhance","REUSELoader"]},"files":["dbs/DBS-BSRNN-DnR/config.json","dbs/DBS-BSRNN-DnR/model.safetensors","dbs/DBS-TIGER-DnR/config.json","dbs/DBS-TIGER-DnR/model.safetensors","reuse/NemotronLabs-RE-USE.safetensors"],"optional":["reuse/NemotronLabs-RE-USE-laughter.safetensors"],"vramGb":0,"isolated":false,"firstRun":[]},
+ "voice-clean-reuse": {"core":["LoadAudio","PreviewAny","SaveAudioAdvanced"],"packs":{"ComfyUI-RE-USE":["REUSEEnhance","REUSELoader"]},"files":["reuse/NemotronLabs-RE-USE.safetensors"],"optional":["reuse/NemotronLabs-RE-USE-laughter.safetensors"],"vramGb":0,"isolated":false,"firstRun":[]},
"wan-animate2": {"core":["BasicScheduler","CLIPLoader","CLIPTextEncode","CLIPVisionEncode","CLIPVisionLoader","ComfyMathExpression","ComfySwitchNode","CreateList","CreateVideo","EndLoop","GetImageSize","GetItemFromList","GetVideoComponents","ImageFromBatch","KSamplerSelect","LoadImage","LoadVideo","LoraLoaderModelOnly","ModelSamplingSD3","PrimitiveInt","RebatchImages","ResizeImageMaskNode","SamplerCustom","SaveVideo","StartLoop","TrimVideoLatent","UNETLoader","VAEDecode","VAELoader","WanAnimate2Cache","WanAnimate2ToVideo"],"packs":{},"files":["clip_vision/clip_vision_h.safetensors","diffusion_models/wan_animate_2_int8_convrot.safetensors","loras/lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors","text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors","vae/Wan2_1_VAE_bf16.safetensors"],"optional":[],"vramGb":24,"isolated":false,"firstRun":[],"validated":true},
"wan21-i2v-uni3c-path": {"core":["CLIPLoader","CLIPTextEncode","CLIPVisionEncode","CLIPVisionLoader","CreateVideo","GetVideoComponents","KSampler","LoadImage","LoadVideo","ModelPatchLoader","ModelSamplingSD3","SaveVideo","UNETLoader","VAEDecode","VAELoader","WanImageToVideo","WanUni3CControlnetApply"],"packs":{},"files":["clip_vision/clip_vision_h.safetensors","diffusion_models/wan2.1_i2v_720p_14B_fp8_scaled.safetensors","model_patches/Wan21_Uni3C_controlnet_fp16.safetensors","text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors","vae/wan_2.1_vae.safetensors"],"optional":["diffusion_models/Wan2_1-I2V-14B-480p_fp8_e4m3fn_scaled_KJ.safetensors"],"vramGb":48,"isolated":false,"firstRun":[],"validated":true},
"wan21-vace-14b-ref2v": {"core":["CLIPLoader","CLIPTextEncode","CreateVideo","KSampler","LoadImage","LoraLoader","ModelSamplingSD3","SaveVideo","TrimVideoLatent","UNETLoader","VAEDecode","VAELoader","WanVaceToVideo"],"packs":{},"files":["diffusion_models/wan2.1_vace_14B_fp16.safetensors","loras/lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors","text_encoders/umt5_xxl_fp16.safetensors","vae/wan_2.1_vae.safetensors"],"optional":[],"vramGb":32,"isolated":false,"firstRun":[],"validated":true},
diff --git a/workflows/comfyui/voice-clean-bed-reuse.json b/workflows/comfyui/voice-clean-bed-reuse.json
new file mode 100644
index 00000000..e761dd04
--- /dev/null
+++ b/workflows/comfyui/voice-clean-bed-reuse.json
@@ -0,0 +1,120 @@
+{
+ "1": {
+ "class_type": "LoadAudio",
+ "inputs": {
+ "audio": "input.wav"
+ },
+ "_meta": {
+ "title": "Soundtrack to clean (audio, or a video with sound)"
+ }
+ },
+ "2": {
+ "class_type": "REUSELoader",
+ "inputs": {
+ "model": "NemotronLabs-RE-USE.safetensors",
+ "device": "auto"
+ },
+ "_meta": {
+ "title": "Load RE-USE"
+ }
+ },
+ "3": {
+ "class_type": "DBSLoader",
+ "inputs": {
+ "model": "DBS-BSRNN-DnR",
+ "device": "auto"
+ },
+ "_meta": {
+ "title": "DBS Loader"
+ }
+ },
+ "4": {
+ "class_type": "DBSSeparate",
+ "inputs": {
+ "model": [
+ "3",
+ 0
+ ],
+ "audio": [
+ "1",
+ 0
+ ],
+ "channels": "mono",
+ "output_sample_rate": "input"
+ },
+ "_meta": {
+ "title": "DBS Separate (music / sfx / speech)"
+ }
+ },
+ "5": {
+ "class_type": "AudioMerge",
+ "inputs": {
+ "audio1": [
+ "1",
+ 0
+ ],
+ "audio2": [
+ "4",
+ 2
+ ],
+ "merge_method": "subtract"
+ },
+ "_meta": {
+ "title": "Music & effects: the original minus the speech"
+ }
+ },
+ "6": {
+ "class_type": "REUSEEnhance",
+ "inputs": {
+ "reuse_model": [
+ "2",
+ 0
+ ],
+ "audio": [
+ "4",
+ 2
+ ],
+ "rate": "source",
+ "pre_lowpass": "off",
+ "channels": "mono",
+ "chunk_seconds": 0,
+ "overlap_seconds": 1,
+ "room_tone_db": -60,
+ "level": "match input",
+ "bed": [
+ "5",
+ 0
+ ],
+ "bed_db": 0
+ },
+ "_meta": {
+ "title": "Clean up voice (RE-USE)"
+ }
+ },
+ "7": {
+ "class_type": "SaveAudioAdvanced",
+ "inputs": {
+ "audio": [
+ "6",
+ 0
+ ],
+ "filename_prefix": "fuobe/voice-clean-bed-reuse",
+ "format": "flac"
+ },
+ "_meta": {
+ "title": "Clean dialogue over the music & effects"
+ }
+ },
+ "8": {
+ "class_type": "PreviewAny",
+ "inputs": {
+ "source": [
+ "6",
+ 1
+ ]
+ },
+ "_meta": {
+ "title": "RE-USE report"
+ }
+ }
+}
diff --git a/workflows/comfyui/voice-clean-reuse.json b/workflows/comfyui/voice-clean-reuse.json
new file mode 100644
index 00000000..7369d33c
--- /dev/null
+++ b/workflows/comfyui/voice-clean-reuse.json
@@ -0,0 +1,70 @@
+{
+ "1": {
+ "class_type": "LoadAudio",
+ "inputs": {
+ "audio": "input.wav"
+ },
+ "_meta": {
+ "title": "Voice to clean (audio, or a video with sound)"
+ }
+ },
+ "2": {
+ "class_type": "REUSELoader",
+ "inputs": {
+ "model": "NemotronLabs-RE-USE.safetensors",
+ "device": "auto"
+ },
+ "_meta": {
+ "title": "Load RE-USE"
+ }
+ },
+ "3": {
+ "class_type": "REUSEEnhance",
+ "inputs": {
+ "reuse_model": [
+ "2",
+ 0
+ ],
+ "audio": [
+ "1",
+ 0
+ ],
+ "rate": "source",
+ "pre_lowpass": "off",
+ "channels": "mono",
+ "chunk_seconds": 0,
+ "overlap_seconds": 1,
+ "room_tone_db": -60,
+ "level": "match input"
+ },
+ "_meta": {
+ "title": "Clean up voice (RE-USE)"
+ }
+ },
+ "4": {
+ "class_type": "SaveAudioAdvanced",
+ "inputs": {
+ "audio": [
+ "3",
+ 0
+ ],
+ "filename_prefix": "fuobe/voice-clean-reuse",
+ "format": "flac"
+ },
+ "_meta": {
+ "title": "Clean voice"
+ }
+ },
+ "5": {
+ "class_type": "PreviewAny",
+ "inputs": {
+ "source": [
+ "3",
+ 1
+ ]
+ },
+ "_meta": {
+ "title": "RE-USE report"
+ }
+ }
+}