CivArchive
    ComfyUI — Inpainting XL/15/P/IL - v6
    NSFW
    Preview 38572253
    Preview 38572417
    Preview 38572819

    Hello there and thanks for checking out this workflow!

    What's new in v12? : Fixes and SubGraphs compatible with the latest ComfyUI Updates!

    Purpose

    This workflow provides a simple, solid and reliable way to efficiently inpaint images to perfection!

    I hope this proves to be a useful tool to you!

    Features

    • LoRA support

    • Batch Processing

    • Flexible Before/After Preview for any batch size and mask amount

    • Image Filter to cherry pick

    • Tutorial guide for nodes and settings in dedicated ►INFO boxes

    Common Issues

    • ValueError: Width and height must be >= 0
      → Make sure you masked an area on the node named "Mask"

    Custom Nodes

    All of which can be installed through the ComfyUI-Manager


    Troubleshooting

    1. If nodes show up red (failing to load), check the 'Install Missing Custom Nodes' tab of the ComfyUI Manager for the missing node packs and install them.

    2. Please check if all custom node packs load properly after installing, i.e. no (IMPORT FAILED) messages next to any of them in the console upon ComfyUI startup.

    3. Always reload/drag'n'drop the original, downloaded workflow file into ComfyUI to reload an intact version of the workflow.

      → The last opened workflow that appears on startup shows a cached version of the workflow, "remembering" group nodes that failed due to missing nodes as failed, keeping them broken even after having everything installed correctly.


    Thanks

    The workflow would not be possible as is without these custom node packs. If you want to support the custom node creators, give them a ⭐ on their github repos! Thank you!


    Feel free to ask any questions, share improvements or suggestions in the comment section!
    Also let me know if you encounter any confusing points I can elaborate on and focus on improving for the next update!

    Description

    v6
    — implemented multi-mask inpainting with batches
    — fixed seed randomization for batches outputting same values
    — included resolution settings for preview thumbnails
    — small structural changes
    — custom node pack changes :
    + : ComfyUI_Fill-Nodes

    v6.1
    — fixed critical scheduler issue

    FAQ

    Comments (12)

    MegaMitsuDec 20, 2024· 1 reaction
    CivitAI

    Everything is installed, but nodes are still missing.

    The nodes were installed manually from the notes, but not all the nodes were included in the notes.

    --Update--

    The Workflow is working, it just requires to be refreshed.

    RedPinkRetro
    Author
    Dec 20, 2024

    Hey there, glad it works!
    Yeah, Comfy saves a cached version of the last opened workflow, which, in case of failing-to-load group nodes especially, results in them being saved as dysfunctional group nodes, so they won't ever load regardless of node pack installation.
    That's why the original file, with intact group node names, has to be reloaded in those cases.

    AndyParkKoreaJan 11, 2025· 1 reaction
    CivitAI

    I realized something when I checking your WF out then I heard sound like someone whispering "You cannot reach this guy level, you newbie" in my ears.

    RedPinkRetro
    Author
    Jan 15, 2025

    Hey there, thank you for the praise! But don't be discouraged, you really just gotta start somewhere. My first upload was the Model Compare workflow, which was far from being this compacted and polished.

    Personal preference is a huge factor as well. This is just the way I like to work, but anyone with a different approach builds different workflows with similar purposes that might be more intuitive or appealing to use for some.
    I think all the different workflow builders on here have their own priorities and styles, which ultimately helps more users to give Comfy a try. And the more you use it and the more workflows you build, the more insights you gain about all sorts of different ways to solve problems, basically resulting in your workflow skills leveling up 👌

    devishmJan 15, 2025· 2 reactions
    CivitAI

    Hey, my result(clipspace), crop before after and before after all three are showing blank, basically the result section is showing blank ,the inpainting is working and preview chooser is working

    RedPinkRetro
    Author
    Jan 15, 2025· 2 reactions

    Hey there, thanks for pointing that out! That is caused by a discrepency between scheduler lists resulting in two nodes within the "Inpainting — AIO" group node to no longer connect internally.
    I'm on it 👌

    RedPinkRetro
    Author
    Jan 15, 2025· 2 reactions

    Fixed in 6.1

    devishmJan 16, 2025· 1 reaction

    @redpinkretro Thank you so much

    One more thing in the inpainting AIO node the sampling settings should be according to the model we are using or should leave it untouched

    RedPinkRetro
    Author
    Jan 16, 2025

    @devishm Most welcome

    I am not sure what you mean in regards to the sampling settings though. They need to be set somewhere and adjustable based on preference and use case.

    devishmJan 16, 2025

    @redpinkretro every checkpoint has different samplers/cfg/steps which works best for those specific checkpoints right, so like if I am using a Illus checkpoint should I change the sampler and cfg and other settings in the inpainting node or no need to change those, I might be asking a dumb question if I am then sorry

    RedPinkRetro
    Author
    Jan 16, 2025· 2 reactions

    @devishm Yes, exactly. There are even multiple combinations usually working for each checkpoint and some of which might behave a little quirky in some way, like outputting more grainy, or painterly or desaturated results etc.
    So you should definitely adjust the settings and see what works best for you. It's just another sampling process after all, just with a masked area to be integrated into the existing image.
    As for Illustrious I can't give you any pointers, as I have not used it at all, but I remember that Pony models had some difficulties with inpainting at first (maybe even still), so in case you can't find good settings with an Illustrious model, it might behave similar.

    devishmJan 16, 2025· 2 reactions

    Thank you so much

    Workflows
    SDXL 1.0

    Details

    Downloads
    619
    Platform
    CivitAI
    Platform Status
    Available
    Created
    11/6/2024
    Updated
    5/13/2026
    Deleted
    -

    Files

    comfyuiInpaintingXL15_v6.zip

    Mirrors

    HuggingFace (1 mirrors)
    CivitAI (1 mirrors)

    comfyuiInpainting_v6.zip

    Mirrors

    CivitAI (1 mirrors)