CivArchive
    Preview 47078869
    Preview 47072912
    Preview 47072932

    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

    -Added differential diffusion

    -Cleaned the workflow

    -Created guide which can be found HERE

    FAQ

    Comments (50)

    GarudoGAIDec 24, 2024· 3 reactions
    CivitAI

    Thanks again for your amazing workflows! 👍

    PotatCat
    Author
    Dec 24, 2024

    (~ ̄▽ ̄)~ Thanks. Feedback welcome if you find something problematic

    babaffDec 27, 2024· 2 reactions
    CivitAI

    I tried this workflow and it works great

    PotatCat
    Author
    Dec 27, 2024

    Glad to know (~ ̄▽ ̄)~ Let me know if you have some ideas for improvements

    goldenluluzDec 28, 2024· 1 reaction
    CivitAI

    I like your workflow. I am inpaint anime characters and I want to know is there a way to make the skin color more align to the original one.

    goldenluluzDec 28, 2024

    I am using 2.02, I can't get 3.1 to work, it says ScheduleToCond is missing.

    PotatCat
    Author
    Dec 28, 2024

    @goldenluluz Hey, test if the new XL one works with 1.5.

    goldenluluzDec 29, 2024

    @PotatCat Hello, I am using the XL V2 version with NoobAI now, and it is perfect, thank you for working!

    PotatCat
    Author
    Dec 29, 2024

    @goldenluluz (~ ̄▽ ̄)~

    goldenluluzJan 7, 2025

    I heard that if you use ip-adapter, you can transfer the style from the original picture to the generated picture. Have you considered adding ip-adapter controlnet into your workflow?

    PotatCat
    Author
    Jan 7, 2025· 1 reaction

    @goldenluluz It's been a while since i played around with ip-adapter, gotta see if i can find time and interest to do that. Tho i am not sure if there is much use for it in inpainting. 🤔

    devishmJan 15, 2025· 1 reaction
    CivitAI

    Hey I was trying to remove some jewellery from an an anime character, is there any workaround or like any specific prompt to remove something or if I need to try something else
    Thank you

    PotatCat
    Author
    Jan 15, 2025

    Hey, You should describe in the prompt what you want in the selected part of the image. If it's small part of image, you could try to edit away the jewellery with photo editor like photoshop or krita. Also could try to inpaint it after you have edited the jewellery away, to fix any inconsistency etc..

    devishmJan 15, 2025· 1 reaction

    @PotatCat Thank you

    omgcheesedudeJan 19, 2025· 1 reaction
    CivitAI

    hello im generating these black splodges on the masked area i dont know what im doing wrong

    PotatCat
    Author
    Jan 19, 2025

    Hey, did you check the guide in https://civitai.com/articles/9971 ?

    omgcheesedudeJan 19, 2025

    @PotatCat thanks working

    ThatNewDoodJan 22, 2025· 3 reactions
    CivitAI

    Currently a VAE is required, but I never use VAE in any of my generations.
    How can I disable VAE?

    PotatCat
    Author
    Jan 23, 2025· 1 reaction

    If you want to use the baked in vae from model, you can drag the line from model VAE input into where the one from the vae loader is going. With comfyui you need to have some sort of VAE input.

    ThatNewDoodJan 23, 2025

    @PotatCat Follow-up question because I am not used to ComfyUI.
    Does ComfyUI have a different way of handling models and prompts?

    Because the prompt adherence is awful, it's not doing what I want at all.

    PotatCat
    Author
    Jan 23, 2025

    @ThatNewDood Yes the weighting and normalization works differently on comfyui compared to forge/a1111 for example. Using high weights not really good idea on comfyui.

    NewTesterAI574Apr 13, 2025· 3 reactions
    CivitAI

    Works great!

    PotatCat
    Author
    Apr 14, 2025· 1 reaction

    glad to know (~ ̄▽ ̄)~

    ugintlJun 1, 2025· 2 reactions
    CivitAI

    I have an artwork (a painting). Now I want to create a mockup of living room showing my painting in the frame on the wall.

    I will load the living room image with the empty frame on the wall in the workflow, but how I can input my artwork into the frame on the wall?

    PotatCat
    Author
    Jun 1, 2025

    Tbh, best way to do this would be to edit the painting in the image with photoshop, krita or other image editor.

    I don't know if this workflow is best for doing that, as it has some problems with editing full images, as it needs to cut square from the image.

    DeadEndsWithYouJun 9, 2025· 5 reactions
    CivitAI

    Best inpaint workflow I have used. I keep trying some new ones that pop up but this one by far gives me the best results. Thank you for this, appreciate you!

    PotatCat
    Author
    Jun 10, 2025

    (~ ̄▽ ̄)~Thanks, my goal always was to make it as close as possible to replicate the inpainting from webui like A1111/forge. With the idea of cutting only part of the image you want to inpaint and enlarging it to 1024x1024 for better result.

    ChertiloJun 9, 2025· 3 reactions
    CivitAI

    Doesn't work with latest version of ComfyUI. 😔 Missing Node Types CR Apply LoRA Stack. Error Import Failed in Comfyroll Studio node.

    PotatCat
    Author
    Jun 10, 2025

    Uh oh, always changing something and breaking my workflows ;( You can replace the lora nodes with another. Just follow the line from lora stacker and replace the CR Apply Lora stack with another lora loader. I am using quite old comfyui currently and usually only update when there is something worth to update for.

    PotatCat
    Author
    Jun 11, 2025

    @Rev34 Mine is quite old at this point. ### ComfyUI Revision: 2946 [9f4b181a] *DETACHED | Released on '2024-12-18'

    Pretty sure it works with some newer one.

    ChertiloJun 13, 2025

    @PotatCat But I don't know what and how to replace CR Apply LoRA Stack with, I'm not that experienced in this. And the new version of ComfyUI is extremely important to me because of Chroma (a game changer in the field of generations, which can soon displace all other models).

    PotatCat
    Author
    Jun 13, 2025· 1 reaction

    @Chertilo You can replace it with basic "load lora" or any other lora loader. https://i.imgur.com/qlyNhYK.png fast paint paste on what you need to rewire.

    ChertiloJun 15, 2025

    @PotatCat Thank you very much. 😊 Now everything works. 😊

    PotatCat
    Author
    Jun 15, 2025

    @Chertilo (~ ̄▽ ̄)~

    TesterBesterJun 17, 2025

    Works even with the LoRA stack loader, if you adjust the number of "lora_count" argument from "9" to "3".

    ChertiloJun 17, 2025

    @TesterBester Can you show a screenshot of how you connected LoRA Stack node after deleting the non-working CR Apply LoRA Stack node?

    TesterBesterJun 18, 2025

    @Chertilo I did not change any connections at all from the given example. I just set the "lora_count" value to "3" (from 9) and it worked. You can still use the exact same "lora stacker" node.

    PotatCat
    Author
    Jun 19, 2025

    Finally went around and updated everything. Seems like the maximum lora count has been reduced to 3 on the stacker for some reason.

    PotatCat
    Author
    Jun 19, 2025· 1 reaction

    Created fixed version with another lora loader.

    ChertiloJun 20, 2025

    @PotatCat Thank you very much.😊

    @TesterBester With the CR Apply LoRA Stack node, your method didn't work in my case, as it still reported an error with it.🤔 https://postimg.cc/gallery/tsnvBLD

    However, all this is now absolutely unimportant. 😌

    OliverAntheiaJun 14, 2025· 2 reactions
    CivitAI

    Hey, I have a question, I see some people use controlnet for inpainting, this workflow doesn't use the controlnet inpainter, I don't understand the differences between your method and the controlnet one? This one https://civitai.com/models/1376234?modelVersionId=1555027

    PotatCat
    Author
    Jun 14, 2025· 1 reaction

    Hey. Controlnet inpainting can help keeping the composition and reduce "bad" inpaints. When i created this workflow there was no tile/inpaint controlnets for XL that could help with inpainting. I have gotten several request on to implement controlnet support. I'll put that on my list to do.

    The workflow uses differential diffusion that helps with inconsistency thanks to ability to do alpha opacity masks and it seemed to be enough to reduce the inconsistency of inpainting with higher denoise, so i did not implement controlnet into the workflow back then.

    Also the inpainting model you linked, i personally noticed some odd color shifting. I recommend the noob tile model over the inpainting model personally. With start 0, end 0.25-0.4 of the controlnet. Depending on how much you want to change the image.

    Don't know if i exactly answered your question. Basically controlnet is extra tool that can help with results.

    OliverAntheiaJun 14, 2025

    @PotatCat 
    Yes, you absolutely answered my question! Thanks a lot. I'm fairly new to this, so I have trouble understanding how half the things work, and the differences between all the options I keep finding. Thanks for the explanation and the tips!
    I'm also learning how to properly use your regional prompter, so far it's working amazing! I will upload some pictures when I am happy with my results.

    PotatCat
    Author
    Jun 14, 2025

    @AciesGecko (~ ̄▽ ̄)~I'll look forward on what you manage to make. Also i don't know how new you are to generation, but will clarify: When you use controlnet model, it will use both the checkpoint and the controlnet model. The controlnet model in simple terms gives "instructions" to the generation.

    TesterBesterJun 17, 2025· 2 reactions
    CivitAI

    Great workflow! Works like a charm on up to date ComfyUI version after adjusting thr "lora_count" value on the LoRA stacker to "3".

    The NoobAI model you suggested in your example did not work that well for me, but (e.g.) the "Smooth Mix Noobai / Illustrious V3" model did the magic.

    Thanks!

    PotatCat
    Author
    Jun 18, 2025

    (~ ̄▽ ̄)~nice to know it is still holding even with small hiccups. Inpaint can be pain sometimes on specific cases and some models can perform better than others. Usually if the are you are inpainting is too "zoomed in" it can be hard to get what you want. Usually increasing padding can help on those cases.

    SexiamJun 18, 2025· 3 reactions
    CivitAI

    Thank you for the XL update. I was running into issues with the previous version when I selected a larger mask area the workflow wouldn't work. I I'm not sure what the issue was. It's like certain size mask interferes with the stitch nodes. It would result in the ksampler not processing the mask region.

    PotatCat
    Author
    Jun 18, 2025· 1 reaction

    It cuts 1:1 ratio from the original image, if the height or width is too small for it to be able to cut 1:1 ratio image it will not work correctly. I did not really find practical solution to this. At that point the best case is to just inpaint with the whole image.

    SexiamJun 19, 2025

    @PotatCat thanks for pointing that out. Is there a setting I could adjust in the workflow that would use the whole image of a section isn't working?

    PotatCat
    Author
    Jun 19, 2025· 1 reaction

    @Sexiam Sorry not in this workflow. and implementing it to this workflow could make it confusing. It is quite simple to do basic inpainting workflow, pretty much only need these apart from normal generation stuff. Using some grow mask/blur will help with the lines too. https://i.imgur.com/Z0WsOq2.png

    Workflows
    Other

    Details

    Downloads
    3,133
    Platform
    CivitAI
    Platform Status
    Available
    Created
    12/23/2024
    Updated
    5/25/2026
    Deleted
    -

    Files

    comfyuiInpaint_xlV2.zip

    Mirrors

    HuggingFace (1 mirrors)
    CivitAI (1 mirrors)