Nodes/ComfyUI-SuperBeasts/Make Resized Mask Batch (SuperBeasts.AI)
ComfyUI Node

Make Resized Mask Batch (SuperBeasts.AI)

The mask-combiner that got retired — it still works, but there's a better one

By SuperBeastsAI·Created 2 years ago·Updated 3 months ago· 220
Make Resized Mask Batch (SuperBeasts.AI)
  • mask1
  • mask2
  • mask3
  • mask4
  • mask5
  • mask6
  • mask7
  • mask8
  • mask9
  • mask10
  • mask11
  • mask12
  • MASK
width512
height768

Make Resized Mask Batch is a deprecated node, and the honest thing to do is tell you that in the first line instead of burying it. It's still registered, still loads, still works - but the pack's own docs mark it as replaced by Mask Batch Manager, and recommend you use that going forward. If you're here because an old workflow references this node, read this so you know what it does, then consider swapping it.

The job: combine up to a dozen individual masks (or mask batches) into one concatenated mask batch, with every mask scaled and cropped to a uniform width×height. It was built for the video workflow this pack is centered on - you generate per-frame subject masks, and you need them all the same size and stacked in a single tensor before they hit an inpaint or conditioning stage.

How it works

There's no JavaScript magic here like the newer manager nodes get - you get a fixed set of optional sockets mask1 through mask12, and you plug in whatever subset you have. Each mask is scaled so its width matches your target width (bilinear interpolation, aspect preserved by scaling height proportionally), then the result is either center-cropped or zero-padded to hit your exact height. So a tall mask on a short target gets cropped; a short mask on a tall target gets padded with black at top and bottom. Either way, the output is one MASK tensor where every frame shares the same dimensions.

The mechanism differs from the replacement in one meaningful way: this node can pad as well as crop, whereas Mask Batch Manager always center-crops. For some pipelines padding is actually the friendlier behavior - nothing gets cut off. That's the main argument for a legacy workflow to keep using it.

The inputs that matter

  • width / height (defaults 512×768) - the uniform output size for every mask in the batch.
  • mask1…mask12 - the optional mask inputs. At least one must be connected or the node raises an error. Both single masks and existing batches are accepted and get stacked.

Output is a single MASK tensor. Nothing else - no order string, no filename bookkeeping.

Install

It ships in the SuperBeasts pack:

cd ComfyUI/custom_nodes
git clone https://github.com/SuperBeastsAI/ComfyUI-SuperBeasts

Restart ComfyUI, or install via ComfyUI Manager by searching "SuperBeasts". No extra dependencies.

Common issues

Two things to know. First, the deprecation is real - the docs list it under "Removed" with the note "Deprecated please use MaskBatchManagement," and while the node hasn't been pulled from the code yet, experimental and legacy nodes in this pack have disappeared without a major version bump before. If you build on it, expect to rewire eventually. Second, the 12-slot fixed socket layout means no more than 12 inputs - if you need more, or you want reordering (which this node doesn't offer), that's exactly what Mask Batch Manager is for.

CategorySuperBeastsAI/Masks

Inputs (14)

NameTypeDefaultDescription
widthINT512
heightINT768
mask1optMASK
mask2optMASK
mask3optMASK
mask4optMASK
mask5optMASK
mask6optMASK
mask7optMASK
mask8optMASK
mask9optMASK
mask10optMASK
mask11optMASK
mask12optMASK

Outputs (1)

NameTypeDescription
MASKMASK