ComfyUI Node
K2 Edit Latent
Encodes a source image and builds the latent denoise mask for regional editing: only the selected region boxes are re-denoised, everything else keeps its original latent. latent_feather is the transition collar used DURING denoising — it lets the model blend structure around the edit instead of meeting a hard latent boundary. The final pixel-level protection is done by K2 Edit Composite. Start with low denoise on the sampler plus the default feather; if a seam is visible, widen the feather or enlarge the box rather than raising denoise.
K2 Edit Latent
- image
- vae
- regions
- plan
- mask
- latent
- edit_mask
- source
- info
◄latent_feather64►
◄grow_px0►
◄edit_entire_imagefalse►
CategoryFVM Tools/K2
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | Source image to edit. | |
| vae | VAE | VAE used to encode the source. | |
| latent_feather | INT | 640–512 | Soft collar around each edit box in pixels. |
| grow_px | INT | 0-256–512 | Expand every edit box before masking. |
| edit_entire_image | BOOLEAN | false | Ignores the boxes and edits everything. Only for intentional whole-scene changes. |
| regionsopt | K2_REGION | Edit boxes. Alternatively connect a plan or an explicit mask. | |
| planopt | K2_PLAN | Uses the region layout of a compiled plan. | |
| maskopt | MASK | Explicit mask; overrides regions/plan. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| latent | LATENT | — |
| edit_mask | MASK | — |
| source | IMAGE | — |
| info | STRING | — |