Large-image inpainting in ComfyUI using LaMa followed by a refinement stage.
cd PATH_TO_COMFYUI/ComfyUI/custom_nodes
git clone https://github.com/fplu/comfyui_lama_with_refiner.gitDownload big-lama.pt from any of the mirrors below and place it in
PATH_TO_COMFYUI/ComfyUI/models/inpaint/ (create the inpaint folder if it doesn’t already exist).
- https://huggingface.co/fashn-ai/LaMa/blob/main/big-lama.pt
- https://huggingface.co/aasda111/bigllama/blob/main/big-lama.pt
- https://huggingface.co/okaris/simple-lama/blob/main/big-lama.pt
-
Add a Load Inpaint LaMa Model node and select
big-lama.pt. -
Add an Inpaint (LaMa + Refinement) node and connect:
- Model → output of Load Inpaint LaMa Model
- Image → image you want to inpaint
- Mask → corresponding mask of the image
- LaMa + Refiner geomagical/lama-with-refiner
- LaMa advimman/lama