ComfyUI > Nodes > LanPaint

ComfyUI Extension: LanPaint

Repo Name

LanPaint

Author
scraed (Account age: 4120 days)
Nodes
View all nodes(5)
Latest Updated
2026-04-11
Github Stars
1.1K

How to Install LanPaint

Install this extension via the ComfyUI Manager by searching for LanPaint
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter LanPaint in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

LanPaint Description

LanPaint is a ComfyUI extension that enables seamless inpainting without requiring a specialized inpainting model, enhancing image editing capabilities by allowing users to modify specific areas effortlessly.

LanPaint Introduction

LanPaint is a versatile extension designed to enhance the inpainting capabilities of AI models. Inpainting is the process of reconstructing lost or deteriorated parts of images, and LanPaint excels in this by allowing models to "think" through multiple iterations before finalizing the image. This results in superior inpainting quality, making it an invaluable tool for AI artists who want to restore or modify images without the need for extensive training or complex setups. LanPaint is particularly useful for artists looking to seamlessly integrate new elements into existing artworks or repair damaged areas with high precision.

How LanPaint Works

LanPaint operates by leveraging a unique approach called "training-free diffusion inpainting." This method allows the model to iteratively refine its output by considering both the existing image context and the desired modifications specified by the user. Imagine the model as an artist who sketches multiple drafts before settling on the final piece. Each iteration allows the model to better understand the nuances of the image, leading to a more coherent and high-quality result. This process is akin to an artist taking a step back to evaluate their work before making the final brushstrokes.

LanPaint Features

  • Universal Compatibility: LanPaint works seamlessly with a wide range of models, including Z-image, Hunyuan, Wan 2.2, and more. This flexibility ensures that you can use it with your preferred model without any additional setup.
  • No Training Required: Unlike other inpainting tools, LanPaint does not require any pre-training, making it accessible to artists of all skill levels.
  • Flexible Masking: You can define any shape, size, or position for the areas you want to inpaint or outpaint, giving you complete creative control.
  • High-Quality Output: By avoiding partial denoising, LanPaint generates entirely new content, ensuring that the inpainted areas blend seamlessly with the original image.
  • Character Consistency: Use LanPaint to maintain character consistency across different images, a feature particularly useful for creating coherent series or animations.

LanPaint Models

LanPaint supports various models, each suited for different tasks:

  • Z-Image and Z-Image-Base: Ideal for text-to-image generation, these models allow for detailed inpainting with a focus on maintaining the original image's style.
  • Wan 2.2: This model excels in video inpainting, ensuring temporal consistency across frames, making it perfect for video editing tasks.
  • Qwen Image/Edit: Use these models for precise image edits, such as changing specific elements while keeping the rest of the image intact.
  • HiDream and SD 3.5: These models are great for creative projects that require high-quality image generation and modification.

What's New with LanPaint

Recent updates have introduced several enhancements:

  • Version 1.5.0: Fixed a critical bug that affected performance and image clarity, especially with the Z-image-base model. This update also improved overall performance across other models.
  • Support for Z-Image and Z-Image-Base: New capabilities for inpainting and outpainting, expanding the creative possibilities for artists.
  • Video Inpainting with Wan 2.2: Now you can inpaint videos with consistent quality across frames, a significant advancement for video artists.

Troubleshooting LanPaint

Here are some common issues and solutions:

  • Blurry Images: If your images appear blurry, ensure you are using the latest version of LanPaint. Version 1.5.0 addresses this issue.
  • Weird Mask Boundaries: If you notice glowing or broken mask boundaries, check the mask settings and ensure they are binary (values of 0 or 1) without gradients.
  • Performance Issues: For models like Flux.dev, use low flux guidance (1.0-2.0) to mitigate performance issues.

Learn More about LanPaint

To further explore LanPaint and connect with the community, consider the following resources:

  • LanPaint GitHub Repository: Access the latest updates, examples, and community discussions.
  • ComfyUI Installation Guide: Learn how to set up ComfyUI, which is required for using LanPaint.
  • Community Tutorials: Watch tutorials created by other users to see LanPaint in action and learn new techniques.
  • Join the Discord Community: Engage with other AI artists, share your work, and get support from the community. By utilizing these resources, you can maximize your use of LanPaint and enhance your creative projects with ease.

LanPaint Related Nodes

RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

LanPaint detailed guide | ComfyUI