CivArchive
    ComfyUI — Inpainting XL/15/P/IL - v8
    NSFW
    Preview 59715546
    Preview 59715876
    Preview 59716658

    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

    v8
    - upgrade of all guides and ►INFO boxes to markdown 🎉
    - merged loop processing and batch selection into main Inpainting — AIO node
    - fixed a sneaky bug that could affect mask section counting
    - changed seed handling from 'int' to 'number'

    v8.1
    - hotfix for seed generator and process selection nodes

    FAQ

    Comments (15)

    imGazzaMar 1, 2025· 1 reaction
    CivitAI

    Nice job! I'm fine with the process, but I wanted to ask a question about the tools you used to build the workflow. In particular, how could you select colors and apply them only to the title of nodes in Comfy? I have an option for colors when I right-click nodes but the color is applied to the whole node, title and background. Is it a particular extension? Thank you very much!

    RedPinkRetro
    Author
    Mar 1, 2025

    Hey there, glad you like it!

    Yes, I had a node pack that did that, which wasn't updated anymore. So I looked for the next pack that had an implementation of colors, which was the ComfyUI-Custom-Scripts and I modified it a little by extending its coloring capabilities + some qol.

    I did submit a PR to the pack, but Pythongosssss did not yet see/approve it.

    https://github.com/pythongosssss/ComfyUI-Custom-Scripts/pull/433

    Feel free to use and upvote it, if you like, so he will be inclined to see the importance of customization options 😄

    imGazzaMar 2, 2025· 1 reaction

    @RedPinkRetro Woah, nice job! I should start code what I wish on my own too 😂 Pulled the PR and upvoted, hope it will get approved soon! Thank you very much

    RedPinkRetro
    Author
    Mar 4, 2025· 1 reaction

    @imGazza Thank you so much! I had no choice really, as I was so used to the color customization because of the previous pack (which I also modified to do that via PR before 😅)

    Absolutely! Especially expanding on some already existing things is a great way to get started I believe. Analyzing what's there and how it could be changed to do something different, in addition to consulting gpt-4o-mini 😅, it was fairly straightforward.
    Especially when testing it is as easy as restarting Comfy with the changed script and see for yourself.

    imGazzaMar 4, 2025· 1 reaction

    @RedPinkRetro It's funny because I generate images as a creative hobby to evade my regular job as a software developer and in the end I still find myself cloning repos and reading code anyways 😂 Again thank you for your answers ❤

    RedPinkRetro
    Author
    Mar 4, 2025· 1 reaction

    @imGazza Maybe that's some ironic wink of fate to reignite your passion about software dev that brought you on your path 😄

    And professionals like you can help hacks like me by pointing out their mistakes 😅🙏

    akvofplMar 16, 2025· 1 reaction
    CivitAI

    Hi! I can't load the latest version because of two nodes:
    workflow>Process Selection

    workflow>Global Seed Generator
    Could you tell me where they're from?

    RedPinkRetro
    Author
    Mar 16, 2025· 1 reaction

    Hey there! Are you by any chance running a manually set frontend version?

    I ran into this issue myself and it was caused by a bug as those two nodes have no reason to fail loading if the rest of the workflow loads.
    Even restarting could lead to the Seed Generator working every other time. It was weird, but I am running frontend 1.13.4 at the moment without any issues of that sort.

    Inpainting_v8_hotfix

    akvofplMar 16, 2025

    Thanks, it worked!

    RedPinkRetro
    Author
    Mar 16, 2025

    @akvofpl Perfect!

    Did it work by using the frontend version or did you refer to the hotfix? 😅

    To anyone wondering how to set a custom frontend version, in my case it's:


    1. navigate to the "run_nvidia_gpu.bat" file located in the root ComfyUI folder and open with any text editor

    2. add

    --front-end-version Comfy-Org/ComfyUI_frontend@VERSION_NUMBER

    (check ComfyUI_frontend releases)

    So it ends up similar to the following:

    .\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build --front-end-version Comfy-Org/[email protected]
    pause

    Note that it might look different on your end based on the version of ComfyUI you got and whichever further start-up arguments may be present in your case already

    akvofplMar 16, 2025· 1 reaction

    @RedPinkRetro I just updated requirements using pip, after that the latest frontend version installed automatically

    blue_zima_blueMar 24, 2025· 1 reaction
    CivitAI

    workflow>Process Selection

    workflow>Global Seed Generator

    Hi! Getting above errors with new frontend version. Can you suggest alternate node to Process Selection to fix this?

    RedPinkRetro
    Author
    Mar 24, 2025· 1 reaction

    Hey there, that is a weird bug someone else reported as well and I got it, too once.
    But it was fixed by changing the frontend version.

    Due to the ImageChooser node being deprecated as well at this point or maybe next update, I rebuilt the entire workflow and should be updating it with substantial changes shortly anyway. 🙌

    For the time being you could manually change the frontend version to 1.13.4 I believe to get rid of it.
    Just add the following to the run_nvidia_gpu.bat file

    --front-end-version Comfy-Org/[email protected]

    blue_zima_blueMar 24, 2025

    Didn't work. Replaced the Global Seed Generator with Seed Generator. Not sure which node could replace process selection.

    RedPinkRetro
    Author
    Mar 24, 2025

    @blue_zima_blue I uploaded a quick hotfix as v8.1 as a solution until I have v9 ready 👌

    Workflows
    SDXL 1.0

    Details

    Downloads
    392
    Platform
    CivitAI
    Platform Status
    Available
    Created
    2/24/2025
    Updated
    5/13/2026
    Deleted
    -

    Files

    comfyuiInpaintingXL15_v8.zip

    Mirrors

    CivitAI (1 mirrors)

    comfyuiInpaintingXL15_v8.zip

    Mirrors

    HuggingFace (1 mirrors)
    CivitAI (1 mirrors)