Nodes/TBG_Enhanced Tiled Upscaler & Refiner FLUX PRO/TBG Flux2 Differential Diffusion Inpainting
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.

By Ltamann·Created about a year ago·Updated about 16 hours ago· 148
TBG Flux2 Differential Diffusion Inpainting
  • model
  • latent
  • inpaint_mask
  • sampler
  • model
  • latent
  • sampler
denoise1.00
correction_start_sigma0.63
CategoryTBG/Sampler

Inputs (6)

NameTypeDefaultDescription
modelMODEL
latentLATENT
inpaint_maskMASKWhite edits, black preserves, gray values transition progressively over sampler steps.
denoiseFLOAT1.000–1Differential 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_sigmaFLOAT0.630–1Flux2 sweet spot where mask correction may start. The hook waits until both this sigma and the denoise timing allow correction.
sampleroptSAMPLEROptional but recommended. Connect any sampler here and use the wrapped sampler output for full Flux2 sweet-spot latent correction with that sampler.

Outputs (3)

NameTypeDescription
modelMODEL
latentLATENT
samplerSAMPLER