Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-CustomNodePacks > Inpaint Composite (C2C)

ComfyUI Node: Inpaint Composite (C2C)

Class Name

InpaintCompositeMEC

Category
C2C/Inpaint
Author
Code2Collapse (Account age: 1184days)
Extension
ComfyUI-CustomNodePacks
Latest Updated
2026-07-29
Github Stars
0.05K

How to Install ComfyUI-CustomNodePacks

Install this extension via the ComfyUI Manager by searching for ComfyUI-CustomNodePacks
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-CustomNodePacks in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Inpaint Composite (C2C) Description

Seamlessly integrate inpainted images using advanced compositing techniques with two distinct modes for professional-grade results.

Inpaint Composite (C2C):

The InpaintCompositeMEC node is designed to seamlessly integrate inpainted images back into their original context using advanced compositing techniques. It operates under a unified composite framework, leveraging the new STITCHER schema to provide two distinct modes of operation: stitch_pro and paste_back. The stitch_pro mode utilizes an alpha composite approach with a feathered mask, ideal for smooth transitions and blending, while the paste_back mode offers a straightforward hard rectangle paste with an optional Gaussian feather for softer edges. This node is particularly beneficial for AI artists looking to achieve professional-grade inpainting results, as it allows for precise control over how the inpainted content is merged back into the original image, ensuring a natural and cohesive final output.

Inpaint Composite (C2C) Input Parameters:

stitcher

The stitcher parameter is a dictionary input that comes from the InpaintCropProMEC node. It contains essential data required for the compositing process, such as the feathered mask used in the stitch_pro mode. This parameter is crucial as it dictates how the inpainted image will be integrated back into the original context, ensuring that the blending is smooth and visually appealing.

inpainted_image

The inpainted_image parameter is the image that has been processed and inpainted, typically represented in a (B, H, W, C) format. This input is the result of the inpainting process and serves as the primary content that will be composited back into the original image. The quality and resolution of this image directly impact the final output, making it a critical component of the node's operation.

mode

The mode parameter allows you to choose between the two compositing methods: stitch_pro and paste_back. The default value is stitch_pro, which is suitable for most scenarios where a smooth blend is desired. The paste_back mode is useful when a more straightforward, hard-edged integration is needed. Selecting the appropriate mode is essential for achieving the desired visual effect in the final image.

blend_mode_override

The blend_mode_override parameter provides additional control over the blending process in the stitch_pro mode. It allows you to override the default blend mode stored in the stitcher with options provided by the InpaintStitchProMEC node. This parameter is particularly useful for fine-tuning the blending characteristics to match specific artistic requirements or to address unique challenges in the compositing process.

Inpaint Composite (C2C) Output Parameters:

out

The out parameter represents the final composited image, where the inpainted content has been seamlessly integrated back into the original image. This output is the culmination of the node's processing and is intended to be visually indistinguishable from a naturally occurring scene, providing a polished and professional result.

out_blend

The out_blend parameter is the blend mask used during the compositing process. It provides a visual representation of how the inpainted image was blended with the original, offering insights into the areas of transition and the effectiveness of the blending technique. This output can be useful for debugging or for further refinement of the compositing process.

info

The info parameter contains detailed information about the compositing process, including the number of frames processed, the device used, the blend mode settings, and other relevant technical details. This output is valuable for understanding the node's operation and for troubleshooting any issues that may arise during the compositing process.

Inpaint Composite (C2C) Usage Tips:

  • Use the stitch_pro mode for most scenarios where a smooth and natural blend is desired, as it utilizes a feathered mask for seamless integration.
  • Consider the paste_back mode when you need a straightforward, hard-edged integration, especially in cases where the inpainted area is well-defined and does not require soft transitions.

Inpaint Composite (C2C) Common Errors and Solutions:

"Invalid stitcher input"

  • Explanation: This error occurs when the stitcher parameter is not correctly provided or is missing essential data.
  • Solution: Ensure that the stitcher input is correctly sourced from the InpaintCropProMEC node and contains all necessary information for the compositing process.

"Unsupported mode selected"

  • Explanation: This error indicates that an invalid mode has been selected for the mode parameter.
  • Solution: Verify that the mode parameter is set to either stitch_pro or paste_back, as these are the only supported options.

"Blend mode override not recognized"

  • Explanation: This error suggests that the blend_mode_override parameter has been set to an unrecognized value.
  • Solution: Check the available blend mode options provided by the InpaintStitchProMEC node and ensure that the blend_mode_override is set to a valid option.

Inpaint Composite (C2C) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-CustomNodePacks
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Inpaint Composite (C2C)