Spaces:
Running on Zero
Running on Zero
Commit ·
cb487d6
1
Parent(s): ae62fae
Deploy v12 Primeo-fused single-space mapper
Browse files- SPACE_FILE_LIST.txt +9 -0
- docs/docs/PRIMEO_FUSION_NOTES.md +27 -0
- memory/memory/model_stack.json +10 -0
- memory/memory/pipeline_schema.json +20 -0
- memory/memory/production_rules.json +21 -0
- tests/README.md +3 -0
SPACE_FILE_LIST.txt
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
README.md
|
| 2 |
+
app.py
|
| 3 |
+
deploy_to_hf.ps1
|
| 4 |
+
docs/PRIMEO_FUSION_NOTES.md
|
| 5 |
+
memory/model_stack.json
|
| 6 |
+
memory/pipeline_schema.json
|
| 7 |
+
memory/production_rules.json
|
| 8 |
+
requirements.txt
|
| 9 |
+
tests/README.md
|
docs/docs/PRIMEO_FUSION_NOTES.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Primeo Fusion Notes
|
| 2 |
+
|
| 3 |
+
Primeo had strong pipeline concepts but was split across Flutter, HF Inference API, device temp storage, and hardcoded garment polygons.
|
| 4 |
+
|
| 5 |
+
v12 ports the useful concepts into one Hugging Face Gradio Space:
|
| 6 |
+
|
| 7 |
+
- PipelineOutput
|
| 8 |
+
- PiecePlan
|
| 9 |
+
- qualityScore
|
| 10 |
+
- warnings
|
| 11 |
+
- productionReady
|
| 12 |
+
- staged pipeline logic
|
| 13 |
+
|
| 14 |
+
v12 rejects the split architecture:
|
| 15 |
+
|
| 16 |
+
- no user API key box
|
| 17 |
+
- no Flutter runtime
|
| 18 |
+
- no hardcoded final garment polygons as the only source of truth
|
| 19 |
+
- no separate Supabase/job layer for v1
|
| 20 |
+
|
| 21 |
+
The real production core remains:
|
| 22 |
+
|
| 23 |
+
- uploaded template ZIP
|
| 24 |
+
- white-only printable region scanner
|
| 25 |
+
- role-safe mapping
|
| 26 |
+
- pocket continuity
|
| 27 |
+
- transparent PNG export
|
memory/memory/model_stack.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"current": "deterministic_cv_core",
|
| 3 |
+
"zerogpu_slots": {
|
| 4 |
+
"vlm_art_director": "future optional",
|
| 5 |
+
"object_detector": "Grounding DINO future optional",
|
| 6 |
+
"segmentation": "SAM/SAM2 future optional",
|
| 7 |
+
"ocr_text_regions": "Florence future optional"
|
| 8 |
+
},
|
| 9 |
+
"rule": "AI may suggest layout, deterministic renderer owns final production math."
|
| 10 |
+
}
|
memory/memory/pipeline_schema.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"ported_from_primeo": [
|
| 3 |
+
"PiecePlan",
|
| 4 |
+
"BoundingBox",
|
| 5 |
+
"PipelineOutput",
|
| 6 |
+
"qualityScore",
|
| 7 |
+
"warnings",
|
| 8 |
+
"productionReady",
|
| 9 |
+
"progressive pipeline stages"
|
| 10 |
+
],
|
| 11 |
+
"kept_from_v11": [
|
| 12 |
+
"white-only scanner",
|
| 13 |
+
"real template ZIP parsing",
|
| 14 |
+
"no hero spam",
|
| 15 |
+
"pocket continuity from front underlay",
|
| 16 |
+
"transparent print PNG export",
|
| 17 |
+
"manifest JSON"
|
| 18 |
+
],
|
| 19 |
+
"runtime_target": "single Hugging Face Gradio Space"
|
| 20 |
+
}
|
memory/memory/production_rules.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": "v12-primeo-fused",
|
| 3 |
+
"rules": [
|
| 4 |
+
"Only white printable areas are pieces.",
|
| 5 |
+
"Colored seam, bleed, blur, safe-zone, label, and guide marks are restrictions only.",
|
| 6 |
+
"Front body gets hero by default.",
|
| 7 |
+
"No hero spam on hood, sleeves, trim, pocket, or label.",
|
| 8 |
+
"Pocket/flap/overlay must inherit rendered parent underlay.",
|
| 9 |
+
"Export transparent PNGs only, no template board or guide lines.",
|
| 10 |
+
"Quality Tribunal must mark non-ready if hero repeats on non-front pieces."
|
| 11 |
+
],
|
| 12 |
+
"piece_roles": {
|
| 13 |
+
"front_body": "hero_subject",
|
| 14 |
+
"back_body": "secondary_scene_or_atmosphere",
|
| 15 |
+
"hood": "abstract_atmosphere_only",
|
| 16 |
+
"sleeve": "motion_texture_background",
|
| 17 |
+
"trim": "low_detail_texture",
|
| 18 |
+
"inside_label": "small_hidden_detail",
|
| 19 |
+
"overlay_pocket": "exact_parent_underlay"
|
| 20 |
+
}
|
| 21 |
+
}
|
tests/README.md
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Tests
|
| 2 |
+
|
| 3 |
+
Drop sample artwork and template zips here for local/HF test runs.
|