CivArchive
    ComfyUI — Inpainting XL/15/P/IL - v5
    NSFW
    Preview 37664752
    Preview 37665114
    Preview 37665476
    Preview 37665563
    Preview 37665733

    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

    v5
    — full rework combining the previous versions' strengths
    — flexible batch inpainting via loop process
    — custom node pack changes :
    + : ComfyUI-Allor, ComfyUI-Custom-Scripts, ComfyUI-Image-Saver, ComfyUI-Impact-Pack, ComfyUI_Comfyroll_CustomNodes, ComfyUI_essentials, ComfyUI_LayerStyle, cg-image-picker, execution-inversion-demo-comfyui
    - : ComfyUI-Easy-Use, ComfyUI-mxToolkit, ComfyUI-Inpaint-CropAndStitch, comfyui-inpaint-nodes

    FAQ

    Comments (12)

    akvofplNov 5, 2024· 3 reactions
    CivitAI

    Even after installing missing nodes, there are still a few modules not loading:

    workflow>Crop Labeling

    workflow>Clipboard

    workflow>Inpainting - AIO II

    workflow>Checkpoint Loader AIO

    Where did you get them from and where can I find them?

    akvofplNov 5, 2024

    So, I found them in my ComfyUI, but they don't load into your workflow automatically, so I had to insert them myself and set up links to other nodes. And of course, this leads to an error.

    File “<unknown>”, line 0

    SyntaxError: invalid syntax

    RedPinkRetro
    Author
    Nov 5, 2024

    @akvofpl hey there, that does look like a custom node pack is not working properly.

    1.) Did you go through these instructiongs to install the execution-inversion pack?

    In case of "execution-inversion-demo-comfyui" you need to set the "Channel" setting to "Channel: dev". (Found in the top left of the ComfyUI Manager Menu)
    → Do not forget to turn the channel setting back to default again afterwards


    2.) Does the console log on startup of Comfy show any (IMPORT FAILED) messages next to any custom node packs?


    About adding them manually. Unfortunately Comfy does not save the values I created the group nodes with, so they all reset when you add them manually. I hide a lot of values that I use for processing or ones that can be kept static to keep them from cluttering up the node. All those get "hidden values" get reset as well, breaking the group node.
    Group nodes really could use some love in terms of convenience. Sorry you are facing issues with that.

    If the above steps do not help, feel free to send me your comfy startup console log, so I can look for issues.
    You can just https://wormhole.app/ the .txt file 👌

    akvofplNov 5, 2024· 1 reaction

    @redpinkretro never mind, I figured out that if you replace those nodes manually and then reload original workflow, it works as intended.

    akvofplNov 5, 2024· 1 reaction

    @redpinkretro I'm testing your workflow rn and another issue I found out is randomizing seeds doesn't work properly, even if I set "Seed Everywhere" to "randomize", 7 images of my batch of 8 are the same.

    akvofplNov 5, 2024· 1 reaction

    @redpinkretro Aaaand another thing I want to say :)
    The rule that the mask should be in one piece makes this workflow barely usable for me. In the older version I used to put small dot apart from base mask to create a working area, otherwise model is working only with the base mask part, leaving the other context behind. Now I can't do that.

    RedPinkRetro
    Author
    Nov 5, 2024· 1 reaction

    @akvofpl Very helpful to know that! Thank you! This might help a lot of users with that issue 👌🙏

    RedPinkRetro
    Author
    Nov 5, 2024· 1 reaction

    @akvofpl Looking into the randomization not working right away. And I will see if I can get that annoying limitation with the mask out the way somehow without losing the "batch-ability"
    Thank you for the input! 👌

    RedPinkRetro
    Author
    Nov 6, 2024· 1 reaction

    @akvofpl The random seed issue is fixed and multi-part masks are no problem anymore 👌

    akvofplNov 6, 2024· 1 reaction

    @redpinkretro you're the best, did you know that?

    RedPinkRetro
    Author
    Nov 6, 2024

    @akvofpl Glad to help, thank you so much 🙏

    togowolf562Apr 21, 2025

    @akvofpl Thanx for this, I had the same problem now, spent ages trying everything including re-adding the nodes manually and getting the same invalid syntax you did, then simply closed and reloaded the original workflow and it worked (I'm surprised restarting Comfy and reloading the interface didn't fix this)

    Workflows
    SDXL 1.0

    Details

    Downloads
    148
    Platform
    CivitAI
    Platform Status
    Available
    Created
    11/1/2024
    Updated
    5/13/2026
    Deleted
    -

    Files

    comfyuiInpaintingXL15_v5.zip

    Mirrors

    HuggingFace (1 mirrors)
    CivitAI (1 mirrors)