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_promode for most scenarios where a smooth and natural blend is desired, as it utilizes a feathered mask for seamless integration. - Consider the
paste_backmode 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
stitcherparameter is not correctly provided or is missing essential data. - Solution: Ensure that the
stitcherinput 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
modeparameter. - Solution: Verify that the
modeparameter is set to eitherstitch_proorpaste_back, as these are the only supported options.
"Blend mode override not recognized"
- Explanation: This error suggests that the
blend_mode_overrideparameter 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_overrideis set to a valid option.
