Visit ComfyUI Online for ready-to-use ComfyUI environment
Perform image inpainting using pre-trained model for seamless results, restoration, and object removal with optional upscaling.
The INPAINT_InpaintWithModel
node is designed to perform image inpainting using a pre-trained model. Inpainting is a technique used to fill in missing or corrupted parts of an image, and this node leverages advanced machine learning models to achieve high-quality results. By providing an image and a corresponding mask that indicates the areas to be inpainted, the node processes the input to generate a seamless and visually appealing output. This node is particularly useful for tasks such as restoring old photographs, removing unwanted objects, or filling in gaps in images. It supports optional upscaling to enhance the resolution of the inpainted image, ensuring that the final output meets high standards of detail and clarity.
This parameter specifies the inpainting model to be used for the task. The model can be of type mat.MAT
or any other compatible model architecture. The choice of model significantly impacts the quality and style of the inpainting results. Ensure that the model is properly loaded and compatible with the node's requirements.
The image
parameter is the input image that needs to be inpainted. It should be provided as a tensor. The quality and resolution of the input image will affect the final output, so high-resolution images are recommended for better results.
The mask
parameter is a tensor that indicates the areas of the image to be inpainted. The mask should have the same dimensions as the input image, with the regions to be inpainted marked distinctly (e.g., using binary values where 1 indicates the area to be inpainted and 0 indicates the area to be left unchanged).
The seed
parameter is an integer value used to initialize the random number generator for the inpainting process. This ensures reproducibility of the results. Different seed values can lead to variations in the inpainting output, allowing for experimentation with different results.
This optional parameter allows you to specify an upscaling model to enhance the resolution of the inpainted image. If provided, the node will use this model to upscale the inpainted regions, resulting in a higher-resolution output. This is particularly useful for applications requiring detailed and high-quality images.
The inpainted_image
parameter is the final output of the node, which is the inpainted version of the input image. This tensor contains the image with the specified regions filled in by the inpainting model. The quality and coherence of the inpainted areas depend on the model used and the input parameters provided.
<model_name>
<type(inpaint_model)>
mat.MAT
or another compatible architecture.<not_patched_count>
keys© Copyright 2024 RunComfy. All Rights Reserved.