Nodes/ComfyUI-MiniMaxH3-PerRowMasking/MiniMax H3 Mask Grid Preview & Snap
ComfyUI Node

MiniMax H3 Mask Grid Preview & Snap

Shows exactly which 32x32 MiniMax H3 cells a SAM3 or standard ComfyUI mask will edit, and outputs the cell-snapped mask for H3 Set Generation Mask.

By ethanfel·Created 27 days ago·Updated 26 days ago· 1
MiniMax H3 Mask Grid Preview & Snap
  • image
  • mask
  • snapped_mask
  • grid_preview
  • grid_info
cell_selection
cell_adjust0
overlay_opacity0.38
show_gridtrue
show_source_outlinetrue
Categorylatent/mask/minimax

Inputs (7)

NameTypeDefaultDescription
imageIMAGEThe exact resized H3 canvas frames that will be VAE-encoded. Width and height must be divisible by 32 so the displayed cells align with H3.
maskMASKConnect SAM3 Detect, SAM3 Track to Mask, a painted mask, or any standard ComfyUI MASK. White is treated as the requested generation area.
cell_selectionCOMBORuntime exact reproduces H3's latent resize and per-row max decision. Other modes select cells from direct pixel coverage and can be more or less conservative.
cell_adjustINT0-8–8Grow with positive values or shrink with negative values, measured in complete 32x32 H3 cells.
overlay_opacityFLOAT0.380–1Opacity of the orange generated-cell overlay.
show_gridBOOLEANtrueDraw cyan boundaries for every 32x32 H3 cell.
show_source_outlineBOOLEANtrueDraw the original SAM3 or input-mask boundary in white.

Outputs (3)

NameTypeDescription
snapped_maskMASK
grid_previewIMAGE
grid_infoSTRING