Commit Graph
4 Commits
Author SHA1 Message Date
ausboss 8f6ac16d27 Validators: ignore inputs they do not name
A pack that wraps node validators in a catch-all takes **kwargs, so
ComfyUI hands it every input and it passes them all on. Load Image + Pad
then stopped the run with "VALIDATE_INPUTS() got an unexpected keyword
argument 'pad_left'" (#229), and every other validator in the pack would
fail the same way.

ignore_extra_inputs drops the inputs a validator does not name and shows
ComfyUI the original signature, so on a plain ComfyUI nothing changes:
only the named inputs are passed, ComfyUI still runs its own range and
list checks on the rest, and a failed check is still reported once.
Every validator in the pack wears it, and a test holds new ones to it.
2026-10-22 15:10:09 -05:00
ausboss 01e77fafd3 Keep the execution helpers importable without torch
Moving comfy_torch_device into _execution_helpers put a top-level torch
import there, which broke the standard-library test run in CI. torch is
now imported inside that one function, and its tests skip where torch is
absent.
2026-09-24 00:22:16 -05:00
ausboss 8c537139cf Share the interrupt, progress, warn-once and device seams
Four helper modules each carried their own _raise_if_interrupted, three
their own _progress_bar and three their own _warn_once, and Frame
Interpolate borrowed comfy_torch_device from LaMa's module.
_execution_helpers now holds one copy of each and the helpers import
them, with the old behavior kept exactly: progress_bar is the plain bar
those loops always built (unlike frame_progress it has no guard for
unknown totals), and warn_once takes each module's own seen-set, key
and cap (none for the stitch, 64 for presets, 256 for colors).
2026-09-24 00:20:11 -05:00
ausboss 9a234bcbaf Report per-frame progress while decoding and encoding 2026-08-13 20:18:16 -05:00