Skills

PROJECT DETAILS


YOLO Training & Inference Orchestration Architecture


YOLO Training & Inference Orchestration Architecture is the public-safe, anonymized architecture documentation of an internal, production-oriented AI vision platform. It documents how a user-facing web layer is kept separate from GPU-intensive machine learning workloads, and why.

It is documentation only: no runnable application code, private datasets, model weights, credentials, real metrics or production deployment files.

What it documents:

- Microservice separation: a Django web and administration layer separated from a FastAPI-based AI processing layer.
- GPU-backed AI execution: YOLO training, validation, inference and SAHI-based high-resolution tiled inference, executed through a dedicated compute service.
- Training runtime flexibility: single-GPU and multi-GPU training strategies, including DataParallel support and evaluated DDP patterns.
- Dataset configuration management: database-backed dataset configuration, label and class metadata, and YOLO-compatible dataset configuration generation.
- MLOps foundations: experiment tracking, metric logging, artifact lineage and model reference management.
- Operational risk analysis: explicit discussion of synchronous execution, shared storage coupling, GPU contention, artifact governance and scale-out triggers.
- Fit-for-purpose evolution planning: a roadmap focused on internal reliability and traceability rather than premature distributed infrastructure.

One documented decision, as an example of the level of detail: Ubuntu was selected as the runtime environment for GPU-backed training because PyTorch, CUDA, NVIDIA drivers and multi-GPU training are highly sensitive to operating system, driver and CUDA-runtime compatibility. Windows was suitable for simpler single-GPU execution, but multi-GPU and DDP-oriented workflows introduced operational complexity that Ubuntu avoided.

The four diagrams shown here are rendered from the Mermaid sources committed in the repository: architecture overview, training flow, SAHI tiled inference flow, and incremental CI training.

Framework: AI / Platform Architecture

YOLO Training & Inference Orchestration Architecture

Technology Stack:

Python, Django, FastAPI, PostgreSQL, REST APIs, PyTorch, CUDA, YOLO, SAHI, OpenCV, SAM (Segment Anything), Pillow, NumPy, ClearML, YAML, JSON, COCO annotation format, YOLO dataset format, CVAT, Roboflow, Docker, Docker Compose, Linux, Ubuntu, Jupyter, shared storage for artifact exchange


About Team

Company / Institution: Anonymized Internal AI Vision Platform — Architecture Case Study

Developers Team: Marco Parra



Skills

Project Images


Skills

EndPoint & Routes


Available EndPoints

EndPoint Description URL
diagrams/architecture-overview.mmd Vista general de la arquitectura: capa web Django separada de la capa de orquestación FastAPI, con la capa de cómputo GPU, el almacenamiento de artefactos y la capa de metadatos (ClearML + PostgreSQL).
diagrams/training-flow.mmd Flujo de entrenamiento YOLO multi-seed, coordinado por FastAPI sobre el servicio de cómputo GPU.
diagrams/inference-flow.mmd Inferencia SAHI por tiles sobre imagen de alta resolución: troceado con solapamiento, inferencia por tile, fusión con NMS y manifiesto de salida.
diagrams/ci-training-flow.mmd Entrenamiento incremental (CI) con seguimiento de experimentos y linaje de artefactos.
.github/ARCHITECTURE-CRITICAL-REVIEW.md Análisis de riesgos operativos: ejecución síncrona, acoplamiento por almacenamiento compartido, contención de GPU y disparadores de escalado.