ComfyUI Node

CorridorKey

Refines a coarse per-frame alpha hint into CorridorKey FG, Matte, Processed, and QC passes. The alpha hint should be rough, slightly eroded, and soft rather than tightly expanded.

By SeanBRVFX·Created 5 months ago·Updated 5 months ago· 47
CorridorKey
  • image
  • mask
  • fg
  • matte
  • processed
  • QC
gamma_space
despill_strength1.00
refiner_strength1.0
auto_despeckle
despeckle_size400
CategoryCorridorKey

Inputs (7)

NameTypeDefaultDescription
imageIMAGEInput RGB image or image batch to refine.
maskMASKCoarse Alpha Hint for the current frame. Keep it rough, soft, and slightly eroded. For batched images, provide one matching mask per frame.
gamma_spaceCOMBOInterpret the incoming image as sRGB or already-linear before the fixed 2048x2048 inference pass.
despill_strengthFLOAT1.000–1Green despill amount after inference. 0 disables despill, 1 is the standard default. Higher values are stronger and can push heavy spill toward magenta or purple.
refiner_strengthFLOAT1.00–4Scales the learned refiner delta. 1.0 is the standard default behavior.
auto_despeckleCOMBOEnable connected-component cleanup on the predicted alpha matte.
despeckle_sizeINT4000–4096Minimum island area in pixels to preserve when auto-despeckle is enabled. 400 is the standard default.

Outputs (4)

NameTypeDescription
fgIMAGERaw straight foreground color. The model predicts this in sRGB space; convert to linear before manual compositing with the matte.
matteMASKRaw linear alpha matte.
processedIMAGELinear foreground premultiplied by the linear matte for quick preview and simple downstream export.
QCIMAGEQC preview composite over a checkerboard in sRGB.