CivArchive
    Krea2 Inpaint&Edit - Krea2 Inpaint&Edit v2.0
    NSFW
    Preview 138039233

    CHANGELOG:

    v2.0 Rebuild — LanPaint Context Sampling

    • Added LanPaint KSampler with context-aware “thinking” iterations.

    • Replaced the empty latent with:
      VAEEncode → SetLatentNoiseMask → LanPaint KSampler.

    • Improved continuity with textures, lighting, perspective and nearby geometry.

    • Increased Crop & Stitch context factor from 1.5 to 2.0.

    • Kept Krea2 Identity Edit v1.2 grounded image conditioning.

    • Kept identity fidelity controls and optional second-reference mode.

    • Preserves the original image dimensions.

    • Pixels outside the stitched mask remain unchanged.

    • Removed the need for a separate LanPaint blend node to avoid double blending.

    • Added workflow notes explaining LanPaint settings and A/B testing.

    Krea2 Inpaint&Edit v2.0 is a complete rebuild focused on improving contextual inpainting.

    The previous version used Krea2 Identity Edit to regenerate a cropped area before stitching it back into the original image. While this worked well for many local edits, difficult masks could sometimes lose nearby texture, perspective, lighting or structural context.

    This version adds LanPaint as the sampling system.

    Instead of beginning from an empty latent, the workflow now VAE-encodes the original crop, applies the cropped mask as a latent noise mask, and lets LanPaint condition the generated area using the surrounding known pixels.

    The resulting pipeline is:

    Mask → Crop with context → Krea2 Identity Edit → LanPaint sampling → Stitch back

    This is particularly useful for:

    • Continuing textures or line art through a mask.

    • Reconstructing walls, fabric or backgrounds.

    • Replacing objects while respecting nearby perspective.

    • Maintaining surrounding shadows and lighting.

    • Editing connected clothing, hair or geometry.

    The workflow still uses Crop & Stitch, so the edited region is returned to its original location and canvas size. Areas outside the final blend remain part of the untouched source image.

    LanPaint officially supports Krea2 and works similarly to a regular ComfyUI sampler, but its extra thinking iterations require more processing time.

    Required custom nodes

    Optional

    ComfyUI-TrixLoader (https://github.com/trx7111/ComfyUI-TrixLoader)

    Recommended only for its enhanced mask editor. The workflow itself still uses ComfyUI’s native LoadImage node.


    Performance note: LanPaint is slower than the original standard-sampler version because it performs additional conditional sampling iterations. Keep v1.0 available as a lighter legacy option for simple recolors and quick edits.



    Hey everyone, I've been messing around with Krea2 and the community Identity Edit LoRA so this is my first workflow that I'm sharing publicly. I'm still pretty new to ComfyUI, so it’s probably not the most optimized or the "best" way to do this. But it worked well for me, so I figured I'd upload it in case it helps someone else.

    Basically, this uses a manual inpainting approach. You have to load your image, open the mask editor, and draw the mask yourself over the exact area you want to change. The workflow then forces Krea 2 to only generate inside that mask, leaving the rest of the original image completely untouched at the pixel level.

    I threw in a few extra things to make it easier to use:

    • A node to automatically detect the size of your input image, so you don't have to manually type in the width and height.

    • A mask expanding node so you can feather the edges a bit. If the model keeps making the object bigger when you just want to change its color, I recommend lowering the "expand" number or even using a negative number.

    • rgthree's Power Lora Loader so you can stack the Identity Edit LoRA with more LoRAs.

    • An image comparer node so you can slide back and forth between the original and the edit.


    A quick tip: when prompting, using words like "recolor" instead of "change" helps prevent the model from redrawing the shape and making it larger than it should be.

    Feel free to tweak it, break it, or let me know what I could have done better. Still learning :p

    Description

    Hey everyone! This is v2.5 of Krea2 Inpaint&Edit, a workflow for making precise, instruction-based edits inside a manually painted mask while preserving the rest of the original image.

    This version has been rebuilt around the latest Krea2 Identity Edit v1.2 workflow and now integrates Inpaint Crop & Stitch. Instead of processing the entire image and compositing the result afterward, the workflow crops the masked region with surrounding context, runs Krea2 Identity Edit on that crop, and stitches it back into the original image.

    The goal is to make local edits more reliable, reduce unnecessary generation, preserve the unmasked pixels, and improve identity and composition consistency.

    What’s new in v2.0

    • Added InpaintCropImproved and InpaintStitchImproved from ComfyUI-Inpaint-CropAndStitch.

    • Updated the Krea2 Identity Edit section to the newer v1.2 fidelity workflow.

    • Added optional second-reference editing, useful for inserting a person or object into another image.

    • Reorganized the workflow into clearer groups with built-in instructions.

    • Fixed duplicated and invalid links from the previous workflow.

    Custom nodes

    Required

    comfyui-krea2edit

    Used for:

    • Krea2EditGroundedEncode

    • Krea2EditModelPatch

    This provides image-grounded instruction encoding and the Identity Edit model patch.

    ComfyUI-Inpaint-CropAndStitch

    Used for:

    • InpaintCropImproved

    • InpaintStitchImproved

    This crops the masked region with context, processes it at a controlled resolution, and stitches the result back into the untouched source image.

    rgthree-comfy

    Used for:

    • Image Comparer (rgthree)

    This lets you slide between the original image and the final edit.

    Optional

    ComfyUI-TrixLoader

    Recommended only for its enhanced mask editor. The workflow itself still uses ComfyUI’s native LoadImage node.

    FAQ

    Comments (4)

    waterchoochoo974Jul 29, 2026
    CivitAI

    Hoping you have an answer. LoadCLIP does not recognize Krea2 as a value on the list for "type". I've seen this in all the workflows I try to image edit with Krea2. Any idea on how to make this node recognize that value?

    lvperka
    Author
    Jul 29, 2026· 1 reaction

    which version of ComfyUI core do you have? Native Krea 2 support was added in ComfyUI v0.26.0, so if Krea2 is missing from the Load CLIP/CLIPLoader type list, your ComfyUI backend is probably older than that version. It has nothing to do with custom nodes.

    waterchoochoo974Jul 29, 2026· 1 reaction

    @lvperka That did it. I really thought I had all things updated. Just needed to ask somebody and that did it I guess lol. Thank you!

    lvperka
    Author
    Jul 29, 2026

    @waterchoochoo974 that's nice, you're welcome. Always keep your comfyui and nodes updated.

    Workflows
    Krea 2

    Looks like we don't have an active mirror for this file right now.

    CivArchive is a community-maintained index — we catalog mirrors that volunteers upload to HuggingFace, torrents, and other public hosts. Looks like no one has uploaded a copy of this file yet.

    Some files do get recovered over time through contributions. If you're looking for this one, feel free to ask in Discord, or help preserve it if you have a copy.

    Details

    Downloads
    277
    Platform
    CivitAI
    Platform Status
    Deleted
    Created
    7/28/2026
    Updated
    7/31/2026
    Deleted
    7/29/2026

    Files

    krea2InpaintEdit_krea2InpaintEditV20.json