Nodes/ComfyUI-Koolook/Koolook Matte — Focus Crop
ComfyUI Node

Koolook Matte — Focus Crop

A ComfyUI node in Koolook Matte with 5 inputs and 3 outputs.

By malkuthro·Created 11 months ago·Updated 22 days ago· 7
Koolook Matte — Focus Crop
  • images
  • coarse_mask
  • cropped_images
  • cropped_mask
  • focus
padding24
max_long_side2560
enabledtrue
CategoryKoolook Matte

Inputs (5)

NameTypeDefaultDescription
imagesIMAGE
coarse_maskMASK
paddingINT240–1024Pixels of margin around the subject's union bounding box. Give thin appendages (claws, tails) room so they fall INSIDE the crop, otherwise they can't be recovered downstream.
max_long_sideINT25600–8192VRAM safety cap: if the native crop's LONGEST side exceeds this, downscale the crop to fit (aspect kept). Never upscales. This same cropped image feeds BOTH the segmentation and the matte model, so it bounds the area both process. 0 = no cap (native crop). 2560 comfortably fits a 24GB card.
enabledBOOLEANtrueMaster toggle for the focused two-pass. ON = crop to the subject, process at native res, stitch back. OFF = pass the FULL frame straight through unchanged (identity focus), so the downstream seg/matte run single-pass full-frame. Promote this to a subgraph to get a one-click two-pass switch.

Outputs (3)

NameTypeDescription
cropped_imagesIMAGE
cropped_maskMASK
focusFOCUS