Add deterministic clothing layout planner
This commit is contained in:
@@ -124,6 +124,27 @@ The prompt editor is intended to sit before a normal prompt builder or
|
||||
Continuum reference-image workflow. It does not encode, resize, crop, or
|
||||
modify the image.
|
||||
|
||||
### DUMAS Clothing Layout Planner
|
||||
|
||||
`DumasClothingLayoutPlanner` converts object inventory JSON from a VLM into a
|
||||
deterministic spatial plan for flat-lay or product-image generation. It accepts
|
||||
raw JSON or a fenced JSON block, expands quantities into deterministic instance
|
||||
IDs, treats `unit: "pair"` entries as one region per pair, and supports
|
||||
`balanced` and `grid` layouts. It is object-agnostic and does not infer or
|
||||
download anything.
|
||||
|
||||
Outputs:
|
||||
|
||||
- `layout_prompt`: natural-language region instructions preserving IDs and
|
||||
original descriptions
|
||||
- `layout_json`: reusable normalized coordinates and warnings
|
||||
- `layout_preview`: a diagnostic IMAGE showing the regions and optional labels
|
||||
|
||||
The planner uses normalized top-left-origin coordinates, configurable margins
|
||||
and spacing, and rejects malformed or invalid inventory fields with actionable
|
||||
errors. The preview is diagnostic only; feeding it to an image model does not
|
||||
guarantee spatial control.
|
||||
|
||||
### DUMAS H3 RefMod Save
|
||||
|
||||
`DUMAS H3 RefMod Save` accepts the `H3_REF_MODS` bundle produced by the
|
||||
|
||||
Reference in New Issue
Block a user