Key points for using LanPaint
In order to obtain optimal restoration results, the user needs to pay special attention to the following technical details:
1. Masking specifications
- Must use a pure black and white binary map (0 or 1)
- No support for grayscale gradients or semi-transparent areas
- The edges need to be clear and crisp, and it is recommended to use professional tools such as Photoshop to create them
2. Parameter optimization recommendations
- LanPaint_stepsize: Default 0.3, can be increased to 0.5 for complex tasks
- LanPaint_lambda: Controls alignment strength, default 1 moderate
- LanPaint_cfg_Big: Adjust the level of detail enhancement according to model characteristics
3. Hardware considerations
Due to the use of multiple iterations of the algorithm, more GPU resources are consumed compared to single sampling. It is recommended to reduce the number of batches appropriately to avoid insufficient video memory when restoring high-resolution images.
This answer comes from the articleLanPaint: A ComfyUI Image Restoration Workflow for Any ModelThe































