Nodes/ComfyUi-MpiNodes/Mpi Inpaint Heal
ComfyUI Node

Mpi Inpaint Heal

Heal an inpainted region against the real pixels around it. Corrects colour drift and restores fine grain by matching a ring of untouched pixels hugging the mask -- unlike a colour-match on a rectangular crop, which still contains the removed object and pulls the fill toward it. Run AFTER stitching, with the mask of the region that was regenerated.

By MadPonyInteractive·Created 10 months ago·Updated 3 days ago· 2
Mpi Inpaint Heal
  • image
  • mask
  • IMAGE
color_strength1.00
grain_strength1.00
ring_px31
feather_px15
CategoryMpiNodes/ImgOps

Inputs (6)

NameTypeDefaultDescription
imageIMAGE
maskMASK
color_strengthFLOAT1.000–1Shift the filled region's colour toward the surrounding ring. 0 disables.
grain_strengthFLOAT1.000–1Lift the filled region's fine grain toward the surrounding ring. 0 disables.
ring_pxINT311–512Width of the untouched band sampled as the reference. Wide enough for a stable average, narrow enough to stay locally lit.
feather_pxINT150–256Softens the correction's edge so it does not become a visible seam of its own.

Outputs (1)

NameTypeDescription
IMAGEIMAGE