Consolidate Masks

ConsolidateMasksKJ

Consolidates a batch of separate masks by finding the largest group of masks that fit inside a tile of the given width and height (including the padding), and repeating until no more masks can be combined.

Pack: KJNodes for ComfyUI

custom_nodes.ComfyUI-KJNodes

Inputs (4)

NameTypeRequired
masksMASKrequired
widthINTrequired
heightINTrequired
paddingINTrequired

Outputs (1)

NameType
MASKMASK