The ComfyUI Inpaint Nodes repository provides a set of custom nodes aimed at improving inpainting within the ComfyUI application. With support for Fooocus inpaint models tailored for SDXL, as well as LaMa and MAT models, this repository offers versatile tools for pre-filling inpaint and outpaint areas, enabling seamless editing of images.
To install the ComfyUI Inpaint Nodes, you have several options:
Using ComfyUI Manager:
Manual Installation:
ComfyUI/custom_nodes
.Using GIT:
cd ComfyUI/custom_nodes
git clone https://github.com/Acly/comfyui-inpaint-nodes.git
After installation, restart ComfyUI to load the new nodes.
Additionally, OpenCV is required for certain fill modes such as telea and navier-stokes. Install it using:
pip install opencv-python
This repository is designed to enhance and streamline the inpainting capabilities of ComfyUI by integrating advanced inpaint models such as Fooocus, LaMa, and MAT. It provides users powerful nodes to fill, expand, and refine masked areas within images for inpainting and outpainting tasks.
Here are the key nodes provided in this repository, along with their capabilities:
INPAINT_LoadFooocusInpaint: Loads the Fooocus inpaint model to be applied on SDXL checkpoints.
INPAINT_ApplyFooocusInpaint: Applies the loaded Fooocus inpaint model to seamlessly fill and expand areas in an image.
INPAINT_VAEEncodeInpaintConditioning: Provides latent outputs for integration with Fooocus inpaint and VAE encoding, minimizing overhead.
INPAINT_MaskedFill: Fills the masked area with transitions, offering modes like neutral, telea, and navier-stokes.
INPAINT_MaskedBlur: Blurs the image into the masked area for smooth visual transition.
INPAINT_LoadInpaintModel: Loads alternative inpaint models such as LaMa and MAT for application on masked regions.
INPAINT_InpaintWithModel: Uses the loaded inpaint model (LaMa/MAT) to perform inpainting on designated areas.
INPAINT_ExpandMask: Expands and feathers the mask area for smoother transitions at the edges.
INPAINT_DenoiseToCompositingMask: Converts a mask to a compositing mask suitable for differential diffusion within ComfyUI.
Seamless Integration with Fooocus Models: Transform SDXL checkpoints into inpaint models using the Fooocus integration.
Advanced Pre-processing: Utilize nodes like Blur Masked, Masked Fill, and Expand Mask to prepare precise inpainting areas.
Support for LaMa and MAT Models: Load and apply efficient inpainting models suitable for both local inpainting and outpainting tasks.
Denoise and Compositing Features: Use specialized nodes to enhance denoising and compositing workflows, improving output quality.
The nodes provided by this repository enhance ComfyUI's image modification capabilities, making it possible to:
Example workflows that utilize these nodes are included in the repository, offering users inspiration and starting points for their image editing projects. These workflows include simple inpainting, refining existing content, outpainting, pre-processing, and promptless operations.
For more details or to use example workflows, visit the repository's workflow directory: Example Workflows.