Commit Graph
5 Commits
Author SHA1 Message Date
alisson-anjosandClaude Fable 5 7112d6e640 Add Entity Sheet 2x2 node (HuMoSet v7 semantic grid convention)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-20 06:40:26 +00:00
alisson-anjosandClaude Sonnet 5 1f37355676 fix: fit_mode='fit' still underfilled the canvas on one axis
fit_mode='fit' only guaranteed the row-justified block filled canvas
width, never upscaling to also fill height when the natural block was
shorter than the canvas (e.g. 2 refs left a top/bottom bar). Add
fit_mode='cover': same row-justified layout, but when the natural block
underfills the canvas it scales up to fill height and center-crops the
resulting width overflow instead, and when it overfills height it crops
that overflow directly -- either way every pixel of the canvas is
covered, cropping only the minimum shared/symmetric amount.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-16 20:17:48 +00:00
alisson-anjos d828823075 fix: fit_mode='fit' was letterboxing each panel independently (wasted space)
Replace per-panel independent letterboxing with a row-justified layout:
every row fills the canvas width exactly (each image scaled uniformly,
no distortion), rows are only shrunk together (never upscaled past
natural fill-width size) if they'd collectively overflow the canvas
height. Net effect: at most one shared pair of side/top-bottom bars
instead of padding scattered inside every individual panel.

Ported the identical algorithm into build_multiref_sheet.py (the
training-side script) so inference-time sheets match training-time
sheets pixel-for-pixel when fit_mode='fit' is used -- verified with a
byte-for-byte comparison test. fit_mode='crop' (default) is unchanged.
2026-07-14 11:35:00 +00:00
alisson-anjos ca5b4767ba feat: Multi-Ref Sheet Builder — add fit_mode (crop/fit) toggle
crop (default, unchanged): zoom+center-crop to fill each panel, matches
the training data. fit: scale each reference to fit entirely inside its
panel with a single uniform scale factor (no distortion), letterboxed
with background padding for any leftover space -- keeps every pixel
of references with extreme aspect ratios instead of cropping them.
2026-07-14 11:08:02 +00:00
alisson-anjos 2ab178f20c feat: Multi-Ref Sheet Builder — combine 1-5 ref images into the fixed 1536x1024 composite sheet
Same grid convention as the multi-ref LTX-2 LoRA training pipeline
(build_multiref_sheet.py): deterministic layout by ref count (1x1, 2x1,
3x1, 2x2, 3-top+2-bottom), 512x512 panels, centered onto a fixed
1536x1024 canvas regardless of how many refs are plugged in. Panel
order matches the image0/image1/... indexing used in training.
2026-07-14 10:59:34 +00:00