You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Create Dataset
User ─▶ Frontend ─▶ API ─▶ Database
└─▶ Create directories
2. Upload Images
User ─▶ Select Files ─▶ API ─▶ Save to filesystem
└─▶ Store metadata in DB
3. Label Images
User ─▶ Draw Boxes ─▶ Frontend ─▶ API ─▶ Store annotations
└─▶ Update image status
4. View Statistics
User ─▶ Request ─▶ API ─▶ Query DB ─▶ Aggregate data
└─▶ Return stats
Model Training Flow
┌──────────────────────────────────────────────────────────┐
│ Training Job Creation │
└────────────┬─────────────────────────────────────────────┘
│
▼
┌─────────────────┐
│ Validate Inputs │
│ - Dataset exists│
│ - Has labels │
│ - Model type │
└────────┬────────┘
│
▼
┌─────────────────┐ ┌──────────────┐
│ Create Job │────────▶│ Save to DB │
│ Status: PENDING │ │ (job_id=123) │
└────────┬────────┘ └──────────────┘
│
▼
┌─────────────────┐
│ Start Background│
│ Task │
└────────┬────────┘
│
┌───────────▼────────────┐
│ Background Training │
├────────────────────────┤
│ 1. Update status: │
│ RUNNING │
│ │
│ 2. Prepare dataset │
│ - Create YAML │
│ - Organize files │
│ - Create splits │
│ │
│ 3. Initialize YOLO │
│ - Load base model │
│ - Configure params │
│ │
│ 4. Train model │
│ - Run epochs │
│ - Update progress │
│ - Save checkpoints │
│ │
│ 5. Save best model │
│ - Store file path │
│ - Update metrics │
│ │
│ 6. Update status: │
│ COMPLETED │
└────────────────────────┘
Inference Flow
┌────────────┐
│ User │
│ uploads │
│ test image │
└──────┬─────┘
│
▼
┌────────────────┐
│ Frontend │
│ - Select model │
│ - Set confidence│
└──────┬─────────┘
│
▼
┌────────────────────────────┐
│ Backend API │
│ 1. Validate model exists │
│ 2. Check deployment status │
│ 3. Save temp file │
└──────┬─────────────────────┘
│
▼
┌────────────────────────────┐
│ Load YOLO Model │
│ - Check cache │
│ - Load from file if needed │
└──────┬─────────────────────┘
│
▼
┌────────────────────────────┐
│ Run Inference │
│ - Process image │
│ - Detect objects │
│ - Filter by confidence │
│ - Apply NMS │
└──────┬─────────────────────┘
│
▼
┌────────────────────────────┐
│ Format Results │
│ - Bounding boxes │
│ - Class labels │
│ - Confidence scores │
│ - Inference time │
└──────┬─────────────────────┘
│
▼
┌────────────────────────────┐
│ Return to Frontend │
│ - Display boxes on image │
│ - Show detection list │
│ - Show metrics │
└────────────────────────────┘