ComfyUI Node
Koolook Matte — Focus Crop
A ComfyUI node in Koolook Matte with 5 inputs and 3 outputs.
Koolook Matte — Focus Crop
- images
- coarse_mask
- cropped_images
- cropped_mask
- focus
◄padding24►
◄max_long_side2560►
◄enabledtrue►
CategoryKoolook Matte
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| images | IMAGE | — | |
| coarse_mask | MASK | — | |
| padding | INT | 240–1024 | Pixels 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_side | INT | 25600–8192 | VRAM 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. |
| enabled | BOOLEAN | true | Master 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)
| Name | Type | Description |
|---|---|---|
| cropped_images | IMAGE | — |
| cropped_mask | MASK | — |
| focus | FOCUS | — |