floyo logo
Powered by
ThinkDiffusion
⚡️Nano Banana 2 ⚡️ just landed. Start creating now.
floyo logo
Powered by
ThinkDiffusion
⚡️Nano Banana 2 ⚡️ just landed. Start creating now.

ComfyUI-Inpaint-CropAndStitch

987

Last updated
2026-02-18

The ComfyUI-Inpaint-CropAndStitch tool provides a streamlined approach to inpainting by allowing users to crop images around masked areas before sampling and then seamlessly stitch them back into the original image. This functionality significantly enhances the efficiency and precision of inpainting tasks in ComfyUI workflows.

  • It focuses on inpainting only the specified masked areas, which speeds up processing times compared to sampling the entire image.
  • The nodes facilitate context-aware inpainting by allowing users to adjust the context area, enhancing the relevance of the generated output.
  • Users can upscale or downscale the cropped images before stitching, enabling better detail management and artifact avoidance.

Context

The ComfyUI-Inpaint-CropAndStitch extension is designed to optimize the inpainting process within the ComfyUI environment. By utilizing specialized nodes, users can focus on specific areas of an image for inpainting, which enhances both speed and quality.

Key Features & Benefits

The tool includes two primary nodes: "✂️ Inpaint Crop" and "✂️ Inpaint Stitch." The Inpaint Crop node allows users to crop around a masked area, optionally including a context area to ensure relevant features are preserved. The Inpaint Stitch node then reintegrates the modified section back into the original image without impacting the unmasked portions, ensuring a seamless blend.

Advanced Functionalities

Advanced capabilities include options for resizing images before cropping, filling mask holes, and extending masks for outpainting. Users can also apply a hipass filter to masks, which helps avoid confusion by ignoring low-value mask areas. These features allow for precise control over the inpainting process, catering to specific project requirements.

Practical Benefits

This tool significantly improves workflow efficiency by allowing users to work on smaller, contextually relevant portions of an image rather than the entire piece. It also enhances the quality of inpainted images by enabling upscaling for more detail and ensuring that unmasked regions remain untouched, thereby reducing the likelihood of artifacts.

Credits/Acknowledgments

The development of this tool is credited to Luis Quesada Torres, with contributions from other projects like comfy_extras, KJNodes, and Efficiency Nodes, all of which are licensed under the GNU General Public License Version 3.

Inner Nodes

InpaintCropImproved, InpaintStitchImproved