Get a Pattern in · 05 · from_photos
DTG from product photos
You have product photos. Infer a Pattern, then show a print.
You have
product photos
You want
Infer a Pattern, then show a print
You have product photos. You want a Pattern that looks like those photos, then DTG on a blank.
This inlet is visual-match, not a factory cut. After Pattern exists, the jobs are the same as dress_blank.
Steps
pattern.from_reference_images→patternconstruction.propose→constructionbody.select→bodymaterial.get→materialgarment.drape→runcolorway.apply→rungraphic.apply→rungarment.render→render
Sample inputs
| Key | Value |
|---|---|
product_id | vb-hd-bc3719 |
images | ["samples/patterns/reference_images/vb-hd-bc3719/front.png","samples/patterns/reference_images/vb-hd-bc3719/back.png","samples/patterns/reference_images/vb-hd-bc3719/side.png"] |
body | samples/bodies/male_m_native_straight.json |
material_id | fleece_250gsm |
colorway | samples/colorways/black.json |
artwork | samples/artwork/dtg_tee/map.json |
Expected fixture checks
These are the checks declared by this sample, not a captured production result. Referenced sample files are included in the gated SDK checkout.
{
"run.phase": "presented"
}Run
Obtain and install the SDK before running this example from its root directory.
python examples/run_workflow.py from_photos