Extensions/Mask Batch Union
ComfyUI Extension

Mask Batch Union

ComfyUI node to merge a batch of masks into a single mask via max or sum_clamp

By kevinkessler·Created 3 months ago·Updated 3 months ago· 0
kevinkessler/comfyui-mask-batch-union
Nodes1
On cloudLocal install
Categorymask
Stars0
Updated3 months ago
Readme

comfyui-mask-batch-union

A ComfyUI custom node that collapses a batch of masks down to a single mask.

Node: Mask Batch Union

Category: mask

Accepts a batch of masks (shape [B, H, W]) and merges them into one mask using either:

  • max — pixel-wise maximum across the batch (default). Good for overlapping regions where any mask should activate.
  • sum_clamp — sum all masks then clamp to [0, 1]. Useful when you want additive intensity up to full white.

Inputs

| Name | Type | Description | |------|------|-------------| | masks | MASK | Batch of masks to merge | | mode | max | sum_clamp | Merge strategy |

Output

| Type | Description | |------|-------------| | MASK | Single merged mask |