Nodes/comfyui-fvmtools/K2 Edit Latent
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.

By ping1979ping·Created 5 months ago·Updated 21 days ago· 0
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)

NameTypeDefaultDescription
imageIMAGESource image to edit.
vaeVAEVAE used to encode the source.
latent_featherINT640–512Soft collar around each edit box in pixels.
grow_pxINT0-256–512Expand every edit box before masking.
edit_entire_imageBOOLEANfalseIgnores the boxes and edits everything. Only for intentional whole-scene changes.
regionsoptK2_REGIONEdit boxes. Alternatively connect a plan or an explicit mask.
planoptK2_PLANUses the region layout of a compiled plan.
maskoptMASKExplicit mask; overrides regions/plan.

Outputs (4)

NameTypeDescription
latentLATENT
edit_maskMASK
sourceIMAGE
infoSTRING