CivArchive
    Preview 42481403
    Preview 42481406
    Preview 42481412
    Preview 42485371
    Preview 42761332

    Since CivitAI is going down THE DRAIN

    I won't be updating this workflow here anymore, and I won't post any more models from now on.

    I hope to find interest from people to keep updating this. Thanks everyone!

    Keep following this workflow development and more on my new Discord server: https://discord.gg/EwKE8KBDqD

    Get new releases from GitHub: https://github.com/diodiogod/Comfy-Inpainting-Works


    Now there is a "simple/compact" version that I will update together with the normal one.
    Read "about this model" on the right panel please!! I recommend reading v6.0, v5.0, v5.1 as well.

    This is a proper inpainting with alimama control-net + Flux Fill + Flux Tools (Depth an Canny) support from V7 and above.

    I try my best to avoid hiding the workflow flow, while balancing keeping it clean and user-friendly.

    This workflow will make sure your image is composited in the end to prevent VAE degradation AND from v5 will make sure your image is a multiple of 8 (so it doesn't get resized by ksampler) at the same time it avoids resizing at all (unless you want to) since resizing will degrade the original image as well.

    For inpainting that leaves a face and changes the whole background and character, Alimama works way better. Alimama also works better for LoRas. Alimama is terrible at outpainting and Flux Fill is amazing. You should test both. My comfyUI OOM or crashes when switching from one to the other IF my system memory page file is not large enough. With a pagefile of 50GB I can freely switch from Flux Fill to normal Flux Dev now.

    It does use a lot of custom nodes to make life easier and workflow cleaner. Use manager to install the missing ones.

    Supports loading of an external mask (need to match the image size) or doing the inpainting within the right-click "Open MaskEditor" on the image itself.

    Supports FILL -the normal fill, like Auto1111- (use FastBypasser - black node)

    Supports area inpaiting x full image inpaiting (use FastBypasser - black node)

    Supports variable denoise (Change denoise on the CONTROL ROOM)

    Supports Negative (use FastBypasser - black node)

    Proper composite so no VAE degradation

    Support for Flux Tools (Depth an Canny) with Alimama

    I added LoRa support and Daemon Detailer support (both are optional)

    Description

    This is kind of a big important update.

    1- I decided to add "fill" (automatic1111 fill) to the outpainted area. It makes no sense to have it black or gray, specially because you might use a lower denoise.

    2- I added "Differential Diffusion" to any model chosen. It is supposed to help any inpainting model, not only Flux Fill. Thanks to @cenor for pointing it out.

    3- I Decided to change how the image is loaded to the workflow. It won't "allow" and will change any image that is not dividable by 8. Why? The ksampler/Vae Encoder would "fix" any image that is not dividable by 8 anyway, which in the end means that compositing would make it misalign/mismatched by some pixels. I don't like that, so it's better to fix the image in the beginning of the workflow. Keep in mind that this will probably change your original image resolution, but not by much, just the closest number divisible by 8. This is all automatic.

    4- So I had to fix outpatining calculation so it will output a final image that is dividable by 8.

    5- I added an option to resize the initial image if you want. Sometimes you want to inpaint an image that is of a HIGH resolution and prefer it resized to a more friendly resolution.

    (!!!) Keep in mind that if you want to inpaint only a part of a giant res image, you CAN. Just DO NOT resize and click on the "localized area inpaitning" on the Control-room. This will make use of the "inpainting crop and stitch nodes".

    6- I added the option to not composite in the end. Keep in mind this is not proper and it's not advisable at all! You should ALWAYS composite at the risk of degrading your whole image if you don't. BUT sometimes you don't care and the image blends does better without it, so here it's the option. It is not in the control-room, you need to do it on the red group.

    7- Added labels and more notes to help understand the workflow

    FAQ

    Workflows
    Flux.1 D

    Details

    Downloads
    278
    Platform
    CivitAI
    Platform Status
    Available
    Created
    11/28/2024
    Updated
    5/12/2026
    Deleted
    -