CivArchive
    Soft Inpainting with ComfyUI - v1.0
    Preview 17998740
    Preview 17998739

    Differential diffusion represents a significant improvement in inpainting techniques for AI image generation. This method, now available in native ComfyUI, addresses common issues with traditional inpainting such as harsh edges and inconsistent results.

    The key difference lies in its approach to masking. Instead of binary black and white masks, soft inpainting employs a gradient. This allows for changes to be applied on a per-pixel basis, resulting in smoother transitions between original and edited areas.

    Implementation in ComfyUI requires three main nodes: Gaussian Blur Mask, Differential Diffusion, and Inpaint Model Conditioning (update your ComfyUI if they aren't available). Notably, this technique works with standard generational checkpoints, eliminating the need for specialized inpainting models.

    In practice, differential diffusion offers more control over the editing process. Users can fine-tune the softness of the mask and adjust denoise values to achieve the desired balance between change and preservation. This leads to more natural-looking edits, as demonstrated in tests where elements like glasses were seamlessly added to portraits.

    While it requires some experimentation to master, differential diffusion provides a powerful new tool for AI artists and image editors seeking more precise and realistic results in their inpainting work.

    You can see this workflow demonstrated over on the YouTube channel.

    Description

    FAQ

    Comments (3)

    ZojixSep 3, 2024
    CivitAI

    unfortunetly this method still destroy the inpaint area for me

    JugginsAISep 20, 2024
    CivitAI

    For me the final images are faded and not as contrasty as the original image. I can't determine why or at what point in the workflow this occurs. Anybody else noted faded colouring and contrast between original and inpainted with this workflow? Great workflow apart from that, works brilliantly.

    davosem70898Dec 16, 2025
    CivitAI

    I used the MoP (Mixture of Perverts) DMD model. It works perfectly, but it doesn't want to generate NSFW. What about it, can anyone advise please?

    Workflows
    SDXL 1.0

    Details

    Downloads
    1,072
    Platform
    CivitAI
    Platform Status
    Available
    Created
    7/1/2024
    Updated
    5/12/2026
    Deleted
    -

    Files

    softInpaintingWith_v10-inpainting.zip

    Mirrors