scraed/LanPaint
High quality training free inpaint for every stable diffusion model. Supports ComfyUI
What it solves
LanPaint 提供一个通用、无需训练的修补和扩展解决方案,适用于扩散模型。它消除了对模型特定修补训练或复杂混合技巧的需求,让用户能够在图像和视频的遮罩区域内,使用现有模型生成高质量、无缝的新内容。
How it works
LanPaint 引入一个专门的采样器,实现“思考模式”。该模式允许模型在最终去噪过程之前进行多次“思考”迭代。通过这些迭代投入更多计算时间,采样器能够实现渐近精确且快速的条件采样,从而在不需要重新训练模型的情况下提升修补质量。
Who it’s for
此工具主要面向使用 ComfyUI 的 AI 艺术家和开发者,帮助他们在各种模型(如 Flux、SDXL、Wan 2.2 等)上执行高保真度的修补和扩展,而无需自行训练专用的修补模型。
Highlights
- Universal Compatibility: Works with a vast array of models including Ideogram4, Krea2, Z-image, Hunyuan, Wan 2.2, Qwen, Anima, SD 3.5, Flux, and SDXL.
- Training-Free: Operates out of the box with existing models without any additional training.
- Video Support: Capable of video inpainting and outpainting (specifically with Wan 2.2) while maintaining temporal consistency.
- Think Mode: A unique sampling approach that lets users trade computation time for higher quality results.
- Flexible Masking: Supports any mask shape, size, or position for both inpainting and outpainting.