ComfyUI > Nodes > ComfyUI-Loop-image > Mask Merge🐰

ComfyUI Node: Mask Merge🐰

Class Name

CyberEve_MaskMerge

Category
CyberEveLoop🐰
Author
WainWong (Account age: 2946days)
Extension
ComfyUI-Loop-image
Latest Updated
2025-03-28
Github Stars
0.03K

How to Install ComfyUI-Loop-image

Install this extension via the ComfyUI Manager by searching for ComfyUI-Loop-image
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Loop-image 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

Mask Merge🐰 Description

Seamlessly integrate processed images with masks for precise image editing and selective modifications.

Mask Merge🐰:

The CyberEve_MaskMerge node is designed to seamlessly integrate processed images with their corresponding masks, allowing for the creation of composite images that blend original and modified content. This node is particularly useful in scenarios where you want to apply specific effects or modifications to certain areas of an image while preserving the rest. By leveraging the power of masks, CyberEve_MaskMerge ensures that only the desired portions of an image are altered, providing a high degree of control over the final output. This capability is essential for tasks such as image editing, artistic rendering, and any application where selective image processing is required. The node's primary function is to combine the processed images with their masks, ensuring that the final result maintains the integrity of the original image while incorporating the desired changes.

Mask Merge🐰 Input Parameters:

original_image

The original_image parameter is a required input that represents the base image to which the processed images and masks will be applied. This image serves as the foundation for the merging process, and its dimensions are used to ensure that the processed images and masks are correctly aligned. The original image is crucial as it provides the context and background for the modifications introduced by the processed images and masks.

processed_images

The processed_images parameter is an optional input that consists of the images that have undergone specific processing or modifications. These images are intended to be merged with the original image using the provided masks. The processed images should ideally match the dimensions of the original image to ensure a seamless integration. This parameter allows for the introduction of new elements or effects into the original image, guided by the masks.

Mask Merge🐰 Output Parameters:

result

The result parameter is the output of the CyberEve_MaskMerge node, representing the final composite image. This image is the result of blending the original image with the processed images according to the masks. The output maintains the original image's dimensions and channels, ensuring that the composite image is ready for further use or display. The result is a 4D tensor, which includes batch size, height, width, and color channels, providing a complete and integrated image that reflects the intended modifications.

Mask Merge🐰 Usage Tips:

  • Ensure that the dimensions of the processed_images and masks match those of the original_image to avoid any alignment issues during the merging process.
  • Use high-quality masks to achieve precise and accurate blending of the processed images with the original image, enhancing the overall quality of the composite image.

Mask Merge🐰 Common Errors and Solutions:

Output must be 4D [B,H,W,C]

  • Explanation: This error occurs when the output of the node does not conform to the expected 4D tensor format, which includes batch size, height, width, and color channels.
  • Solution: Verify that all input images and masks are correctly formatted and that their dimensions match. Ensure that the processed images and masks are properly aligned with the original image before merging.

Mask Merge🐰 Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Loop-image
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 Playground, enabling artists to harness the latest AI tools to create incredible art.