Visit ComfyUI Online for ready-to-use ComfyUI environment
Efficient image inpainting with seamless extension and versatile context area specification for AI artists.
The InpaintExtendOutpaint node is designed to facilitate efficient and high-quality inpainting by cropping the image before sampling and stitching it back together after sampling. This method ensures that unmasked areas remain unaltered, providing a seamless and natural extension of the image. The node allows you to specify the context area through pixel expansion, expansion factors, or an optional mask, making it versatile for various inpainting tasks. It supports different size modes, including free size, forced size, and ranged size, giving you flexibility in how you want to handle the image dimensions. This node is particularly beneficial for AI artists looking to extend or outpaint images without compromising the integrity of the original content.
The image to be inpainted. This is the primary input where the inpainting process will be applied.
The mask that defines the areas to be inpainted. Areas marked in the mask will be the focus of the inpainting process.
An integer value that specifies the number of pixels to expand the context area around the masked region. This helps in providing additional context for better inpainting results. The default value is 20, with a minimum of 0 and a maximum defined by the node's maximum resolution.
A float value that determines the factor by which the context area should be expanded. This provides a scalable way to increase the context area. The default value is 1.0, with a minimum of 1.0 and a maximum of 100.0.
A boolean parameter that, when set to True, fills any holes in the mask to ensure a continuous area for inpainting. The default value is True.
A float value that specifies the number of pixels to blur the mask edges. This helps in creating a smooth transition between the inpainted and original areas. The default value is 16.0, with a range from 0.0 to 64.0.
A boolean parameter that, when set to True, inverts the mask. This can be useful if you want to inpaint the areas outside the original mask. The default value is False.
A float value that determines the number of pixels to blend the inpainted area with the original image. This helps in achieving a seamless integration. The default value is 16.0, with a range from 0.0 to 32.0.
A selection parameter that allows you to choose the rescaling algorithm. Options include "nearest", "bilinear", "bicubic", and "bislerp". The default is "bicubic".
A selection parameter that defines the size mode for the inpainting process. Options include "ranged size", "forced size", and "free size". The default is "ranged size".
An integer value that specifies the width to force the image to when using the "forced size" mode. The default value is 1024, with a minimum of 0 and a maximum defined by the node's maximum resolution.
An integer value that specifies the height to force the image to when using the "forced size" mode. The default value is 1024, with a minimum of 0 and a maximum defined by the node's maximum resolution.
A float value that determines the factor by which the image should be rescaled in "free size" mode. The default value is 1.00, with a range from 0.01 to 100.0.
An integer value that specifies the minimum width for the image in "ranged size" mode. The default value is 512, with a minimum of 0 and a maximum defined by the node's maximum resolution.
An integer value that specifies the minimum height for the image in "ranged size" mode. The default value is 512, with a minimum of 0 and a maximum defined by the node's maximum resolution.
The inpainted image. This is the primary output where the inpainting process has been applied, extending or outpainting the original image based on the provided mask and context parameters.
The processed mask used during the inpainting. This output can be useful for further processing or for understanding how the inpainting was applied.
The context mask that was used to define the area around the masked region. This output helps in visualizing the expanded context area that influenced the inpainting process.
blur_mask_pixels
parameter to smooth the edges of the mask.rescale_algorithm
options to find the best quality for your specific image.context_expand_pixels
and context_expand_factor
parameters to provide more context around the masked area, which can improve the inpainting quality.forced size
mode with force_width
and force_height
parameters.context_expand_pixels
or context_expand_factor
exceeds the image boundaries.context_expand_pixels
or context_expand_factor
to fit within the image boundaries.© Copyright 2024 RunComfy. All Rights Reserved.