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.

Green screen: CorridorKey 2.0 keys at native resolution on your GPU in place of the v1.0 weights, for green-screen footage

Claudeacb48d5366e6
diff --git a/docs/research/new-models-10.json b/docs/research/new-models-10.json
index ae72b3f7..3c933543 100644
--- a/docs/research/new-models-10.json
+++ b/docs/research/new-models-10.json
@@ -902,7 +902,7 @@
"licence": "corridor-key-licence-2.0: the CC BY-NC-SA 4.0 licence with additional terms (LICENSE at cf44a8db): any lawful use including commercial projects, outputs are yours; no repackaging or resale and no charging for the code or weights; no paid API or inference service (paywall, subscription or usage billing); derivatives released free of charge under the same licence; a commercial software package or inference service needs a written agreement with Corridor Digital; organisations above US$20M revenue need a seat per user",
"vram": "4 GB <= 1440p, 6 GB 4K; RTX 30+",
"hosted": [],
- "comfy": "No ComfyUI wrapper loads the 2.0 weights (checked 2026-11-02): pixelworldai/ComfyUI-CorridorKeyWrapper @7eb44e48 and SeanBRVFX/ComfyUI-CorridorKey @0f724f7c load CorridorKey_v1.0.pth (nikopueringer/CorridorKey_v1.0, 0.40 GB, HF tag cc-by-nc-sa-4.0; the v1 engine's own LICENSE is the Corridor Key Licence 1.0 with the same no-resale / no-paid-API terms), TrentNodes @3d80a9df the same v1.0 file. 2.0 runs only in its own engine (github.com/nikopueringer/CorridorKey2.0 @485f5e9a), which also fetches three foundation models: NVIDIA C-RADIOv4-SO400M (NVIDIA Open Model License), MoGe-2 ViT-B (MIT), RVM small (CC-BY 4.0). Fuobe's graph runs v1.0 through pixelworldai's wrapper; 2.0 waits for a wrapper.",
+ "comfy": "Three ComfyUI packs load the 2.0 weights (re-checked 2026-11-02), all under the Corridor Key Licence 2.0: hashu786/ComfyUI-CorridorKey2 @d1228b68 (one CorridorKey2 node; vendors Corridor's corridorkey package at 485f5e9 unmodified), miguelangelarribas/ComfyUI-CorridorKey2 @ab948899 (loader + keyer, also unmodified upstream) and marawan206/ComfyUI-CorridorKey2.0 @c3abf212 (large pack; patches upstream blocks.py). The three named in the brief (pixelworldai/ComfyUI-CorridorKeyWrapper @7eb44e48, SeanBRVFX/ComfyUI-CorridorKey @0f724f7c, TrentNodes @3d80a9df) load CorridorKey_v1.0.pth only. 2.0 also fetches three frozen models: NVIDIA C-RADIOv4-SO400M @c0457f5d (NVIDIA Open Model License, 1.72 GB), MoGe-2 ViT-B @ca5f0e07 (MIT, 0.42 GB), RVM small (CC-BY 4.0, 0.27 GB). Fuobe's graph runs 2.0 through hashu786's node.",
"released": "2026-10-13",
"url": "https://huggingface.co/nikopueringer/CorridorKey2.0",
"inFuobe": false,
diff --git a/docs/research/new-models-10.md b/docs/research/new-models-10.md
index 7668d4d9..95a7bf79 100644
--- a/docs/research/new-models-10.md
+++ b/docs/research/new-models-10.md
@@ -538,7 +538,7 @@ Every brief also carries the standard CLOUD ONLY WHERE IT IS HOSTED, MAIN CHANGE
**Checked while building (2026-11-02).**
-- No ComfyUI wrapper loads CorridorKey 2.0. pixelworldai/ComfyUI-CorridorKeyWrapper (`7eb44e48`), SeanBRVFX/ComfyUI-CorridorKey (`0f724f7c`) and TrentNodes (`3d80a9df`) all load `CorridorKey_v1.0.pth` (nikopueringer/CorridorKey_v1.0, 0.40 GB, Hugging Face tag cc-by-nc-sa-4.0; the v1 engine's LICENSE is the Corridor Key Licence 1.0, with the same no-resale and no-paid-API terms). The 2.0 weights run only in Corridor's own engine, which also fetches NVIDIA C-RADIOv4-SO400M (NVIDIA Open Model License), MoGe-2 ViT-B (MIT) and RVM small (CC-BY 4.0). So the graph runs v1.0 through pixelworldai's wrapper, and 2.0 waits for a wrapper. Note that the wrapper pip-installs Corridor's v1 engine from GitHub the first time it loads.
+- ComfyUI wrappers for CorridorKey 2.0 (re-checked 2026-11-02, shallow clones). The three the brief named (pixelworldai/ComfyUI-CorridorKeyWrapper `7eb44e48`, SeanBRVFX/ComfyUI-CorridorKey `0f724f7c`, TrentNodes `3d80a9df`) load only `CorridorKey_v1.0.pth` (nikopueringer/CorridorKey_v1.0, 0.40 GB; Corridor Key Licence 1.0), and pixelworldai's pip-installs Corridor's v1 engine from GitHub's main branch the first time it loads. Three newer packs load the 2.0 weights, all under the Corridor Key Licence 2.0: hashu786/ComfyUI-CorridorKey2 (`d1228b68`, 2026-10-28; one `CorridorKey2` node: image, optional hint mask; outputs fg, matte, processed, QC, RGBA cutout; vendors Corridor's `corridorkey/` package at `485f5e9` byte for byte), miguelangelarribas/ComfyUI-CorridorKey2 (`ab948899`, 2026-10-29; loader + keyer, also vendors `485f5e9` unmodified, with a parity test against upstream) and marawan206/ComfyUI-CorridorKey2.0 (`c3abf212`, 2026-11-02; a large pack with fine-tuning and analysis nodes; it patches upstream's `blocks.py` for newer PyTorch). Fuobe builds on hashu786's: the simplest graph (one node gives the RGBA cut-out, the matte and the despilled foreground), Corridor's code unchanged, nothing pip-installed at run time, and its first-run download fetches the three frozen models at pinned revisions (C-RADIOv4-SO400M `c0457f5d` 1.72 GB, MoGe-2 ViT-B `ca5f0e07` 0.42 GB, RVM small 0.27 GB md5-checked) and Corridor's weights from the main revision (`cf44a8db` when checked: corridorkey_v2.safetensors 2,661,698,720 B, sha256 c43596de…). About 5.1 GB in all, into models/corridorkey2/. v1.0 is dropped: 2.0 keys at native resolution in 4-6 GB, where v1 needs about 10 GB at its 2048 px working size. Both versions' despill takes out green only.
- Corridor Key Licence 2.0 (LICENSE at `cf44a8db`) adds two terms the summary above leaves out. Nobody may charge for access to the code or weights. A commercial software package or inference service that wants to include it needs a written agreement with Corridor Digital.
- ComfyUI-RMBG has no 3.3.0 tag. It is pinned at commit `a66a5e64` (2026-10-20, version 3.3.0). FeyNoBg also needs the `nobg` Python package.
- VRMBG 3.0's card says "non-commercial use only; commercial use requires a commercial agreement with Bria AI". The repo is `59716e19`, and `model.safetensors` is 0.88 GB.
diff --git a/scripts/comfy/build-library.mjs b/scripts/comfy/build-library.mjs
index d66edc3c..2ab4e8de 100644
--- a/scripts/comfy/build-library.mjs
+++ b/scripts/comfy/build-library.mjs
@@ -168,8 +168,8 @@ export const BINDING_KEYS = new Set([
'device',
// nm10-qwen21-fast: the VAE file Options → Decoder picks (Qwen-Image 2.1) and a speed tier's sigma schedule for the canvas size
'vae', 'sigmas',
- // nm10-keying: the green-screen key's screen colour and despill strength
- 'screenColor', 'despill',
+ // nm10-keying: the green-screen key's despill strength
+ 'despill',
]);
// 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/video-key-corridorkey.json b/scripts/comfy/hand-built/video-key-corridorkey.json
index 63b20cb3..35864862 100644
--- a/scripts/comfy/hand-built/video-key-corridorkey.json
+++ b/scripts/comfy/hand-built/video-key-corridorkey.json
@@ -1,12 +1,10 @@
{
"1": {"class_type": "VHS_LoadVideo", "inputs": {"video": "input.mp4", "force_rate": 0, "custom_width": 0, "custom_height": 0, "frame_load_cap": 0, "skip_first_frames": 0, "select_every_nth": 1, "format": "None", "meta_batch": ["2", 0]}, "_meta": {"title": "Green-screen clip, decoded framesPerBatch frames per pass"}},
- "2": {"class_type": "VHS_BatchManager", "inputs": {"frames_per_batch": 32}, "_meta": {"title": "Meta batch: re-queue every framesPerBatch frames (memory stays flat)"}},
+ "2": {"class_type": "VHS_BatchManager", "inputs": {"frames_per_batch": 48}, "_meta": {"title": "Meta batch: re-queue every framesPerBatch frames (memory stays flat)"}},
"3": {"class_type": "VHS_VideoInfo", "inputs": {"video_info": ["1", 3]}, "_meta": {"title": "Source frame rate"}},
- "4": {"class_type": "LoadCorridorKeyModel", "inputs": {"precision": "auto", "use_refiner": true, "mixed_precision": true}, "_meta": {"title": "CorridorKey (v1.0 weights, downloaded on first run)"}},
- "5": {"class_type": "ChromaKeyPrepass", "inputs": {"image": ["1", 0], "screen_color": "green", "threshold": 0.3, "softness": 0.1, "erode": 2, "blur": 5}, "_meta": {"title": "Coarse alpha hint from the screen colour"}},
- "6": {"class_type": "CorridorKeyGreenscreen", "inputs": {"ck_model": ["4", 0], "image": ["1", 0], "alpha_hint": ["5", 0], "despill_strength": 1.0, "refiner_scale": 1.0, "auto_despeckle": true, "despeckle_size": 400, "input_is_linear": false}, "_meta": {"title": "CorridorKey: alpha, despilled foreground, straight RGBA"}},
- "7": {"class_type": "VHS_VideoCombine", "inputs": {"images": ["6", 2], "audio": ["1", 2], "frame_rate": ["3", 5], "loop_count": 0, "filename_prefix": "fuobe/video-key-corridorkey", "format": "video/webm", "pix_fmt": "yuva420p", "crf": 20, "profile": "4444", "save_metadata": true, "trim_to_audio": false, "pingpong": false, "save_output": true, "meta_batch": ["2", 0]}, "_meta": {"title": "Cut-out: transparent WebM (yuva420p), or ProRes 4444 with alpha (format video/ProRes, profile 4444)"}},
- "8": {"class_type": "MaskToImage", "inputs": {"mask": ["6", 0]}, "_meta": {}},
+ "6": {"class_type": "CorridorKey2", "inputs": {"image": ["1", 0], "gamma_space": "sRGB", "hint_quality": 0.95, "carry_hint": true, "carry_hint_quality": 0.95, "despill_strength": 0.5, "window": "auto", "low_vram": false, "unload_other_models": true}, "_meta": {"title": "CorridorKey 2.0 (weights downloaded on first run): matte, despilled foreground over black, straight RGBA"}},
+ "7": {"class_type": "VHS_VideoCombine", "inputs": {"images": ["6", 4], "audio": ["1", 2], "frame_rate": ["3", 5], "loop_count": 0, "filename_prefix": "fuobe/video-key-corridorkey", "format": "video/webm", "pix_fmt": "yuva420p", "crf": 20, "profile": "4444", "save_metadata": true, "trim_to_audio": false, "pingpong": false, "save_output": true, "meta_batch": ["2", 0]}, "_meta": {"title": "Cut-out: transparent WebM (yuva420p), or ProRes 4444 with alpha (format video/ProRes, profile 4444)"}},
+ "8": {"class_type": "MaskToImage", "inputs": {"mask": ["6", 1]}, "_meta": {}},
"9": {"class_type": "VHS_VideoCombine", "inputs": {"images": ["8", 0], "frame_rate": ["3", 5], "loop_count": 0, "filename_prefix": "fuobe/video-key-corridorkey-matte", "format": "video/h264-mp4", "pix_fmt": "yuv420p", "crf": 19, "save_metadata": true, "trim_to_audio": false, "pingpong": false, "save_output": true, "meta_batch": ["2", 0]}, "_meta": {"title": "Alpha mask MP4"}},
- "11": {"class_type": "SaveImageAdvanced", "inputs": {"images": ["6", 2], "filename_prefix": "fuobe/video-key-corridorkey-exr", "format": "exr", "format.bit_depth": "16-bit float", "format.input_color_space": "sRGB"}, "_meta": {"title": "OpenEXR frames with alpha (scene-linear, half float)"}}
+ "11": {"class_type": "SaveImageAdvanced", "inputs": {"images": ["6", 4], "filename_prefix": "fuobe/video-key-corridorkey-exr", "format": "exr", "format.bit_depth": "16-bit float", "format.input_color_space": "sRGB"}, "_meta": {"title": "OpenEXR frames with alpha (scene-linear, half float)"}}
}
diff --git a/scripts/comfy/install-comfyui.sh b/scripts/comfy/install-comfyui.sh
index fa3bedfa..2c67c938 100755
--- a/scripts/comfy/install-comfyui.sh
+++ b/scripts/comfy/install-comfyui.sh
@@ -45,10 +45,11 @@ declare -A NODES=(
# dependencies) and PlagueKind's SLA attention and AdaLN LoRA fix (MIT, v1.5.6; the SLA kernel imports triton, installed below).
[ComfyUI-MiniMax-H3-Turbo]="https://github.com/Larryvrh/ComfyUI-MiniMax-H3-Turbo 77bfa67575b14e3be6214f1747732e540c68b5dd"
[plaguekind-nodes]="https://github.com/PlagueKind/ComfyUI-PlagueKind-Nodes d58d006a4ea32c25c06499f2ff104f0852a045a6"
- # Green screen (nm10-keying): pixelworldai's CorridorKey wrapper (no LICENSE file; CorridorKey itself is under the Corridor
- # Key Licence). Read at this commit: its loader pip-installs Corridor's v1 engine from GitHub and downloads the v1.0
- # weights the first time it runs, never at import.
- [ComfyUI-CorridorKeyWrapper]="https://github.com/pixelworldai/ComfyUI-CorridorKeyWrapper 7eb44e48c182e81e9dd32024770247d01f1631d3"
+ # Green screen (nm10-keying): hashu786's CorridorKey 2.0 nodes (Corridor Key Licence 2.0, like CorridorKey itself; they
+ # vendor Corridor's CorridorKey 2.0 code unmodified at 485f5e9). Read at this commit: nothing is installed at run time; the
+ # node downloads the 2.0 weights and the three frozen models it builds on (about 5.1 GB, into models/corridorkey2/) the
+ # first time it runs, never at import (CORRIDORKEY2_NO_DOWNLOAD=1 turns that off). Its requirements are in the union below.
+ [ComfyUI-CorridorKey2]="https://github.com/hashu786/ComfyUI-CorridorKey2 d1228b68796786acee92b6497f72a60d70d1a844"
)
# Licences are information (Settings → Models & licences has the switches): every pack is installed, the
# non-commercial ComfyUI-Whisper (CC-BY-NC-SA-4.0, used by the captions-whisper-burnin workflow) included.
diff --git a/scripts/comfy/library.spec.mjs b/scripts/comfy/library.spec.mjs
index 4421ce25..b50872fd 100644
--- a/scripts/comfy/library.spec.mjs
+++ b/scripts/comfy/library.spec.mjs
@@ -124,8 +124,7 @@
// 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 Green screen (nm10-keying). * = the provider fills it:
-// screenColor (ChromaKeyPrepass screen_color: green | blue; params.extra.screenColor)
-// despill (CorridorKeyGreenscreen despill_strength 0-10, 1 = the wrapper's default; params.extra.despill)
+// despill (CorridorKey2 despill_strength 0-1, 0.5 = Corridor's default; params.extra.despill)
// format*, profile* (the cut-out's VHS_VideoCombine: video/webm + yuva420p, or video/ProRes + 4444 for params.format prores_4444)
// 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
@@ -206,7 +205,7 @@ export const CUSTOM_NODE_REPOS = {
// nodes (Apache-2.0). Neither is on the validation server; both download their weights from Hugging Face on first run.
'ComfyUI-QwenTTS': 'https://github.com/1038lab/ComfyUI-QwenTTS/tree/d8122a8ba835b65fd65c113d2b273b1ad1579293',
'ComfyUI-VoxCPM2': 'https://github.com/Saganaki22/ComfyUI-VoxCPM2/tree/0e52a6cd006769e030d0e1ae907ffebbbfac4f5f',
- 'ComfyUI-CorridorKeyWrapper': 'https://github.com/pixelworldai/ComfyUI-CorridorKeyWrapper/tree/7eb44e48c182e81e9dd32024770247d01f1631d3',
+ 'ComfyUI-CorridorKey2': 'https://github.com/hashu786/ComfyUI-CorridorKey2/tree/d1228b68796786acee92b6497f72a60d70d1a844',
};
// Node classes of the packs entries list in `packs` (packs the validation server doesn't have installed): the build
@@ -232,9 +231,9 @@ export const PACK_CLASSES = {
'zen-image-edit-comfyui': /^ZenImage21(AdapterLoader|TextEncode)$/,
'ComfyUI-QwenTTS': /^AILab_Qwen3TTS(VoiceDesign|VoiceClone|CustomVoice)(_Advanced)?$/,
'ComfyUI-VoxCPM2': /^VoxCPM2_(TTS|Clone)$/,
- // Green screen and fine hair (nm10-keying): pixelworldai's CorridorKey wrapper, and ComfyUI-RMBG 3.3.0's new nodes (the
- // validation server has 3.2.0, so their definitions come from the pack's source at the pinned commit).
- 'ComfyUI-CorridorKeyWrapper': /^(LoadCorridorKeyModel|CorridorKeyGreenscreen|ChromaKeyPrepass|CorridorKeyComposite)$/,
+ // Green screen and fine hair (nm10-keying): hashu786's CorridorKey 2.0 nodes, and ComfyUI-RMBG 3.3.0's new nodes (neither
+ // is on the validation server at these commits, so their definitions come from the packs' source at the pinned commits).
+ 'ComfyUI-CorridorKey2': /^CorridorKey2(RenderToDisk)?$/,
'ComfyUI-RMBG': /^AILab_(VRMBG|FeyNoBg)$/,
};
@@ -2462,14 +2461,13 @@ export const SPEC = [
},
{
id: 'video-key-corridorkey',
- title: 'Green-screen key: CorridorKey (v1.0 weights) with despill, transparent WebM / ProRes 4444 / EXR, in passes (ComfyUI-CorridorKeyWrapper + VHS)',
+ title: 'Green-screen key: CorridorKey 2.0 with despill, transparent WebM / ProRes 4444 / EXR, in passes (ComfyUI-CorridorKey2 + VHS)',
capability: 'bg-remove-video',
handBuilt: 'hand-built/video-key-corridorkey.json',
- packs: ['ComfyUI-CorridorKeyWrapper', 'ComfyUI-VideoHelperSuite'],
+ packs: ['ComfyUI-CorridorKey2', 'ComfyUI-VideoHelperSuite'],
bindings: {
video: [b('1', 'video')],
framesPerBatch: [b('2', 'frames_per_batch')],
- screenColor: [b('5', 'screen_color')],
despill: [b('6', 'despill_strength')],
format: [b('7', 'format')],
profile: [b('7', 'profile')],
@@ -2479,24 +2477,24 @@ export const SPEC = [
{ node: '9', kind: 'video', role: 'matte' },
{ node: '11', kind: 'image', role: 'frames' },
],
- defaults: { framesPerBatch: 32, screenColor: 'green', despill: 1, format: 'video/webm', profile: '4444' },
+ defaults: { framesPerBatch: 48, despill: 0.5, format: 'video/webm', profile: '4444' },
limits: { maxWidth: 3840, maxHeight: 2160 },
+ // Corridor: 4 GB up to 1440p and 6 GB for 4K (the node picks a smaller temporal window and its low-VRAM path on a
+ // smaller card); about 6 GB at 1080p in the wrapper's own notes. NVIDIA RTX 30-series or newer (bf16).
vramGb: 6,
- license: 'CorridorKey v1.0 weights: Corridor Key Licence 1.0 (CC BY-NC-SA 4.0 with added terms: free for any lawful use including commercial projects, and what you make is yours; it may NOT be offered as a paid API or inference service, nor repackaged or sold; a commercial software package needs a written agreement with Corridor Digital); its Hugging Face repo is tagged CC BY-NC-SA 4.0, the licence the added terms build on. The wrapper has no LICENSE file.',
+ license: 'CorridorKey 2.0 weights: Corridor Key Licence 2.0 (CC BY-NC-SA 4.0 with added terms: free for any lawful use including commercial projects, and what you make is yours; it may NOT be offered as a paid API or inference service, nor resold or repackaged; derivatives stay under the same licence; a commercial software package needs a written agreement with Corridor Digital; organisations above US$20M revenue need a seat per user). The frozen models it builds on keep their own licences: NVIDIA C-RADIOv4-SO400M (NVIDIA Open Model License), Microsoft MoGe-2 ViT-B (MIT), Google DeepMind RVM small (CC-BY 4.0). The ComfyUI nodes (hashu786/ComfyUI-CorridorKey2) are under the same Corridor Key Licence 2.0.',
autoDownloads: [
- 'LoadCorridorKeyModel downloads CorridorKey_v1.0.pth (0.40 GB, nikopueringer/CorridorKey_v1.0) into models/corridorkey/ as CorridorKey.pth on first run',
- 'LoadCorridorKeyModel pip-installs Corridor\'s v1 engine (corridorkey @ git+https://github.com/nikopueringer/CorridorKey.git) the first time it loads, when it is missing',
+ 'CorridorKey2 downloads about 5.1 GB into models/corridorkey2/ on first run: corridorkey_v2.safetensors (2.66 GB) and foundation_stats.safetensors from nikopueringer/CorridorKey2.0 (its main revision, cf44a8db when checked), NVIDIA C-RADIOv4-SO400M @ c0457f5d (1.72 GB), Microsoft MoGe-2 ViT-B @ ca5f0e07 (0.42 GB) and Google DeepMind RVM small (0.27 GB, md5-checked)',
],
notes:
- 'VHS_LoadVideo decodes framesPerBatch frames per pass (VHS_BatchManager, 32 by default) and the three VHS_VideoCombine encodes stay open across passes, so memory stays flat on a long clip. ' +
- 'ChromaKeyPrepass makes a coarse alpha hint from the screen colour (screenColor green | blue; threshold 0.3, softness 0.1, erode 2, blur 5), then CorridorKeyGreenscreen (despill 1.0, refiner on, ' +
- 'auto-despeckle 400 px, input sRGB) gives the alpha, the despilled sRGB foreground and the straight RGBA. ' +
- 'Roles: node 7 cutout (the RGBA as a transparent WebM, VP9 yuva420p, with the clip\'s sound; params.format prores_4444 switches it to video/ProRes profile 4444, which VHS writes as yuva444p10le with alpha), ' +
- 'node 9 matte (the alpha as an H.264 MP4), node 11 frames (the RGBA as half-float OpenEXR, input sRGB -> scene-linear, one file a frame). ' +
- 'params.matteOutput keeps cutout or matte; "foreground" keeps node 7 fed from the keyer\'s despilled foreground (output 1) as H.264 with sound instead. ' +
- 'Node 11 stays only for params.format exr, with the cut-out as its preview, and Fuobe zips the frames onto it. ' +
- 'CorridorKey 2.0 (nikopueringer/CorridorKey2.0, corridorkey_v2.safetensors 2.66 GB, cf44a8db) runs only in Corridor\'s own engine: no ComfyUI wrapper loads it yet (checked 2026-11-02), so this graph runs v1.0 and 2.0 waits for a wrapper. ' +
- 'NVIDIA RTX 30-series or newer; Corridor gives 4 GB up to 1440p and 6 GB for 4K for 2.0. The wrapper\'s classes are recorded from its source at the pinned commit.',
+ 'VHS_LoadVideo decodes framesPerBatch frames per pass (VHS_BatchManager, 48 by default) and the three VHS_VideoCombine encodes stay open across passes, so memory stays flat on a long clip. ' +
+ 'CorridorKey2 (hashu786/ComfyUI-CorridorKey2, which vendors Corridor\'s CorridorKey 2.0 code unmodified at 485f5e9) keys each pass as one clip at native resolution, with overlapping temporal Hann windows ' +
+ '(window auto: the largest that fits the free VRAM) and no hint, so the model picks the subject; despill 0.5 (Corridor\'s default), input sRGB. Each pass starts its temporal context afresh. ' +
+ 'Only the outputs a node reads are computed. Roles: node 7 cutout (output 4, the despilled straight RGBA, as a transparent WebM, VP9 yuva420p, with the clip\'s sound; params.format prores_4444 switches it to ' +
+ 'video/ProRes profile 4444, which VHS writes as yuva444p10le with alpha), node 9 matte (output 1 as an H.264 MP4), node 11 frames (the RGBA as half-float OpenEXR, input sRGB -> scene-linear, one file a frame, in every pass). ' +
+ 'params.matteOutput keeps cutout or matte; "foreground" feeds node 7 the despilled foreground premultiplied over black (output 2) as H.264 with sound instead. ' +
+ 'Node 11 stays only for params.format exr, with the cut-out as its preview, and Fuobe zips every pass\'s frames onto it. ' +
+ 'Corridor\'s despill takes out green spill: the key is for green screens. NVIDIA CUDA only (RTX 30-series or newer). The node\'s class is recorded from its source at the pinned commit.',
},
{
id: 'video-depth-da3',
diff --git a/scripts/comfy/validation-state.json b/scripts/comfy/validation-state.json
index 05db7cfb..66c61db9 100644
--- a/scripts/comfy/validation-state.json
+++ b/scripts/comfy/validation-state.json
@@ -828,10 +828,10 @@
"at": "2026-10-23T00:12:21.209Z"
},
"video-key-corridorkey": {
- "sha256": "4cf78bd97d1229965b745200c44d987664ef0bb7666655cdf22fbe2381955a25",
+ "sha256": "05971ce7115c793259dc1e6d88bee9a5815c50f7f6d2ba98132433a9dad5a20d",
"validated": false,
- "error": "HTTP 400: missing_node_type: Node 'CorridorKey (v1.0 weights, downloaded on first run)' not found. The custom node may not be installed. (Node ID '#4')",
- "at": "2026-11-02T11:07:46.594Z"
+ "error": "HTTP 400: missing_node_type: Node 'CorridorKey 2.0 (weights downloaded on first run): matte, despilled foreground over black, straight RGBA' not found. The custom node may not be installed. (Node ID '#6')",
+ "at": "2026-11-02T21:14:06.467Z"
},
"video-mask-h3-relay": {
"sha256": "d5a3fc7046010b54ea070f45acc325602ed5ab5dbe403040e4d6591949084c84",
diff --git a/src/lib/catalog/models.ts b/src/lib/catalog/models.ts
index 4b508bfc..0308feb1 100644
--- a/src/lib/catalog/models.ts
+++ b/src/lib/catalog/models.ts
@@ -1027,24 +1027,24 @@ const open: ModelDef[] = [
options: { promptless: true, matteOutputs: ["cutout", "matte"], formats: ["webm_alpha", "prores_4444", "exr"] },
defaults: { format: "webm_alpha" },
}),
- // Video tools → Green screen on your GPU (nm10-keying): Corridor Digital's CorridorKey neural keyer on footage shot on a
- // green or blue screen, in passes so long clips fit. The cut-out, its mask or the clean foreground; WebM, ProRes 4444 with
- // alpha, or linear EXR frames. It runs the v1.0 weights: no ComfyUI node loads CorridorKey 2.0 yet.
+ // Video tools → Green screen on your GPU (nm10-keying): Corridor Digital's CorridorKey 2.0 neural keyer on footage shot on
+ // a green screen (its despill takes out green), at native resolution, in passes so long clips fit. The cut-out, its mask or
+ // the clean foreground; WebM, ProRes 4444 with alpha, or linear EXR frames. NVIDIA RTX 30-series or newer.
o({
id: "oss-video-key-corridorkey",
- name: "CorridorKey",
+ name: "CorridorKey 2.0",
vendor: "Corridor Digital",
family: "corridorkey",
kind: "video",
tagline: "Neural green-screen keying: clean hair, motion blur and see-through edges, with the green spill taken out",
badges: ["new"],
- routes: [comfy("bg-remove-video", "video-key-corridorkey", "CorridorKey v1.0 weights")],
+ routes: [comfy("bg-remove-video", "video-key-corridorkey", "CorridorKey 2.0")],
options: {
promptless: true,
greenScreen: true,
matteOutputs: ["cutout", "matte", "foreground"],
formats: ["webm_alpha", "prores_4444", "exr"],
- sliders: [{ param: "despill", label: "Spill cleanup", min: 0, max: 3, step: 0.1, default: 1 }],
+ sliders: [{ param: "despill", label: "Spill cleanup", min: 0, max: 1, step: 0.05, default: 0.5 }],
},
defaults: { format: "webm_alpha" },
}),
diff --git a/src/lib/catalog/types.ts b/src/lib/catalog/types.ts
index 3b3e758e..39b9b0de 100644
--- a/src/lib/catalog/types.ts
+++ b/src/lib/catalog/types.ts
@@ -693,7 +693,7 @@ export interface ModelOptions {
/** Remove background keeps only what you name (SAM): words, or points clicked on the first frame, are needed. */
keepsNamed?: boolean;
/**
- * A keyer for footage shot on a green (or blue) screen (CorridorKey, Bria green screen): listed in Video tools → Green
+ * A keyer for footage shot on a green screen (CorridorKey 2.0, Bria green screen): listed in Video tools → Green
* screen, kept out of Remove background's list.
*/
greenScreen?: boolean;
diff --git a/src/lib/licences.ts b/src/lib/licences.ts
index f03a364f..795262f1 100644
--- a/src/lib/licences.ts
+++ b/src/lib/licences.ts
@@ -278,8 +278,10 @@ const KNOWN: { re: RegExp; name: string; class: LicenceClass; url?: string }[] =
{ re: /FLUX \[dev\] Non-Commercial License/, name: "FLUX [dev] Non-Commercial License", class: "non-commercial", url: "https://huggingface.co/black-forest-labs/FLUX.2-dev" },
{ re: /Ideogram Non-Commercial Model Agreement/, name: "Ideogram Non-Commercial Model Agreement", class: "non-commercial", url: "https://huggingface.co/ideogram-ai/ideogram-4-fp8/blob/main/LICENSE.md" },
{ re: /inswapper/, name: "InsightFace inswapper (research only)", class: "research", url: "https://github.com/deepinsight/insightface" },
- { re: /CC-BY-NC-SA-4\.0/, name: "CC BY-NC-SA 4.0", class: "non-commercial", url: SPDX("CC-BY-NC-SA-4.0") },
- { re: /CC[- ]BY[- ]NC(?:[- ]4\.0)?\b/, name: "CC BY-NC 4.0", class: "non-commercial", url: SPDX("CC-BY-NC-4.0") },
+ // Corridor's CC BY-NC-SA 4.0 variant that allows commercial projects (no paid API, no resale): before the CC entries.
+ { re: /Corridor Key Licence 2\.0/, name: "Corridor Key Licence 2.0", class: "conditions", url: "https://github.com/nikopueringer/CorridorKey2.0/blob/485f5e9ab759ead6138cc990776184b59d6ea971/LICENSE" },
+ { re: /CC[- ]BY[- ]NC[- ]SA[- ]4\.0/, name: "CC BY-NC-SA 4.0", class: "non-commercial", url: SPDX("CC-BY-NC-SA-4.0") },
+ { re: /CC[- ]BY[- ]NC(?![- ]SA)(?:[- ]4\.0)?\b/, name: "CC BY-NC 4.0", class: "non-commercial", url: SPDX("CC-BY-NC-4.0") },
{ re: /Qwen Research License/, name: "Qwen Research License", class: "non-commercial", url: "https://huggingface.co/Qwen/Qwen-Image-2.1/blob/main/LICENSE" },
{ re: /Tencent Hunyuan 3D 2\.1 Community License/, name: "Tencent Hunyuan 3D 2.1 Community License", class: "regions" },
{ re: /Tencent Hunyuan Community License/, name: "Tencent Hunyuan Community License", class: "regions" },
@@ -319,20 +321,28 @@ export function modelCardOf(url: string | undefined): string | undefined {
* the model downloads it covers (the largest first): their Hugging Face page is the link when the licence
* has no page of its own.
*/
+/** A text that records its weights' licence as not stated anywhere: "<model> weights: unknown (…)". */
+const UNSTATED = /^[^:;(]+\bweights: unknown\b/i;
+
export function licenceInfo(text: string, cards: string[] = []): LicenceInfo {
const terms = licenceTerms(text);
const card = cards.map(modelCardOf).find(Boolean);
if (text === UNKNOWN_LICENCE) return { name: "Not recorded", class: "unknown", note: text, ...(card && { url: card }) };
if (terms.noWeights) return { name: "No model weights", class: "commercial", url: COMFYUI_REPO, note: `${text.replace(/^n\/a \((.*)\)$/, "$1")}: ComfyUI's own nodes (GPL-3.0) or FFmpeg` };
+ // Weights whose licence the research found nowhere ("FeyNoBg weights: unknown (no card, no tag, no LICENSE)").
+ const unstated = UNSTATED.test(text);
const cls: LicenceClass = terms.flags.includes("non-commercial")
? /research (?:use )?only/i.test(text)
? "research"
: "non-commercial"
: terms.flags.includes("territory")
? "regions"
- : terms.flags.includes("conditions")
- ? "conditions"
- : "commercial";
+ : unstated
+ ? "unknown"
+ : terms.flags.includes("conditions")
+ ? "conditions"
+ : "commercial";
+ if (cls === "unknown") return { name: "Not recorded", class: cls, note: text, ...(card && { url: card }) };
const found = KNOWN.filter((k) => k.re.test(text));
const named = found.find((k) => k.class === cls) ?? found[0];
const name = named?.name ?? text.split(/[(;:]/)[0].trim();
@@ -474,8 +484,12 @@ export const NODE_PACKS: NodePack[] = [
url: SPDX("Apache-2.0"),
note: "VoxCPM2 text to speech (voice design) and voice clone nodes; Apache-2.0 code. The VoxCPM2 weights it downloads are Apache-2.0",
}),
- // Green screen (nm10-keying), pinned in workflows/comfyui/packs.json: the repository has no LICENSE file at the pinned commit.
- pack("ComfyUI-CorridorKeyWrapper", "https://github.com/pixelworldai/ComfyUI-CorridorKeyWrapper/tree/7eb44e48c182e81e9dd32024770247d01f1631d3", NO_FILE("; the CorridorKey weights it downloads are under the Corridor Key Licence: free for any project, commercial ones included, but never as a paid API or inference service")),
+ // Green screen (nm10-keying), pinned in workflows/comfyui/packs.json: its LICENSE is Corridor's own, word for word.
+ pack("ComfyUI-CorridorKey2", "https://github.com/hashu786/ComfyUI-CorridorKey2/tree/d1228b68796786acee92b6497f72a60d70d1a844", {
+ name: "Corridor Key Licence 2.0",
+ class: "conditions",
+ note: "CorridorKey 2.0 nodes, with Corridor's CorridorKey 2.0 code inside unmodified; the code and the weights it downloads are under the Corridor Key Licence 2.0: free for any project, commercial ones included, but never resold or offered as a paid API or inference service. The frozen models it downloads keep their own licences (NVIDIA Open Model License, MIT, CC-BY 4.0)",
+ }),
// Genjutsu's Character swap (docs/research/openjutsu-6.md §7): Akatz Labs' packs, pinned in install-comfyui.sh.
pack("h3_character_swap", "https://github.com/akatz-labs/h3-character-swap-tool/tree/0670e4fdf95adf2262caa4b81afed2a9c4ae4b7b/worker_nodes/h3_character_swap", {
...GPL,
diff --git a/src/lib/studios.ts b/src/lib/studios.ts
index 7710d97d..54ce8f19 100644
--- a/src/lib/studios.ts
+++ b/src/lib/studios.ts
@@ -453,14 +453,15 @@ export const VIDEO_MATTE_STUDIO: StudioConfig = {
};
/**
- * Video tools → Green screen (nm10-keying): footage shot on a green or blue screen, keyed with the spill cleaned off the
- * edges. Its models are the keyers (ModelOptions.greenScreen): CorridorKey on your GPU, Bria's green-screen despill in the
- * cloud. Remove background lists the others.
+ * Video tools → Green screen (nm10-keying): footage shot on a green screen, keyed with the green spill cleaned off the
+ * edges (both keyers despill green only). Its models are the keyers (ModelOptions.greenScreen): CorridorKey 2.0 on your GPU,
+ * Bria's green-screen despill in the cloud. Remove background lists the others.
*/
export const VIDEO_KEY_STUDIO: StudioConfig = {
...VIDEO_MATTE_STUDIO,
hero: "Key out a green screen",
- subtitle: "Footage shot on a green or blue screen, keyed clean with the spill taken off hair and edges. Get the cut-out, its mask or the clean foreground.",
+ subtitle:
+ "Footage shot on a green screen, keyed clean with the green spill taken off hair and edges. On your GPU, get the cut-out, its mask or the clean foreground as WebM, ProRes 4444 or EXR; in the cloud, the cut-out as a transparent WebM.",
placeholder: "",
greenScreen: true,
defaultModels: { cloud: "bria-green-screen", open: "oss-video-key-corridorkey" },
diff --git a/src/server/gpu/tools.ts b/src/server/gpu/tools.ts
index bd88f273..7d21e1d3 100644
--- a/src/server/gpu/tools.ts
+++ b/src/server/gpu/tools.ts
@@ -277,7 +277,7 @@ export const STUDIO_ROWS: StudioRowDef[] = [
{ href: "/upscale/hdr", label: "SDR to HDR", group: "Video tools", config: S.SDR_TO_HDR_STUDIO },
{ href: "/upscale/export", label: "Export", group: "Video tools", config: S.VIDEO_EXPORT_STUDIO },
{ href: "/video-tools", label: "Remove background", group: "Video tools", config: S.VIDEO_MATTE_STUDIO },
- // nm10-keying: CorridorKey on footage shot on a green or blue screen (its own list: ModelOptions.greenScreen).
+ // nm10-keying: CorridorKey 2.0 on footage shot on a green screen (its own list: ModelOptions.greenScreen).
{ href: "/video-tools/green-screen", label: "Green screen", group: "Video tools", config: S.VIDEO_KEY_STUDIO },
// DBS D2: the split, then the stream-copy mux (one stem in place of the sound, or the voice over the lowered bed).
{
diff --git a/src/server/providers/comfyui.ts b/src/server/providers/comfyui.ts
index 9f69de65..a2897b98 100644
--- a/src/server/providers/comfyui.ts
+++ b/src/server/providers/comfyui.ts
@@ -1838,12 +1838,13 @@ export async function prepareWorkflow(endpointTemplate: string, input: GenInput,
}
// The output not asked for isn't saved (nor encoded: ComfyUI runs only what an output node needs).
if (keepRole && manifest.outputs.some((o) => o.role === keepRole)) for (const o of manifest.outputs) if (o.role && o.role !== keepRole && !(keyExr && o.role === "frames")) delete wf[o.node];
- // The clean foreground (CorridorKey's despilled colours, output 1): the cut-out's encoder takes it as a plain H.264 with sound.
+ // The clean foreground (CorridorKey 2.0's despilled colours premultiplied over black, output 2): the cut-out's encoder takes
+ // it as a plain H.264 with sound.
if (keyForeground) {
- const keyer = Object.entries(wf).find(([, n]) => n.class_type === "CorridorKeyGreenscreen")?.[0];
+ const keyer = Object.entries(wf).find(([, n]) => n.class_type === "CorridorKey2")?.[0];
const cut = manifest.outputs.find((o) => o.role === "cutout")?.node;
if (!keyer || !cut || !wf[cut]) throw new ProviderError(`${manifest.title} doesn't make a clean foreground — CorridorKey in Green screen does`, 400);
- wf[cut] = { ...wf[cut], inputs: { ...wf[cut].inputs, images: [keyer, 1], format: "video/h264-mp4", pix_fmt: "yuv420p", crf: 19 } };
+ wf[cut] = { ...wf[cut], inputs: { ...wf[cut].inputs, images: [keyer, 2], format: "video/h264-mp4", pix_fmt: "yuv420p", crf: 19 } };
}
// A key's EXR frames are written only when asked for (they ride on the cut-out, zipped).
if (ctx.op === "bg-remove-video" && !keyExr) for (const o of manifest.outputs) if (o.role === "frames") delete wf[o.node];
diff --git a/tests/keying.test.ts b/tests/keying.test.ts
index e4d57bce..709988fa 100644
--- a/tests/keying.test.ts
+++ b/tests/keying.test.ts
@@ -5,7 +5,7 @@ import { describe, expect, it } from "vitest";
import type { GenInput, GenParams, Generation, Operation } from "@/lib/catalog/types";
/**
- * Green screen and fine hair (nm10-keying): the CorridorKey key, Bria VRMBG 3.0 and FeyNoBg graphs (their packs pinned,
+ * Green screen and fine hair (nm10-keying): the CorridorKey 2.0 key, Bria VRMBG 3.0 and FeyNoBg graphs (their packs pinned,
* their classes checked against the packs' source), the key's passes and formats, the Green screen mode's own model list,
* the two Bria routes on fal, the guided cut-out in Layers and the mask's way on to ProRes or EXR.
*/
@@ -35,11 +35,11 @@ const { modelHref } = await import("@/lib/palette-index");
const { TOOL_MODELS } = await import("@/lib/layers");
const { outputActions } = await import("@/lib/output-actions");
const { settingsShape } = await import("@/lib/composer");
-const { licenceTerms } = await import("@/lib/licences");
+const { licenceInfo, licenceTerms, NODE_PACKS, workflowLicence } = await import("@/lib/licences");
const { keyFormatValues } = await import("@/lib/av/keying");
const GRAPHS = {
- "video-key-corridorkey": { capability: "bg-remove-video", packs: ["ComfyUI-CorridorKeyWrapper", "ComfyUI-VideoHelperSuite"], roles: ["cutout", "matte", "frames"] },
+ "video-key-corridorkey": { capability: "bg-remove-video", packs: ["ComfyUI-CorridorKey2", "ComfyUI-VideoHelperSuite"], roles: ["cutout", "matte", "frames"] },
"video-matte-vrmbg3": { capability: "bg-remove-video", packs: ["ComfyUI-RMBG", "ComfyUI-VideoHelperSuite"], roles: ["cutout", "matte", "frames"] },
"image-matte-feynobg": { capability: "bg-remove", packs: ["ComfyUI-RMBG"], roles: [] },
} as const;
@@ -86,9 +86,12 @@ describe("the keying graphs in the library", () => {
it("pins ComfyUI-RMBG at 3.3.0 and records where each new class comes from", () => {
expect(packs["ComfyUI-RMBG"].commit).toBe("a66a5e641a54988d80ed6aad18946081c85f309e");
- expect(packs["ComfyUI-CorridorKeyWrapper"]).toMatchObject({ repo: "https://github.com/pixelworldai/ComfyUI-CorridorKeyWrapper", commit: "7eb44e48c182e81e9dd32024770247d01f1631d3" });
+ expect(packs["ComfyUI-CorridorKey2"]).toMatchObject({ repo: "https://github.com/hashu786/ComfyUI-CorridorKey2", commit: "d1228b68796786acee92b6497f72a60d70d1a844" });
for (const c of ["AILab_VRMBG", "AILab_FeyNoBg"]) expect(subset[c]?.python_module).toBe("custom_nodes.ComfyUI-RMBG");
- for (const c of ["LoadCorridorKeyModel", "ChromaKeyPrepass", "CorridorKeyGreenscreen"]) expect(subset[c]?.python_module).toBe("custom_nodes.ComfyUI-CorridorKeyWrapper");
+ expect(subset.CorridorKey2?.python_module).toBe("custom_nodes.ComfyUI-CorridorKey2");
+ // CorridorKey 2.0, not the v1.0 wrapper's classes: the matte, the despilled foreground over black and the straight RGBA.
+ expect(subset.CorridorKey2?.output).toEqual(["IMAGE", "MASK", "IMAGE", "IMAGE", "IMAGE"]);
+ for (const c of ["LoadCorridorKeyModel", "ChromaKeyPrepass", "CorridorKeyGreenscreen"]) expect(subset[c]).toBeUndefined();
});
it("states each model's licence and download plainly: CorridorKey's paid-API rule, VRMBG's gate, FeyNoBg unknown", () => {
@@ -100,7 +103,12 @@ describe("the keying graphs in the library", () => {
const vrmbg = manifest.workflows.find((x) => x.id === "video-matte-vrmbg3")!;
expect(vrmbg.models).toEqual([expect.objectContaining({ file: "VRMBG-3.0/model.safetensors", folder: "RMBG", gated: true })]);
expect(requirements.workflows["video-matte-vrmbg3"].files).toEqual(["RMBG/VRMBG-3.0/model.safetensors"]);
- expect(requirements.workflows["video-key-corridorkey"].firstRun.join(" ")).toMatch(/CorridorKey_v1\.0\.pth/);
+ expect(requirements.workflows["video-key-corridorkey"].firstRun.join(" ")).toMatch(/corridorkey_v2\.safetensors \(2\.66 GB\)/);
+ // As Settings → Models & licences shows them: CorridorKey's own licence by name, FeyNoBg as not recorded.
+ expect(licenceInfo(workflowLicence({ id: "video-key-corridorkey", license: lic("video-key-corridorkey") }))).toMatchObject({ name: "Corridor Key Licence 2.0", class: "conditions", url: expect.stringContaining("nikopueringer/CorridorKey2.0") });
+ expect(licenceInfo(workflowLicence({ id: "image-matte-feynobg", license: lic("image-matte-feynobg") }))).toMatchObject({ name: "Not recorded", class: "unknown" });
+ expect(licenceInfo("CC BY-NC-SA 4.0 (weights: NON-COMMERCIAL)")).toMatchObject({ name: "CC BY-NC-SA 4.0", class: "non-commercial" });
+ expect(NODE_PACKS.find((p) => p.name === "ComfyUI-CorridorKey2")?.licence).toMatchObject({ name: "Corridor Key Licence 2.0", class: "conditions" });
expect(requirements.workflows["image-matte-feynobg"].firstRun.join(" ")).toMatch(/FeyNobg\.safetensors/);
});
});
@@ -115,7 +123,7 @@ describe("the green-screen key on your GPU", () => {
expect(batched.sort()).toEqual(["1", "7", "9"]);
const prepared = await prepareWorkflow("video-key-corridorkey", { video: "/clip.mp4", matteOutput: "cutout" } as GenInput, ctx("bg-remove-video"));
expect(prepared.meta.metaBatch).toBe(true);
- expect(prepared.workflow["2"].inputs.frames_per_batch).toBe(32);
+ expect(prepared.workflow["2"].inputs.frames_per_batch).toBe(48);
});
it("keeps the output asked for, and writes the cut-out as WebM, ProRes 4444 with alpha or EXR frames", async () => {
@@ -128,13 +136,12 @@ describe("the green-screen key on your GPU", () => {
const exr = await prepare("video-key-corridorkey", { matteOutput: "cutout", format: "exr" });
expect(Object.keys(exr).filter((k) => ["7", "9", "11"].includes(k)).sort()).toEqual(["11", "7"]);
expect(exr["11"].inputs).toMatchObject({ format: "exr", "format.bit_depth": "16-bit float", "format.input_color_space": "sRGB" });
- // The clean foreground leaves through the cut-out's encoder: the keyer's despilled colours as H.264 with the sound.
- const fg = await prepare("video-key-corridorkey", { matteOutput: "foreground", extra: { despill: 2, screenColor: "blue" } });
+ // The clean foreground leaves through the cut-out's encoder: the keyer's despilled colours over black as H.264 with the sound.
+ const fg = await prepare("video-key-corridorkey", { matteOutput: "foreground", extra: { despill: 0.8 } });
expect(Object.keys(fg).filter((k) => ["7", "9", "11"].includes(k))).toEqual(["7"]);
- expect(fg["7"].inputs).toMatchObject({ images: ["6", 1], format: "video/h264-mp4", pix_fmt: "yuv420p", audio: ["1", 2] });
+ expect(fg["7"].inputs).toMatchObject({ images: ["6", 2], format: "video/h264-mp4", pix_fmt: "yuv420p", audio: ["1", 2] });
await expect(prepare("video-matte-vrmbg3", { matteOutput: "foreground" })).rejects.toThrow(/doesn't make a clean foreground/);
- expect(fg["6"].inputs.despill_strength).toBe(2);
- expect(fg["5"].inputs.screen_color).toBe("blue");
+ expect(fg["6"]).toMatchObject({ class_type: "CorridorKey2", inputs: { despill_strength: 0.8, gamma_space: "sRGB", window: "auto" } });
// ProRes and EXR carry the cut-out with its alpha, not the mask.
await expect(prepare("video-key-corridorkey", { matteOutput: "matte", format: "prores_4444" })).rejects.toThrow(/ProRes 4444 is for the cut-out/);
// Without a format the EXR frames are never written.
diff --git a/workflows/comfyui/manifest.json b/workflows/comfyui/manifest.json
index e3c3b74d..af08fc69 100644
--- a/workflows/comfyui/manifest.json
+++ b/workflows/comfyui/manifest.json
@@ -1,6 +1,6 @@
{
"version": 1,
- "generatedAt": "2026-11-02T11:08:12.191Z",
+ "generatedAt": "2026-11-02T21:13:53.012Z",
"comfyuiCommit": "fc04da91b2ab12f99e4716371a7e4f98ac982597",
"comfyuiVersion": "0.41.0",
"workflowTemplatesVersion": "0.11.86",
@@ -9664,7 +9664,7 @@
},
{
"id": "video-key-corridorkey",
- "title": "Green-screen key: CorridorKey (v1.0 weights) with despill, transparent WebM / ProRes 4444 / EXR, in passes (ComfyUI-CorridorKeyWrapper + VHS)",
+ "title": "Green-screen key: CorridorKey 2.0 with despill, transparent WebM / ProRes 4444 / EXR, in passes (ComfyUI-CorridorKey2 + VHS)",
"capability": "bg-remove-video",
"file": "video-key-corridorkey.json",
"source": "hand-built (scripts/comfy/hand-built/video-key-corridorkey.json)",
@@ -9681,12 +9681,6 @@
"input": "frames_per_batch"
}
],
- "screenColor": [
- {
- "node": "5",
- "input": "screen_color"
- }
- ],
"despill": [
{
"node": "6",
@@ -9738,9 +9732,8 @@
}
],
"defaults": {
- "framesPerBatch": 32,
- "screenColor": "green",
- "despill": 1,
+ "framesPerBatch": 48,
+ "despill": 0.5,
"format": "video/webm",
"profile": "4444"
},
@@ -9751,8 +9744,8 @@
"models": [],
"customNodes": [
{
- "name": "ComfyUI-CorridorKeyWrapper",
- "repo": "https://github.com/pixelworldai/ComfyUI-CorridorKeyWrapper/tree/7eb44e48c182e81e9dd32024770247d01f1631d3"
+ "name": "ComfyUI-CorridorKey2",
+ "repo": "https://github.com/hashu786/ComfyUI-CorridorKey2/tree/d1228b68796786acee92b6497f72a60d70d1a844"
},
{
"name": "ComfyUI-VideoHelperSuite",
@@ -9760,14 +9753,13 @@
}
],
"vramGb": 6,
- "license": "CorridorKey v1.0 weights: Corridor Key Licence 1.0 (CC BY-NC-SA 4.0 with added terms: free for any lawful use including commercial projects, and what you make is yours; it may NOT be offered as a paid API or inference service, nor repackaged or sold; a commercial software package needs a written agreement with Corridor Digital); its Hugging Face repo is tagged CC BY-NC-SA 4.0, the licence the added terms build on. The wrapper has no LICENSE file.",
+ "license": "CorridorKey 2.0 weights: Corridor Key Licence 2.0 (CC BY-NC-SA 4.0 with added terms: free for any lawful use including commercial projects, and what you make is yours; it may NOT be offered as a paid API or inference service, nor resold or repackaged; derivatives stay under the same licence; a commercial software package needs a written agreement with Corridor Digital; organisations above US$20M revenue need a seat per user). The frozen models it builds on keep their own licences: NVIDIA C-RADIOv4-SO400M (NVIDIA Open Model License), Microsoft MoGe-2 ViT-B (MIT), Google DeepMind RVM small (CC-BY 4.0). The ComfyUI nodes (hashu786/ComfyUI-CorridorKey2) are under the same Corridor Key Licence 2.0.",
"validated": false,
- "notes": "VHS_LoadVideo decodes framesPerBatch frames per pass (VHS_BatchManager, 32 by default) and the three VHS_VideoCombine encodes stay open across passes, so memory stays flat on a long clip. ChromaKeyPrepass makes a coarse alpha hint from the screen colour (screenColor green | blue; threshold 0.3, softness 0.1, erode 2, blur 5), then CorridorKeyGreenscreen (despill 1.0, refiner on, auto-despeckle 400 px, input sRGB) gives the alpha, the despilled sRGB foreground and the straight RGBA. Roles: node 7 cutout (the RGBA as a transparent WebM, VP9 yuva420p, with the clip's sound; params.format prores_4444 switches it to video/ProRes profile 4444, which VHS writes as yuva444p10le with alpha), node 9 matte (the alpha as an H.264 MP4), node 11 frames (the RGBA as half-float OpenEXR, input sRGB -> scene-linear, one file a frame). params.matteOutput keeps cutout or matte; \"foreground\" keeps node 7 fed from the keyer's despilled foreground (output 1) as H.264 with sound instead. Node 11 stays only for params.format exr, with the cut-out as its preview, and Fuobe zips the frames onto it. CorridorKey 2.0 (nikopueringer/CorridorKey2.0, corridorkey_v2.safetensors 2.66 GB, cf44a8db) runs only in Corridor's own engine: no ComfyUI wrapper loads it yet (checked 2026-11-02), so this graph runs v1.0 and 2.0 waits for a wrapper. NVIDIA RTX 30-series or newer; Corridor gives 4 GB up to 1440p and 6 GB for 4K for 2.0. The wrapper's classes are recorded from its source at the pinned commit.",
+ "notes": "VHS_LoadVideo decodes framesPerBatch frames per pass (VHS_BatchManager, 48 by default) and the three VHS_VideoCombine encodes stay open across passes, so memory stays flat on a long clip. CorridorKey2 (hashu786/ComfyUI-CorridorKey2, which vendors Corridor's CorridorKey 2.0 code unmodified at 485f5e9) keys each pass as one clip at native resolution, with overlapping temporal Hann windows (window auto: the largest that fits the free VRAM) and no hint, so the model picks the subject; despill 0.5 (Corridor's default), input sRGB. Each pass starts its temporal context afresh. Only the outputs a node reads are computed. Roles: node 7 cutout (output 4, the despilled straight RGBA, as a transparent WebM, VP9 yuva420p, with the clip's sound; params.format prores_4444 switches it to video/ProRes profile 4444, which VHS writes as yuva444p10le with alpha), node 9 matte (output 1 as an H.264 MP4), node 11 frames (the RGBA as half-float OpenEXR, input sRGB -> scene-linear, one file a frame, in every pass). params.matteOutput keeps cutout or matte; \"foreground\" feeds node 7 the despilled foreground premultiplied over black (output 2) as H.264 with sound instead. Node 11 stays only for params.format exr, with the cut-out as its preview, and Fuobe zips every pass's frames onto it. Corridor's despill takes out green spill: the key is for green screens. NVIDIA CUDA only (RTX 30-series or newer). The node's class is recorded from its source at the pinned commit.",
"autoDownloads": [
- "LoadCorridorKeyModel downloads CorridorKey_v1.0.pth (0.40 GB, nikopueringer/CorridorKey_v1.0) into models/corridorkey/ as CorridorKey.pth on first run",
- "LoadCorridorKeyModel pip-installs Corridor's v1 engine (corridorkey @ git+https://github.com/nikopueringer/CorridorKey.git) the first time it loads, when it is missing"
+ "CorridorKey2 downloads about 5.1 GB into models/corridorkey2/ on first run: corridorkey_v2.safetensors (2.66 GB) and foundation_stats.safetensors from nikopueringer/CorridorKey2.0 (its main revision, cf44a8db when checked), NVIDIA C-RADIOv4-SO400M @ c0457f5d (1.72 GB), Microsoft MoGe-2 ViT-B @ ca5f0e07 (0.42 GB) and Google DeepMind RVM small (0.27 GB, md5-checked)"
],
- "validationError": "HTTP 400: missing_node_type: Node 'CorridorKey (v1.0 weights, downloaded on first run)' not found. The custom node may not be installed. (Node ID '#4')"
+ "validationError": "HTTP 400: missing_node_type: Node 'CorridorKey 2.0 (weights downloaded on first run): matte, despilled foreground over black, straight RGBA' not found. The custom node may not be installed. (Node ID '#6')"
},
{
"id": "video-depth-da3",
diff --git a/workflows/comfyui/object_info.subset.json b/workflows/comfyui/object_info.subset.json
index eda158e5..e47d9d1f 100644
--- a/workflows/comfyui/object_info.subset.json
+++ b/workflows/comfyui/object_info.subset.json
@@ -3538,90 +3538,6 @@
"model"
]
},
- "ChromaKeyPrepass": {
- "input": {
- "required": {
- "image": [
- "IMAGE"
- ]
- },
- "optional": {
- "screen_color": [
- [
- "green",
- "blue"
- ],
- {
- "default": "green"
- }
- ],
- "threshold": [
- "FLOAT",
- {
- "default": 0.3,
- "min": 0,
- "max": 1,
- "step": 0.01
- }
- ],
- "softness": [
- "FLOAT",
- {
- "default": 0.1,
- "min": 0,
- "max": 0.5,
- "step": 0.01
- }
- ],
- "erode": [
- "INT",
- {
- "default": 2,
- "min": 0,
- "max": 50,
- "step": 1
- }
- ],
- "blur": [
- "INT",
- {
- "default": 5,
- "min": 0,
- "max": 50,
- "step": 1
- }
- ]
- }
- },
- "input_order": {
- "required": [
- "image"
- ],
- "optional": [
- "screen_color",
- "threshold",
- "softness",
- "erode",
- "blur"
- ]
- },
- "is_input_list": false,
- "output": [
- "MASK"
- ],
- "output_is_list": [
- false
- ],
- "output_name": [
- "alpha_hint"
- ],
- "name": "ChromaKeyPrepass",
- "display_name": "Chroma Key Prepass",
- "description": "Fast chroma key pre-pass that generates a coarse alpha hint from green/blue screen footage.",
- "python_module": "custom_nodes.ComfyUI-CorridorKeyWrapper",
- "category": "CorridorKey",
- "output_node": false
- },
"ClothesSegment": {
"input": {
"required": {
@@ -4342,77 +4258,115 @@
"clear conditioning"
]
},
- "CorridorKeyGreenscreen": {
+ "CorridorKey2": {
"input": {
"required": {
- "ck_model": [
- "CK_MODEL"
- ],
"image": [
- "IMAGE"
+ "IMAGE",
+ {}
],
- "alpha_hint": [
- "MASK"
- ]
- },
- "optional": {
- "despill_strength": [
+ "gamma_space": [
+ [
+ "sRGB",
+ "Linear"
+ ],
+ {}
+ ],
+ "hint_quality": [
"FLOAT",
{
- "default": 1,
- "min": 0,
- "max": 10,
- "step": 0.1
+ "default": 0.95,
+ "min": 0.0,
+ "max": 1.0,
+ "step": 0.01
}
],
- "refiner_scale": [
+ "carry_hint": [
+ "BOOLEAN",
+ {
+ "default": true
+ }
+ ],
+ "carry_hint_quality": [
"FLOAT",
{
- "default": 1,
- "min": 0,
- "max": 2,
- "step": 0.05
+ "default": 0.95,
+ "min": 0.0,
+ "max": 1.0,
+ "step": 0.01
}
],
- "auto_despeckle": [
- "BOOLEAN",
+ "despill_strength": [
+ "FLOAT",
{
- "default": true
+ "default": 0.5,
+ "min": 0.0,
+ "max": 1.0,
+ "step": 0.01
}
],
- "despeckle_size": [
- "INT",
+ "window": [
+ [
+ "auto",
+ "80/40",
+ "48/24",
+ "24/12",
+ "8/4",
+ "4/2",
+ "2/1",
+ "1/1"
+ ],
{
- "default": 400,
- "min": 0,
- "max": 10000,
- "step": 50
+ "default": "auto"
}
],
- "input_is_linear": [
+ "low_vram": [
"BOOLEAN",
{
"default": false
}
+ ],
+ "unload_other_models": [
+ "BOOLEAN",
+ {
+ "default": true
+ }
+ ]
+ },
+ "optional": {
+ "mask": [
+ "MASK",
+ {}
]
+ },
+ "hidden": {
+ "unique_id": "UNIQUE_ID",
+ "prompt": "PROMPT"
}
},
"input_order": {
"required": [
- "ck_model",
"image",
- "alpha_hint"
+ "gamma_space",
+ "hint_quality",
+ "carry_hint",
+ "carry_hint_quality",
+ "despill_strength",
+ "window",
+ "low_vram",
+ "unload_other_models"
],
"optional": [
- "despill_strength",
- "refiner_scale",
- "auto_despeckle",
- "despeckle_size",
- "input_is_linear"
+ "mask"
+ ],
+ "hidden": [
+ "unique_id",
+ "prompt"
]
},
"is_input_list": false,
"output": [
+ "IMAGE",
"MASK",
"IMAGE",
"IMAGE",
@@ -4422,18 +4376,20 @@
false,
false,
false,
+ false,
false
],
"output_name": [
- "alpha",
- "foreground",
- "processed_rgba",
- "comp_preview"
+ "fg",
+ "matte",
+ "processed",
+ "QC",
+ "cutout"
],
- "name": "CorridorKeyGreenscreen",
- "display_name": "CorridorKey Greenscreen",
- "description": "Neural network greenscreen keying. Produces a clean alpha matte, despilled sRGB foreground, straight sRGB RGBA, and a checkerboard composite preview.",
- "python_module": "custom_nodes.ComfyUI-CorridorKeyWrapper",
+ "name": "CorridorKey2",
+ "display_name": "CorridorKey 2.0",
+ "description": "CorridorKey 2.0 neural green/blue screen keyer. Works with no hint, a single first-frame hint mask, or one hint mask per frame. Runs at native resolution with temporal Hann windows across the whole batch.",
+ "python_module": "custom_nodes.ComfyUI-CorridorKey2",
"category": "CorridorKey",
"output_node": false
},
@@ -12776,59 +12732,6 @@
"essentials_category": null,
"has_intermediate_output": false
},
- "LoadCorridorKeyModel": {
- "input": {
- "required": {},
- "optional": {
- "precision": [
- [
- "auto",
- "fp16",
- "fp32"
- ],
- {
- "default": "auto"
- }
- ],
- "use_refiner": [
- "BOOLEAN",
- {
- "default": true
- }
- ],
- "mixed_precision": [
- "BOOLEAN",
- {
- "default": true
- }
- ]
- }
- },
- "input_order": {
- "required": [],
- "optional": [
- "precision",
- "use_refiner",
- "mixed_precision"
- ]
- },
- "is_input_list": false,
- "output": [
- "CK_MODEL"
- ],
- "output_is_list": [
- false
- ],
- "output_name": [
- "ck_model"
- ],
- "name": "LoadCorridorKeyModel",
- "display_name": "Load CorridorKey Model",
- "description": "Load the CorridorKey GreenFormer neural network model for greenscreen keying.",
- "python_module": "custom_nodes.ComfyUI-CorridorKeyWrapper",
- "category": "CorridorKey",
- "output_node": false
- },
"LoadDA3Model": {
"input": {
"required": {
@@ -21869,7 +21772,7 @@
"default": 0.7,
"min": 0.01,
"max": 2,
- "step": 0.000001
+ "step": 1e-06
}
],
"top_k": [
@@ -26362,7 +26265,7 @@
"default": 0.5,
"min": 0,
"max": 1,
- "step": 1e-9
+ "step": 1e-09
}
],
"fy": [
@@ -26372,7 +26275,7 @@
"default": 0.5,
"min": 0,
"max": 1,
- "step": 1e-9
+ "step": 1e-09
}
],
"cx": [
diff --git a/workflows/comfyui/packs.json b/workflows/comfyui/packs.json
index 8468b8c1..82b367ff 100644
--- a/workflows/comfyui/packs.json
+++ b/workflows/comfyui/packs.json
@@ -297,13 +297,13 @@
"subdir": null,
"folders": []
},
- "ComfyUI-CorridorKeyWrapper": {
- "repo": "https://github.com/pixelworldai/ComfyUI-CorridorKeyWrapper",
- "commit": "7eb44e48c182e81e9dd32024770247d01f1631d3",
+ "ComfyUI-CorridorKey2": {
+ "repo": "https://github.com/hashu786/ComfyUI-CorridorKey2",
+ "commit": "d1228b68796786acee92b6497f72a60d70d1a844",
"registry": null,
"requirementsTxt": true,
"isolated": false,
"subdir": null,
- "folders": ["corridorkey"]
+ "folders": ["corridorkey2"]
}
}
diff --git a/workflows/comfyui/requirements.json b/workflows/comfyui/requirements.json
index d90f4c8b..c44b60ea 100644
--- a/workflows/comfyui/requirements.json
+++ b/workflows/comfyui/requirements.json
@@ -1,11 +1,11 @@
{
"v": 1,
- "hash": "93e0e60b660eaf723302440766db76892dd49459f1f33ac9ba1513aaedcb1a3a",
+ "hash": "c8373fd8c3d63f370d73f09c2bfffecd4c185168af9c4068207b94892ab8d776",
"comfyui": {"min":"0.41.0","testedCommit":"fc04da91"},
"folders": ["RMBG","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_FeyNoBg","AILab_Qwen3ASRSubtitle","AILab_Qwen3TTSVoiceClone_Advanced","AILab_Qwen3TTSVoiceDesign_Advanced","AILab_VRMBG","AUSBOSS_NODES_CropForInpaint","AUSBOSS_NODES_ImageCropRotatePad","AUSBOSS_NODES_StitchInpaint","Add Subtitles To Frames","Apply Whisper","CFGOverride","ChromaKeyPrepass","ClothesSegment","ComfyMathExpression","CorridorKeyGreenscreen","CropFuobeLive","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","LTXAddVideoICLoRAGuide","LTXICLoRALoaderModelOnly","LTXVAddGuide","LTXVAudioVAEDecode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVDualCFGGuider","LTXVEmptyLatentAudio","LTXVImgToVideoInplace","LTXVLatentUpsampler","LTXVPreprocess","LTXVScheduler","LTXVSeparateAVLatent","LTXVTiledFusionSampler","LatentSyncNode","LoadBackgroundRemovalModel","LoadCorridorKeyModel","LoadImageFuobeLive","LoadVideoDepthAnythingModel","MMAudioFeatureUtilsLoader","MMAudioModelLoader","MMAudioSampler","MelBandRoFormerModelLoader","MelBandRoFormerSampler","MiniMaxH3TurboLoRA","MiniMaxH3TurboSampler","MultiTalkModelLoader","MultiTalkWav2VecEmbeds","OpenH3RegenFastVAEDecode","OpenH3RegenFinish","OpenH3RegenLora","OpenH3RegenPrepareDraft","OpenH3RegenRefineLatent","OpenH3RegenSigmas","OpenH3RegenUpscale","OpenH3SaveRefinedLatent","PasteBackFuobeLive","Qwen21EncodeFuobeLive","Qwen21ReferenceFuobeLive","QwenImage21Cache","REUSEEnhance","REUSELoader","RIFE VFI","RMBG","ReActorFaceSwap","RemoveBackground","SAM3_Detect","SAM3_TrackToMask","SAM3_VideoTrack","SaveImageFuobeLive","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","VoxCPM2_Clone","VoxCPM2_TTS","WanVideoBlockSwap","WanVideoClipVisionEncode","WanVideoDecode","WanVideoEncode","WanVideoImageToVideoMultiTalk","WanVideoLoraSelect","WanVideoModelLoader","WanVideoPassImagesFromSamples","WanVideoSampler","WanVideoTextEncodeCached","WanVideoVAELoader","ZenImage21AdapterLoader","ZenImage21TextEncode"],
+ "sentinels": ["AILab_FeyNoBg","AILab_Qwen3ASRSubtitle","AILab_Qwen3TTSVoiceClone_Advanced","AILab_Qwen3TTSVoiceDesign_Advanced","AILab_VRMBG","AUSBOSS_NODES_CropForInpaint","AUSBOSS_NODES_ImageCropRotatePad","AUSBOSS_NODES_StitchInpaint","Add Subtitles To Frames","Apply Whisper","CFGOverride","ClothesSegment","ComfyMathExpression","CorridorKey2","CropFuobeLive","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","LTXAddVideoICLoRAGuide","LTXICLoRALoaderModelOnly","LTXVAddGuide","LTXVAudioVAEDecode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVDualCFGGuider","LTXVEmptyLatentAudio","LTXVImgToVideoInplace","LTXVLatentUpsampler","LTXVPreprocess","LTXVScheduler","LTXVSeparateAVLatent","LTXVTiledFusionSampler","LatentSyncNode","LoadBackgroundRemovalModel","LoadImageFuobeLive","LoadVideoDepthAnythingModel","MMAudioFeatureUtilsLoader","MMAudioModelLoader","MMAudioSampler","MelBandRoFormerModelLoader","MelBandRoFormerSampler","MiniMaxH3TurboLoRA","MiniMaxH3TurboSampler","MultiTalkModelLoader","MultiTalkWav2VecEmbeds","OpenH3RegenFastVAEDecode","OpenH3RegenFinish","OpenH3RegenLora","OpenH3RegenPrepareDraft","OpenH3RegenRefineLatent","OpenH3RegenSigmas","OpenH3RegenUpscale","OpenH3SaveRefinedLatent","PasteBackFuobeLive","Qwen21EncodeFuobeLive","Qwen21ReferenceFuobeLive","QwenImage21Cache","REUSEEnhance","REUSELoader","RIFE VFI","RMBG","ReActorFaceSwap","RemoveBackground","SAM3_Detect","SAM3_TrackToMask","SAM3_VideoTrack","SaveImageFuobeLive","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","VoxCPM2_Clone","VoxCPM2_TTS","WanVideoBlockSwap","WanVideoClipVisionEncode","WanVideoDecode","WanVideoEncode","WanVideoImageToVideoMultiTalk","WanVideoLoraSelect","WanVideoModelLoader","WanVideoPassImagesFromSamples","WanVideoSampler","WanVideoTextEncodeCached","WanVideoVAELoader","ZenImage21AdapterLoader","ZenImage21TextEncode"],
"packs": {
- "ComfyUI-CorridorKeyWrapper": {"repo":"https://github.com/pixelworldai/ComfyUI-CorridorKeyWrapper","commit":"7eb44e48c182e81e9dd32024770247d01f1631d3","classes":["ChromaKeyPrepass","CorridorKeyGreenscreen","LoadCorridorKeyModel"],"folders":["corridorkey"],"isolated":false,"requirementsTxt":true,"install":"manual"},
+ "ComfyUI-CorridorKey2": {"repo":"https://github.com/hashu786/ComfyUI-CorridorKey2","commit":"d1228b68796786acee92b6497f72a60d70d1a844","classes":["CorridorKey2"],"folders":["corridorkey2"],"isolated":false,"requirementsTxt":true,"install":"manual"},
"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"},
"ComfyUI-HunyuanVideo-Foley": {"repo":"https://github.com/phazei/ComfyUI-HunyuanVideo-Foley","commit":"afd2960b8ad9036a9f55a15daf514112ff68e010","registry":{"id":"ComfyUI-HunyuanVideo-Foley","version":""},"classes":["HunyuanDependenciesLoader","HunyuanFoleySampler","HunyuanModelLoader"],"folders":["foley"],"isolated":false,"requirementsTxt":true,"install":"manual"},
@@ -424,7 +424,7 @@
"video-inpaint-wan-vace": {"core":["CLIPLoader","CLIPTextEncode","CheckpointLoaderSimple","ComfyMathExpression","CreateVideo","GetImageSize","GetVideoComponents","GrowMask","ImageCompositeMasked","ImageFromBatch","ImageScale","ImageToMask","InvertMask","KSampler","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-inpaint-wan-vace-painted": {"core":["CLIPLoader","CLIPTextEncode","CheckpointLoaderSimple","ComfyMathExpression","CreateVideo","GetImageSize","GetVideoComponents","GrowMask","ImageCompositeMasked","ImageFromBatch","ImageScale","ImageToMask","InvertMask","KSampler","LoadImageMask","LoadVideo","LoraLoaderModelOnly","MaskToImage","ModelSamplingSD3","PrimitiveFloat","PrimitiveInt","SAM3_TrackToMask","SAM3_VideoTrack","SaveImage","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-insert-wan-vace": {"core":["CLIPLoader","CLIPTextEncode","ComfyMathExpression","CreateVideo","GetImageSize","GetVideoComponents","GrowMask","ImageCompositeMasked","ImageFromBatch","ImageScale","ImageToMask","InvertMask","KSampler","LoadImage","LoadImageMask","LoadVideo","LoraLoaderModelOnly","MaskToImage","ModelSamplingSD3","PrimitiveFloat","PrimitiveInt","RepeatImageBatch","SaveVideo","TrimAudioDuration","TrimVideoLatent","UNETLoader","VAEDecode","VAELoader","Video Slice","WanVaceToVideo"],"packs":{"ComfyUI-KJNodes":["GrowMaskWithBlur"]},"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_fp8_e4m3fn_scaled.safetensors","vae/wan_2.1_vae.safetensors"],"optional":[],"vramGb":24,"isolated":false,"firstRun":[],"validated":true},
- "video-key-corridorkey": {"core":["MaskToImage","SaveImageAdvanced"],"packs":{"ComfyUI-CorridorKeyWrapper":["ChromaKeyPrepass","CorridorKeyGreenscreen","LoadCorridorKeyModel"],"ComfyUI-VideoHelperSuite":["VHS_BatchManager","VHS_LoadVideo","VHS_VideoCombine","VHS_VideoInfo"]},"files":[],"optional":[],"vramGb":6,"isolated":false,"firstRun":["LoadCorridorKeyModel downloads CorridorKey_v1.0.pth (0.40 GB, nikopueringer/CorridorKey_v1.0) into models/corridorkey/ as CorridorKey.pth on first run","LoadCorridorKeyModel pip-installs Corridor's v1 engine (corridorkey @ git+https://github.com/nikopueringer/CorridorKey.git) the first time it loads, when it is missing"]},
+ "video-key-corridorkey": {"core":["MaskToImage","SaveImageAdvanced"],"packs":{"ComfyUI-CorridorKey2":["CorridorKey2"],"ComfyUI-VideoHelperSuite":["VHS_BatchManager","VHS_LoadVideo","VHS_VideoCombine","VHS_VideoInfo"]},"files":[],"optional":[],"vramGb":6,"isolated":false,"firstRun":["CorridorKey2 downloads about 5.1 GB into models/corridorkey2/ on first run: corridorkey_v2.safetensors (2.66 GB) and foundation_stats.safetensors from nikopueringer/CorridorKey2.0 (its main revision, cf44a8db when checked), NVIDIA C-RADIOv4-SO400M @ c0457f5d (1.72 GB), Microsoft MoGe-2 ViT-B @ ca5f0e07 (0.42 GB) and Google DeepMind RVM small (0.27 GB, md5-checked)"]},
"video-mask-h3-relay": {"core":["CLIPTextEncode","CheckpointLoaderSimple","CreateVideo","GetImageSize","GetVideoComponents","ImageBatch","ImageFromBatch","ImageScale","LoadVideo","MaskToImage","SAM3_Detect","SAM3_TrackToMask","SAM3_VideoTrack","SaveVideo","Video Slice"],"packs":{"h3-relay":["H3RelayPrepareSource","H3RelayRecoverMasks","H3RelaySelectMask"]},"files":["checkpoints/sam3.1_multiplex_fp16.safetensors"],"optional":[],"vramGb":6,"isolated":false,"firstRun":[]},
"video-matte-vrmbg3": {"core":["CreateVideo","GetVideoComponents","LoadVideo","SaveImageAdvanced","SaveVideo"],"packs":{"ComfyUI-RMBG":["AILab_VRMBG"],"ComfyUI-VideoHelperSuite":["VHS_VideoCombine"]},"files":["RMBG/VRMBG-3.0/model.safetensors"],"optional":[],"vramGb":6,"isolated":false,"firstRun":[]},
"video-mux-audio": {"core":["AudioAdjustVolume","AudioMerge","ConcatenateVideo","EmptyAudio","LoadAudio","LoadVideo","SaveVideo"],"packs":{},"files":[],"optional":[],"vramGb":0,"isolated":false,"firstRun":[],"validated":true},
diff --git a/workflows/comfyui/video-key-corridorkey.json b/workflows/comfyui/video-key-corridorkey.json
index 026632d5..30150fc3 100644
--- a/workflows/comfyui/video-key-corridorkey.json
+++ b/workflows/comfyui/video-key-corridorkey.json
@@ -22,7 +22,7 @@
"2": {
"class_type": "VHS_BatchManager",
"inputs": {
- "frames_per_batch": 32
+ "frames_per_batch": 48
},
"_meta": {
"title": "Meta batch: re-queue every framesPerBatch frames (memory stays flat)"
@@ -40,57 +40,24 @@
"title": "Source frame rate"
}
},
- "4": {
- "class_type": "LoadCorridorKeyModel",
- "inputs": {
- "precision": "auto",
- "use_refiner": true,
- "mixed_precision": true
- },
- "_meta": {
- "title": "CorridorKey (v1.0 weights, downloaded on first run)"
- }
- },
- "5": {
- "class_type": "ChromaKeyPrepass",
- "inputs": {
- "image": [
- "1",
- 0
- ],
- "screen_color": "green",
- "threshold": 0.3,
- "softness": 0.1,
- "erode": 2,
- "blur": 5
- },
- "_meta": {
- "title": "Coarse alpha hint from the screen colour"
- }
- },
"6": {
- "class_type": "CorridorKeyGreenscreen",
+ "class_type": "CorridorKey2",
"inputs": {
- "ck_model": [
- "4",
- 0
- ],
"image": [
"1",
0
],
- "alpha_hint": [
- "5",
- 0
- ],
- "despill_strength": 1,
- "refiner_scale": 1,
- "auto_despeckle": true,
- "despeckle_size": 400,
- "input_is_linear": false
+ "gamma_space": "sRGB",
+ "hint_quality": 0.95,
+ "carry_hint": true,
+ "carry_hint_quality": 0.95,
+ "despill_strength": 0.5,
+ "window": "auto",
+ "low_vram": false,
+ "unload_other_models": true
},
"_meta": {
- "title": "CorridorKey: alpha, despilled foreground, straight RGBA"
+ "title": "CorridorKey 2.0 (weights downloaded on first run): matte, despilled foreground over black, straight RGBA"
}
},
"7": {
@@ -98,7 +65,7 @@
"inputs": {
"images": [
"6",
- 2
+ 4
],
"audio": [
"1",
@@ -132,7 +99,7 @@
"inputs": {
"mask": [
"6",
- 0
+ 1
]
},
"_meta": {}
@@ -171,7 +138,7 @@
"inputs": {
"images": [
"6",
- 2
+ 4
],
"filename_prefix": "fuobe/video-key-corridorkey",
"format": "exr",