mask_cells was in the required inputs, so any API graph that omitted the key
failed validation ("Required input is missing") — a default only pre-fills the
UI, it isn't supplied for headless/API graphs. Move it to optional so graphs
without mask_cells validate and fall back to the documented no-op (denoise all).
No behaviour change for graphs that do set it. Verified via /object_info:
mask_cells now under optional, mask output intact.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add an optional MASK output driven by a mask_cells string param (row-major,
1-indexed cell list). The interactive picker gains a mask toggle: click cells to
mark which denoise (amber) vs stay preserved (green). Stitch helpers now also
return per-cell boxes so the mask aligns to the grid in both auto and manual modes.
Enables masked/partial-denoise grid workflows (SetLatentNoiseMask).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- rename to ComfyUI-AutoGrid, node display names to "Auto Grid / ..."
- document the in-node 4×4 grid picker (dynamic inputs on Advanced)
- Stitch (one image) now shares the Advanced engine
- Stitch Advanced: auto (preserve) vs manual (center-crop to ratio) modes
Two robustness fixes for near-identical seamless grids (e.g. a 2x2 of very similar panels):
- gutter detection now requires near-solid bands (std<0.01), so a dark content strip at a seam is no longer mistaken for a gutter (which caused a 2x2 to split into 2)
- seamless mode keeps only seams within rel_frac of the strongest, dropping content edges that used to cause over-splitting
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Detects how a stitched image is divided and splits it into panels. No model, CPU, any resolution. Handles regular grids, uneven grids, irregular (bento) collages, and seamless grids.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>