Unlock Seamless Image Inpainting with FLUX and Differential Diffusion

CN
ComfyUI.org
2025-03-26 11:42:51

1. Workflow Overview

m8putx2emk1cdbxiv44d1d572526ffbf3573cf30fe2fcc583ea28d7e6d6380e3ca92e2dc0d547ed5ba.gif

Specialized for seamless inpainting with:

  • FLUX fp8 low-precision models

  • Differential Diffusion for edge blending

  • Dual CLIP encoders integration

  • Built-in image comparison

2. Core Models

Model

Purpose

Flux Fill dev - fp8

Official inpainting model

clip_l + t5xxl_fp8

Dual-text encoder

ae.sft

Special VAE

3. Key Components

Critical Nodes:

  1. DifferentialDiffusion

    • Feature: Auto-edge blending

    • Default: No manual adjustment needed

  2. FluxGuidance

    • Unique: FLUX-specific CFG control

    • Tip: Keep scale=30 for best results

4. Processing Flow

graph LR
    A[Masked Image] --> B(Aspect Ratio Fix)
    B --> C[Dual Encoding]
    C --> D[Diffusion Process]
    D --> E[Output Comparison]

5. I/O Specifications

Input:

{
    "mask": "Transparent PNG",
    "prompt": "English only",
    "resolution": "Auto-1024px"
}

Output:

  • Interactive before/after slider

  • Metadata-preserved output

6. Pro Tips

  1. For perfect results:

    • Use feather-edged masks

    • Keep original lighting direction

  2. When troubleshooting:

    • Color shifts β†’ Verify VAE loading

    • Artifacts β†’ Enable DifferentialDiffusion