scraed/LanPaint
LanPaint is a training-free inpainting sampler for diffusion models that enables iterative 'think mode' denoising for higher-quality image editing.

LanPaint implements an asymptotically exact conditional sampling technique for diffusion-based image inpainting, requiring no model training or fine-tuning. It works by letting diffusion models iterate through multiple denoising passes to produce higher-quality inpainting results. The project includes a ComfyUI extension for integration into diffusion workflows, a separate diffusers library implementation, and benchmark code for reproducing the published TMLR paper results.