# steevy-cpu/sneaker_impact_training architecture

> Architecture diagram of the GitHub repository steevy-cpu/sneaker_impact_training, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/steevy-cpu/sneaker_impact_training
- Repository: https://github.com/steevy-cpu/sneaker_impact_training

## Overview

This repository is a sneaker data-collection and identification toolkit. Its main offline workflow names incoming table photos, segments them into shoe regions, pairs shoes, and saves crops for later brand/model identification and catalog matching. A separate live-camera workflow lets an operator label detected shoes and can push records to a dashboard. Dataset review and export support curation. The README is empty, so capabilities and relationships here are based on the source index and the excerpts provided; unsampled modules are represented only where the tree or index supports them.

Main entry points: [`label_live.py`](https://github.com/steevy-cpu/sneaker_impact_training/blob/main/label_live.py) (Live Labeling), [`split_table.py`](https://github.com/steevy-cpu/sneaker_impact_training/blob/main/split_table.py) (Table Split), [`config.py`](https://github.com/steevy-cpu/sneaker_impact_training/blob/main/config.py) (Configuration), [`identify_brands.py`](https://github.com/steevy-cpu/sneaker_impact_training/blob/main/identify_brands.py) (Brand Workflow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_table["Table Processing"]
  node_incoming["Table Photos"]
  node_ingest["Photo Ingest<br/>[ingest_table.py]"]
  node_split["Table Split<br/>[split_table.py]"]
  node_segment["Segmentation<br/>[segment_utils.py]"]
  node_pair["Pairing<br/>[pair_utils.py]"]
  node_saved[("Pair Crops")]
end

subgraph group_identify["Identification"]
  node_brand["Brand Identification<br/>[brand_utils.py]"]
  node_brandflow["Brand Workflow<br/>[identify_brands.py]"]
  node_embed["Image Embeddings<br/>[embedder_utils.py]"]
  node_catalog["Catalog Index"]
  node_model["Model Search<br/>[model_search.py]"]
end

subgraph group_live["Live Labeling"]
  node_liveapp["Live Labeling<br/>[label_live.py]"]
  node_camera["Camera Access<br/>[camera_utils.py]"]
  node_detector["Live Detection<br/>[detector_utils.py]"]
  node_tracking["Shoe Tracking<br/>[tracking_utils.py]"]
end

subgraph group_curation["Dataset and Dashboard"]
  node_dataset["Dataset Operations<br/>[dataset_utils.py]"]
  node_review["Dataset Review<br/>[dataset_review.py]"]
  node_export["Label Export<br/>[label_export.py]"]
  node_dashboard["Dashboard Client"]
end

subgraph group_shared["Shared Runtime"]
  node_config["Configuration<br/>[config.py]"]
  node_save["Crop Saving<br/>[save_utils.py]"]
end

node_operator(("Operator"))
node_dashboardservice["Dashboard API"]

node_operator -->|"submits photos"| node_ingest
node_ingest -->|"copies or moves"| node_incoming
node_operator -->|"starts processing"| node_split
node_split -->|"segments photos"| node_segment
node_split -->|"pairs shoes"| node_pair
node_split -.->|"writes crops"| node_saved
node_brandflow -->|"identifies brands"| node_brand
node_brandflow -->|"exports labels"| node_export
node_catalog -->|"embeds catalog images"| node_embed
node_model -->|"embeds query images"| node_embed
node_model -.->|"queries index"| node_catalog
node_operator -->|"labels shoes"| node_liveapp
node_liveapp -->|"reads frames"| node_camera
node_liveapp -->|"starts detector"| node_detector
node_liveapp -->|"uses tracker"| node_tracking
node_review -->|"loads records"| node_dataset
node_review -.->|"reviews crops"| node_saved
node_liveapp -->|"pushes labels"| node_dashboard
node_dashboard -->|"sends REST requests"| node_dashboardservice
node_ingest -->|"reads paths"| node_config
node_split -->|"reads settings"| node_config
node_brandflow -->|"reads settings"| node_config
node_liveapp -->|"reads settings"| node_config

click node_ingest "https://github.com/steevy-cpu/sneaker_impact_training/blob/main/ingest_table.py"
click node_split "https://github.com/steevy-cpu/sneaker_impact_training/blob/main/split_table.py"
click node_segment "https://github.com/steevy-cpu/sneaker_impact_training/blob/main/segment_utils.py"
click node_pair "https://github.com/steevy-cpu/sneaker_impact_training/blob/main/pair_utils.py"
click node_brand "https://github.com/steevy-cpu/sneaker_impact_training/blob/main/brand_utils.py"
click node_brandflow "https://github.com/steevy-cpu/sneaker_impact_training/blob/main/identify_brands.py"
click node_embed "https://github.com/steevy-cpu/sneaker_impact_training/blob/main/embedder_utils.py"
click node_catalog "https://github.com/steevy-cpu/sneaker_impact_training/blob/main/build_catalog_index.py"
click node_model "https://github.com/steevy-cpu/sneaker_impact_training/blob/main/model_search.py"
click node_liveapp "https://github.com/steevy-cpu/sneaker_impact_training/blob/main/label_live.py"
click node_camera "https://github.com/steevy-cpu/sneaker_impact_training/blob/main/camera_utils.py"
click node_detector "https://github.com/steevy-cpu/sneaker_impact_training/blob/main/detector_utils.py"
click node_tracking "https://github.com/steevy-cpu/sneaker_impact_training/blob/main/tracking_utils.py"
click node_dataset "https://github.com/steevy-cpu/sneaker_impact_training/blob/main/dataset_utils.py"
click node_review "https://github.com/steevy-cpu/sneaker_impact_training/blob/main/dataset_review.py"
click node_export "https://github.com/steevy-cpu/sneaker_impact_training/blob/main/label_export.py"
click node_dashboard "https://github.com/steevy-cpu/sneaker_impact_training/blob/main/dashboard_client.py"
click node_config "https://github.com/steevy-cpu/sneaker_impact_training/blob/main/config.py"
click node_save "https://github.com/steevy-cpu/sneaker_impact_training/blob/main/save_utils.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_incoming,node_ingest,node_split,node_segment,node_pair,node_saved toneBlue
class node_brand,node_brandflow,node_embed,node_catalog,node_model toneAmber
class node_liveapp,node_camera,node_detector,node_tracking,node_dashboardservice toneMint
class node_dataset,node_review,node_export,node_dashboard toneRose
class node_config,node_save,node_operator toneIndigo
```

## Components

### Table Processing

- **Table Photos**
- [Photo Ingest](https://github.com/steevy-cpu/sneaker_impact_training/blob/main/ingest_table.py): `ingest_table.py`
- [Table Split](https://github.com/steevy-cpu/sneaker_impact_training/blob/main/split_table.py): `split_table.py`
- [Segmentation](https://github.com/steevy-cpu/sneaker_impact_training/blob/main/segment_utils.py): `segment_utils.py`
- [Pairing](https://github.com/steevy-cpu/sneaker_impact_training/blob/main/pair_utils.py): `pair_utils.py`
- **Pair Crops**

### Identification

- [Brand Identification](https://github.com/steevy-cpu/sneaker_impact_training/blob/main/brand_utils.py): `brand_utils.py`
- [Brand Workflow](https://github.com/steevy-cpu/sneaker_impact_training/blob/main/identify_brands.py): `identify_brands.py`
- [Image Embeddings](https://github.com/steevy-cpu/sneaker_impact_training/blob/main/embedder_utils.py): `embedder_utils.py`
- [Catalog Index](https://github.com/steevy-cpu/sneaker_impact_training/blob/main/build_catalog_index.py): `build_catalog_index.py`
- [Model Search](https://github.com/steevy-cpu/sneaker_impact_training/blob/main/model_search.py): `model_search.py`

### Live Labeling

- [Live Labeling](https://github.com/steevy-cpu/sneaker_impact_training/blob/main/label_live.py): `label_live.py`
- [Camera Access](https://github.com/steevy-cpu/sneaker_impact_training/blob/main/camera_utils.py): `camera_utils.py`
- [Live Detection](https://github.com/steevy-cpu/sneaker_impact_training/blob/main/detector_utils.py): `detector_utils.py`
- [Shoe Tracking](https://github.com/steevy-cpu/sneaker_impact_training/blob/main/tracking_utils.py): `tracking_utils.py`

### Dataset and Dashboard

- [Dataset Operations](https://github.com/steevy-cpu/sneaker_impact_training/blob/main/dataset_utils.py): `dataset_utils.py`
- [Dataset Review](https://github.com/steevy-cpu/sneaker_impact_training/blob/main/dataset_review.py): `dataset_review.py`
- [Label Export](https://github.com/steevy-cpu/sneaker_impact_training/blob/main/label_export.py): `label_export.py`
- [Dashboard Client](https://github.com/steevy-cpu/sneaker_impact_training/blob/main/dashboard_client.py): `dashboard_client.py`

### Shared Runtime

- [Configuration](https://github.com/steevy-cpu/sneaker_impact_training/blob/main/config.py): `config.py`
- [Crop Saving](https://github.com/steevy-cpu/sneaker_impact_training/blob/main/save_utils.py): `save_utils.py`

### Other components

- **Operator**
- **Dashboard API**

## Connections

- Operator → Photo Ingest: submits photos (evidence: `ingest_table.py`)
- Photo Ingest → Table Photos: copies or moves (evidence: `ingest_table.py`)
- Operator → Table Split: starts processing
- Table Split → Segmentation: segments photos (evidence: `split_table.py`)
- Table Split → Pairing: pairs shoes (evidence: `split_table.py`)
- Table Split → Pair Crops: writes crops
- Brand Workflow → Brand Identification: identifies brands (evidence: `identify_brands.py`)
- Brand Workflow → Label Export: exports labels (evidence: `identify_brands.py`)
- Catalog Index → Image Embeddings: embeds catalog images (evidence: `build_catalog_index.py`)
- Model Search → Image Embeddings: embeds query images (evidence: `model_search.py`)
- Model Search → Catalog Index: queries index
- Operator → Live Labeling: labels shoes (evidence: `label_live.py`)
- Live Labeling → Camera Access: reads frames (evidence: `label_live.py`)
- Live Labeling → Live Detection: starts detector (evidence: `label_live.py`)
- Live Labeling → Shoe Tracking: uses tracker (evidence: `label_live.py`)
- Dataset Review → Dataset Operations: loads records (evidence: `dataset_review.py`)
- Dataset Review → Pair Crops: reviews crops
- Live Labeling → Dashboard Client: pushes labels (evidence: `label_live.py`)
- Dashboard Client → Dashboard API: sends REST requests (evidence: `dashboard_client.py`)
- Photo Ingest → Configuration: reads paths (evidence: `ingest_table.py`)
- Table Split → Configuration: reads settings (evidence: `split_table.py`)
- Brand Workflow → Configuration: reads settings (evidence: `identify_brands.py`)
- Live Labeling → Configuration: reads settings (evidence: `label_live.py`)
