CivArchive
    Preview 2167061
    Preview 2167066

    Inpaint workflow V2

    GUIDE FOR V2 WORKFLOW IS LOCATED HERE

    06/12/2025

    -Added ability to control mask opacity.

    -Changed sampler to prevent problems with generation.

    -Adjusted guide.

    04/12/2025

    -Added ability to do colormatch. Changing colormatch setting to 1 will try to match the color of the image.This is good if using VAE that changes color between encode/decode cycle or using different lora/model.


    Older:

    -Added differential diffusion

    -Cleaned the workflow

    -Created guide which can be found HERE

    -This should work with 1.5 too, did not test.

    Inpaint workflow XL V1.1

    Due to request updated to work with XL. It is somewhat barebones compared to 1.5. Does not have segmentation or controlnet models currently.

    I have a bit outdated comfyui, let me know if it is throwing some errors.

    Description

    • Cleared some unused nodes for slightly faster generation

    FAQ

    Comments (13)

    MatrixRageAug 23, 2023
    CivitAI

    Thanks for taking the time to tackle a well laid out inpaint. I know this is a work in progress from watching your video, but its well laid out, and helps beginners like me immensely.

    PotatCat
    Author
    Aug 23, 2023

    Good to know it is useful for someone (~ ̄▽ ̄)~

    erwinoAug 24, 2023
    CivitAI

    Even after installing alle the 5 extra modules, 2 nodes are missing:
    Mask Paste Region

    Mask Crop Region
    thank you

    SaboLSep 24, 2023

    Were you ever able to figure this out? I'm having the exact same problem

    iamahfazSep 12, 2023
    CivitAI

    Great workflow that I've been using for a while now. But recently I'm getting an error whenever I use LORA.

    Here's the error I get:

    "name 'model_lora_keys_unet' is not defined"

    I don't get this error in any other workflow when I use LORA.

    PotatCat
    Author
    Sep 12, 2023

    Hmm interesting. If it is the lora stacker causing the problem, you could try to change it to another lora loader. Gotta check when i have time and remember.

    Good to know someone is using it (~ ̄▽ ̄)~

    iamahfazSep 12, 2023

    @Potatovision The problem seems to emerge in the efficient loader because that's when I get the error.

    PotatCat
    Author
    Oct 18, 2023· 1 reaction

    Updated with new refined version, took while to have time to check around

    drziad_salih250Sep 26, 2023
    CivitAI

    When loading the graph, the following node types were not found:

    Mask Paste Region

    Mask Crop Region

    Nodes that have failed to load will show as red on the graph.

    t_dSep 30, 2023
    CivitAI

    Keep getting:

    object of type 'int' has no len() File "D:\Comfy\ComfyUI_windows_portable\ComfyUI\execution.py", line 152, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "D:\Comfy\ComfyUI_windows_portable\ComfyUI\execution.py", line 96, in get_output_data output_is_list = [False] * len(results[0])

    Am I just an idiot?

    annOct 17, 2023

    I have the exact same problem. The question that matters is the only one that doesn't get answered. My fucking god!!

    PotatCat
    Author
    Oct 17, 2023

    Sorry i have not had much time to play around with inpainting, have picked it up again lately and figured better way to do it. I'll try to update with better workflow soonish.

    PotatCat
    Author
    Oct 18, 2023

    @ann Updated with more refined workflow

    Workflows
    SD 1.5

    Details

    Downloads
    737
    Platform
    CivitAI
    Platform Status
    Available
    Created
    8/23/2023
    Updated
    5/25/2026
    Deleted
    -

    Files

    comfyuiInpaint_v109.zip

    Mirrors

    HuggingFace (1 mirrors)
    CivitAI (1 mirrors)