Nodes/ComfyUI_LC_MaskMaker_nodes/LC Krea2 AnyPaint ๐Ÿฉน
ComfyUI Node

LC Krea2 AnyPaint ๐Ÿฉน

Inpaint and outpaint for Krea 2 with yijunwang2's AnyPaint LoRA, done the way it was trained: a whole-canvas reference, the kept pixels put back after every step, and a border the model blends. Your picture outside the mask comes back unchanged. Describe the whole finished picture in the prompt. Outpaint: wire LC Outpaint's control_image and control_mask in.

By lonecatone23ยทCreated 16 days agoยทUpdated about 16 hours agoยท 1
LC Krea2 AnyPaint ๐Ÿฉน
  • model
  • clip
  • vae
  • image
  • mask
  • image
  • mask
โ—„promptโ–บ
โ—„loraโ–บ
โ—„lora_strength1.00โ–บ
โ—„seed0โ–บ
โ—„steps8โ–บ
โ—„sampler_nameeulerโ–บ
โ—„schedulersimpleโ–บ
โ—„crop_to_masktrueโ–บ
โ—„padding128โ–บ
โ—„inpaint_resolution1024โ–บ
โ—„boundary_px32โ–บ
โ—„vlm_referencetrueโ–บ
โ—„compositekeep originalโ–บ
CategoryLC MaskMaker/inpaint

Inputs (18)

NameTypeDefaultDescription
modelMODELKrea 2 (Turbo). The LoRA and patches are added for this node only.
clipCLIPKrea 2 text encoder (Qwen3-VL 4B, CLIP type krea2).
vaeVAEโ€”
imageIMAGEโ€”
maskMASKWhite = paint, black = keep. Optional: no mask with LC Outpaint's canvas uses its mask. Wire LC Outpaint's control_image as the image and control_mask as the mask to outpaint.
promptSTRINGDescribe the WHOLE finished picture, not just the change: "a woman in a red coat on a snowy street". Removal-only prompts ("remove the car") tend to leave a flat blob.
loraCOMBOyijunwang2's krea2_anypaint_rank32 (models/loras). Applied at lora_strength for this node only.
lora_strengthFLOAT1.000โ€“21.0 is what it was trained for.
seedINT00โ€“18446744073709550000โ€”
stepsINT81โ€“1008 (Krea 2 Turbo). The keep is exact with euler.
sampler_nameCOMBOeulereuler is what AnyPaint was trained and tested with; the keep step is exact only for euler.
schedulerCOMBOsimplesimple, as in the reference.
crop_to_maskBOOLEANtrueOn: a small mask is redrawn in its own crop, scaled up to inpaint_resolution (more detail). Off: the whole picture at inpaint_resolution.
paddingINT1280โ€“2048Context around the mask when cropping (px). More = the model sees more of the scene.
inpaint_resolutionINT1024256โ€“2048Size of the redraw (as an area: 1024 = about 1 MP). AusBoss found above about 1.6 MP Krea 2 starts to crease limbs and darken skies.
boundary_pxINT320โ€“128Border around the mask the model redraws to blend the seam (in redraw pixels). 32 = the reference.
vlm_referenceBOOLEANtrueShow the reference to the text encoder too. On = the reference recipe.
compositeCOMBOkeep originalkeep original = only the painted area (soft edge, colour fixed) is pasted back: everything else is exactly your picture. raw = the model's whole redraw of the crop.

Outputs (2)

NameTypeDescription
imageIMAGEYour picture with the masked area painted.
maskMASKWhere it was pasted back (soft edge).