floyo logobeta logo
Powered by
ThinkDiffusion
floyo logobeta logo
Powered by
ThinkDiffusion

ComfyUI-Inpaint-CropAndStitch

746

Last updated
2025-07-14

The ComfyUI Inpaint Crop and Stitch toolset enhances the inpainting process by allowing users to crop images around specified masked areas, perform inpainting, and seamlessly stitch the modified sections back into the original image. This results in a more efficient workflow, as it minimizes the need to process entire images while maintaining the integrity of unmasked areas.

  • Enables focused inpainting on selected areas, significantly speeding up the process compared to full-image sampling.
  • Provides flexibility in resizing and context management, allowing for tailored outputs that maintain detail and avoid artifacts.
  • Integrates automatic blending and stitching, ensuring a seamless transition between modified and unmodified parts of the image.

Context

The ComfyUI Inpaint Crop and Stitch toolset is designed to streamline the inpainting workflow within ComfyUI by allowing users to crop images around defined masked areas. This approach not only optimizes processing time but also enhances the quality of the inpainting by providing the model with relevant context from the surrounding image.

Key Features & Benefits

The primary features of this tool include precise cropping around masked areas, options for resizing images before and after inpainting, and automatic stitching of the modified sections back into the original image. These functionalities are crucial as they allow users to manage the context effectively, ensuring that the prompts used for generation are better represented and that the final output remains coherent without altering unmasked sections.

Advanced Functionalities

Advanced capabilities of the tool include the ability to extend the mask for outpainting, control over the resizing algorithms, and options to fill mask holes or grow the mask. Users can also specify the resolution of the cropped images and enforce padding to meet model requirements, which helps in avoiding artifacts during processing.

Practical Benefits

By utilizing the ComfyUI Inpaint Crop and Stitch nodes, users can significantly improve their workflow efficiency and control. The ability to focus on smaller areas for inpainting reduces processing time and enhances the quality of the results, while maintaining the integrity of the original image. This tool is particularly beneficial for artists looking to achieve high-quality edits without the computational overhead of processing entire images.

Credits/Acknowledgments

This repository was developed by Luis Quesada Torres and incorporates code from several projects, including comfy_extras, KJNodes, and Efficiency Nodes, all under the GNU General Public License Version 3. For further details, please refer to the LICENSE file.