v2.4.0: fix memory exhaustion, silent no-ops, and disabled input validation

- Refuse extreme-aspect-ratio upscales that would exhaust memory (1x690 at
  default settings asked for 704x485760, ~4 GB per batch item)
- Raise instead of returning a zero dimension when multiple_of exceeds max_res
  in Strict mode, and when a thin strip truncates to zero at multiple_of=1
- Drop **kwargs from validate_inputs, which disabled ComfyUI's own range and
  combo-option checks for every input on the node
- Resize once on the crop path instead of computing and discarding a resize
- Compare exact aspect ratios rather than 4-decimal rounded ones when deciding
  whether to crop
- Reject unknown constraint modes rather than applying neither limit
- Log the reason when the pack fails to import
- Bump version to 2.4.0
This commit is contained in:
EnragedAntelope
2026-08-24 14:11:42 -04:00
parent d7dc9b4317
commit 2bc791c5d5
7 changed files with 266 additions and 49 deletions
+3
View File
@@ -6,6 +6,9 @@ on:
- main
pull_request:
permissions:
contents: read
jobs:
pytest:
name: pytest (Python ${{ matrix.python-version }})