ComfyUI Node
TBG Flux2 Differential Diffusion Inpainting
Flux2 differential diffusion inpainting hook. Place this before any sampler. It stores the inpaint mask privately and wraps a SAMPLER so Euler, LCM, DPM++, RES/other custom samplers can delay mask correction until Flux2's sweet spot.
TBG Flux2 Differential Diffusion Inpainting
- model
- latent
- inpaint_mask
- sampler
- model
- latent
- sampler
◄denoise1.00►
◄correction_start_sigma0.63►
CategoryTBG/Sampler
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| model | MODEL | — | |
| latent | LATENT | — | |
| inpaint_mask | MASK | White edits, black preserves, gray values transition progressively over sampler steps. | |
| denoise | FLOAT | 1.000–1 | Differential inpaint timing for this hook, not the downstream sampler's denoise. The downstream sampler may use lower denoise; this value delays preservation inside the wrapped sampler. |
| correction_start_sigma | FLOAT | 0.630–1 | Flux2 sweet spot where mask correction may start. The hook waits until both this sigma and the denoise timing allow correction. |
| sampleropt | SAMPLER | Optional but recommended. Connect any sampler here and use the wrapped sampler output for full Flux2 sweet-spot latent correction with that sampler. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| model | MODEL | — |
| latent | LATENT | — |
| sampler | SAMPLER | — |