floyo logo
Workflows
Pricing
floyo logo
Workflows
Pricing
Last updated
2026-05-21

Universally applicable inpainting tool designed for various Stable Diffusion models, LanPaint enhances image editing capabilities within ComfyUI by allowing iterative "thinking" before finalizing inpainted results. This leads to notable improvements in quality without requiring any training on existing models.

  • Supports a wide range of models, including Z-image, Anima, and various iterations of Stable Diffusion, ensuring versatility.
  • Offers advanced features such as video inpainting and outpainting while maintaining temporal consistency across frames.
  • Functions without the need for training, making it user-friendly and accessible for immediate application.

Context

LanPaint is a powerful inpainting sampler integrated with ComfyUI, enabling users to fill in missing or undesired parts of images effectively. Its primary purpose is to enhance the quality of inpainting by allowing the model to process multiple iterations, resulting in superior output.

Key Features & Benefits

LanPaint offers unique functionalities that significantly improve inpainting tasks. Its universal compatibility means it can be used with various models without requiring additional training, simplifying the workflow. The tool's ability to support flexible masking allows users to define any shape or size for inpainting, enhancing creative control.

Advanced Functionalities

One of LanPaint's standout features is its "Think Mode," which enables the model to perform multiple reasoning iterations before denoising. This results in a more thoughtful and refined inpainting process, leading to higher-quality results. Additionally, LanPaint supports video inpainting and outpainting, allowing for seamless edits across video frames while maintaining consistency.

Practical Benefits

Utilizing LanPaint in ComfyUI streamlines the workflow by providing high-quality inpainting capabilities without the need for extensive setup or training. This tool enhances user control over the editing process, leading to improved image quality and efficiency. The ability to handle various models and support complex tasks like video editing significantly boosts productivity for users.

Credits/Acknowledgments

The development of LanPaint is attributed to Candi Zheng, Yuan Lan, and Yang Wang, with the official implementation based on their research paper, "LanPaint: Training-Free Diffusion Inpainting with Asymptotically Exact and Fast Conditional Sampling." The repository is maintained on GitHub, and users are encouraged to acknowledge the original authors in their work.

Inner Nodes

LanPaint_KSampler
LanPaint_KSamplerAdvanced
LanPaint_MaskBlend
LanPaint_SamplerCustom
LanPaint_SamplerCustomAdvanced