Region Inspect
Tap the regions wire anywhere and see every mask, one colour each
- regions
- masks
- preview
- report
- count
The Regions pipeline in ComfyUI-NynxzNodes is almost entirely invisible: masks go in, bindings get stamped on a wire, and a patched model comes out the other side. That's elegant until something's wrong and you can't see what. Region Inspect is the pack's answer - a tap on the regions wire anywhere in the graph that breaks the whole set open into things you can actually look at: every mask as a MASK batch, a single colour preview of all of them at once, plus a report and a count.
The author split diagnostics out of the working nodes on purpose, and it's the right call: Regions Apply doesn't carry a report socket, so this is the pre-sampling view. Wire it anywhere the regions object flows - right after Regions from Masks, or further down after bindings - and you'll see exactly what the graph believes it's working with.
What comes out
masks- one mask per region, in region order. Wire these to a preview node, or - the genuinely useful trick - edit them and feed them back through Regions from Masks. If SAM3's auto-segmentation grabbed the wrong boundary, fixing it by hand here is far cheaper than fighting the segmenter.preview- all regions at once, one colour each. Overlaps read as blends and unclaimed area reads as dark. This is the fastest sanity check that your regions are where you think they are and don't overlap when they shouldn't.report- a text rundown of the set (bindings included), for when you want the facts in searchable form.count- how many regions are on the wire. Matching region numbers against this is how you stay sane.
The one input, size (default 512), normalizes the masks to a common resolution - masks arrive at whatever size their producer used, and a MASK batch has to be one shape. Raise it if you're about to edit fine detail and feed masks back; 512 is plenty for a look-and-check.
The honest limits
Region Inspect is a pre-sampling view: it shows the masks and bindings that went in. What actually ran during sampling - the gate map after tracking moved with a subject - is a different node's job (Regions Preview is the post-sampling counterpart, wired off the sampler's latent). If a region looks right here but the output is wrong, you've learned something real: the problem is downstream (tracking, the commit schedule, LoRA bleed), not the masks. That split is the pack's way of keeping "bad input" and "bad execution" from looking identical.
Install
Part of Nynxz's Custom Nodes: ComfyUI Manager → search "NynxzNodes" (registry build preferred - hand clones need pnpm install && pnpm build, since the UI's web/ is gitignored), or git clone https://github.com/Nynxz/ComfyUI-NynxzNodes into ComfyUI/custom_nodes. No pip dependencies. Restart ComfyUI after installing, update ComfyUI if nodes don't register, and remember the whole Regions group is Krea 2 only and experimental.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| regions | NYNXZ_REGIONS | — | |
| size | INT | 51264–2048 | Resolution to normalise the masks to. They arrive at whatever size their producer used, and a MASK batch has to be one shape. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| masks | MASK | One mask per region, in order. Wire to a Mask Preview, or edit and feed back through Regions from Masks. |
| preview | IMAGE | All regions at once, one colour each. Overlaps read as blends and unclaimed area reads as dark. |
| report | STRING | — |
| count | INT | — |