Video Tutorial ComfyUI Tutorial+Workflow Inpainting only on masked area, fast outpainting, and seamless blending
Video Tutorial
ComfyUI-Inpaint-CropAndStitch
Copyright (c) 2024, Luis Quesada Torres - |
Check ComfyUI here:
Overview
“✂️ Inpaint Crop“ is a node that crops an image before sampling. The context area can be specified via the mask, expand pixels and expand factor or via a separate (optional) mask.
“✂️ Inpaint Stitch“ is a node that stitches the inpainted image back into the original image without altering unmasked areas.
“✂️ Extend Image for Outpainting“ is a node that extends an image and masks in order to use the power of Inpaint Crop and Stich (rescaling, blur, blend, restitching) for outpainting.
“✂️ Resize Image Before Inpainting“ is a node that resizes an image before inpainting, for example to upscale it to keep more detail than in the original image.
The main advantages of inpainting only in a masked area with these nodes are:
It’s much faster than sampling the whole image.
It enables setting the right amount of context from the image for the prompt to be more accurately represented in the generated picture.
It enables upscaling before sampling in order to generate more detail, then stitching back in the original picture.
It enables downscaling before sampling if the area is too large, in order to avoid artifacts such as double heads or double bodies.
It enables forcing a specific resolution (e.g. 1024x1024 for SDXL models).
It doesn’t modify the unmasked part of the image, not even passing it through VAE encode and decode.
The nodes take care of good blending.