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.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| model | MODEL | Krea 2 (Turbo). The LoRA and patches are added for this node only. | |
| clip | CLIP | Krea 2 text encoder (Qwen3-VL 4B, CLIP type krea2). | |
| vae | VAE | โ | |
| image | IMAGE | โ | |
| mask | MASK | White = 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. | |
| prompt | STRING | Describe 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. | |
| lora | COMBO | yijunwang2's krea2_anypaint_rank32 (models/loras). Applied at lora_strength for this node only. | |
| lora_strength | FLOAT | 1.000โ2 | 1.0 is what it was trained for. |
| seed | INT | 00โ18446744073709550000 | โ |
| steps | INT | 81โ100 | 8 (Krea 2 Turbo). The keep is exact with euler. |
| sampler_name | COMBO | euler | euler is what AnyPaint was trained and tested with; the keep step is exact only for euler. |
| scheduler | COMBO | simple | simple, as in the reference. |
| crop_to_mask | BOOLEAN | true | On: a small mask is redrawn in its own crop, scaled up to inpaint_resolution (more detail). Off: the whole picture at inpaint_resolution. |
| padding | INT | 1280โ2048 | Context around the mask when cropping (px). More = the model sees more of the scene. |
| inpaint_resolution | INT | 1024256โ2048 | Size 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_px | INT | 320โ128 | Border around the mask the model redraws to blend the seam (in redraw pixels). 32 = the reference. |
| vlm_reference | BOOLEAN | true | Show the reference to the text encoder too. On = the reference recipe. |
| composite | COMBO | keep original | keep 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)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | Your picture with the masked area painted. |
| mask | MASK | Where it was pasted back (soft edge). |