Nodes/ComfyUI-AusBoss/Edit Lock πŸ†Ž
ComfyUI Node

Edit Lock πŸ†Ž

Keeps every part of your picture that an edit did not change exactly where it was, with the colors it had. Edit models redraw the whole picture, so untouched parts often come back slightly zoomed, shifted or tinted. Put this between the model and the sampler and give it the picture you are editing. It needs no mask: it sees what the edit changes while the picture is made. When the edit changes the whole picture (a new style, new light, new weather) it steps aside. Add Edit Lock Restore πŸ†Ž after the decode to get your own pixels back in the untouched parts.

By ausbossΒ·Created 4 months agoΒ·Updated about 5 hours agoΒ· 163
Edit Lock πŸ†Ž
  • model
  • vae
  • image
  • mask
  • model
  • edit_lock
β—„lockautoβ–Ί
β—„tolerance1.00β–Ί
CategoryπŸ†Ž AusBoss/Image

Inputs (6)

NameTypeDefaultDescription
modelMODELThe edit model. Patch last, after any LoRAs.
vaeVAEThe same VAE the workflow decodes with.
imageIMAGEThe picture you are editing, at the size of the result. Use the same picture the edit model gets.
lockCOMBOautoauto locks the untouched parts and steps aside when the whole picture changes. always locks even then. off does nothing.
toleranceFLOAT1.000.25–4How big a change must be to count as part of the edit. Raise it if the lock lets small unwanted changes through; lower it if it holds back part of your edit.
maskoptMASKOptional. White marks where the edit may happen; everything else is locked. With a mask the node does not look for the change itself.

Outputs (2)

NameTypeDescription
modelMODELThe model with the lock on. Plug it into the sampler.
edit_lockAUSBOSS_EDIT_LOCKWhat the lock kept. Plug it into Edit Lock Restore πŸ†Ž after the decode.