Files
BartandClaude Opus 4.8 502d90528c feat: Florence-2 auto-fill (ingest Florence2Run caption + region/OCR data)
Seed the editor from an image without embedding Florence-2 — consume kijai's
comfyui-florence2 Florence2Run outputs:
- florence_caption (STRING) -> high_level_description
- florence_data (JSON) -> region/OCR boxes as elements, normalized from the
  connected image's pixel space to the 0-1000 grid.

nodes.py: pure _florence_elements (handles {bboxes,labels} grounding, bare box
lists incl. one wrapping level for OD/dense, and [{label,box}] OCR with 4-rects
or 8-quads) + _image_dims + _florence_caption_obj; build() emits the assembled
v15 caption under ui.florence.

JS: onExecuted applies ui.florence via loadCaption only when it changed (per-node
guard) so re-runs don't clobber manual edits. 6 new tests (17 passing). README +
design doc.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-10 20:50:17 +02:00
..