Visit ComfyUI Online for ready-to-use ComfyUI environment
Combine image crops, masks, and warp transformations into a cohesive output for advanced image processing tasks.
The MergeWarps
node is designed to combine multiple image crops, masks, and warp transformations into a single cohesive output. This node is particularly useful in scenarios where you need to merge different parts of images that have been processed separately, ensuring that the final output maintains the integrity and alignment of the original images. By stacking the crops and masks and summing the warp transformations, MergeWarps
provides a streamlined way to handle complex image manipulations, making it an essential tool for AI artists working with advanced image processing tasks.
This parameter represents the first image crop that you want to merge. It is an image tensor that contains a portion of the original image. The crop is used in conjunction with its corresponding mask and warp transformation to ensure proper alignment and integration into the final output.
This parameter is the mask associated with the first image crop (crop0
). The mask is a binary tensor that indicates which parts of the crop should be visible in the final merged image. It helps in blending the crop seamlessly with other image parts.
This parameter is the warp transformation associated with the first image crop (crop0
). The warp is a tensor that defines how the crop should be transformed to align with the other image parts. It ensures that the crop is correctly positioned in the final output.
This parameter represents the second image crop that you want to merge. Similar to crop0
, it is an image tensor containing another portion of the original image. It works with its corresponding mask and warp transformation to be integrated into the final output.
This parameter is the mask associated with the second image crop (crop1
). The mask is a binary tensor that indicates which parts of the crop should be visible in the final merged image. It helps in blending the crop seamlessly with other image parts.
This parameter is the warp transformation associated with the second image crop (crop1
). The warp is a tensor that defines how the crop should be transformed to align with the other image parts. It ensures that the crop is correctly positioned in the final output.
The IMAGE
output is a tensor that contains the merged image crops. This output combines the input crops (crop0
and crop1
) into a single image tensor, ensuring that they are properly aligned and blended according to their respective masks and warp transformations.
The MASK
output is a tensor that contains the merged masks. This output combines the input masks (mask0
and mask1
) into a single mask tensor, ensuring that the visibility of the merged image crops is correctly represented.
The WARP
output is a tensor that contains the combined warp transformations. This output sums the input warp transformations (warp0
and warp1
), ensuring that the final merged image crops are correctly aligned and positioned.
ValueError: Tensors must have the same shape
MergeWarps
node. You may need to resize or pad the tensors to achieve uniform shapes.TypeError: Expected tensor but got <type>
MergeWarps
node.crop0
, mask0
, warp0
, crop1
, mask1
, warp1
) are tensors. Convert any non-tensor inputs to tensors before passing them to the node.RuntimeError: Incompatible tensor types
MergeWarps
node.© Copyright 2024 RunComfy. All Rights Reserved.