Files
JasonHoku-ComfyUI-Ultimate-…/web
Jason Hoku b321f95323 feat: florence2 — max_new_tokens exposed in Builder UI + Dashboard upscale modal
Default 256 (was hardcoded). Range 32-2048 step 32. Bump higher if Florence2
polygons get truncated on complex multi-face scenes; lower for VRAM savings.

Wired:
- florence2_hires.py: reads step_config.get('max_new_tokens', 256) and stores
  it on manifest_extras for forensics
- web/conf_builder/conf-builder-config-management.js: added to
  createDefaultFlorence2Options() + a numeric input next to 'Output Mask
  Select' in the Builder UI sub-panel
- resources/logic_upscale_modal.js: same in the dashboard's Upscale Image
  modal default + UI field

Tooltip explains the VRAM trade-off (~50 tokens needed for a face polygon;
256 is 5x headroom; KV cache scales linearly).
2026-05-18 12:58:40 -07:00
..