Implemented paths
Detection and tracking
Ultralytics inference feeds a ByteTrack-style/Kalman tracker and writes bounded JSON and overlay outputs.
Graph construction
Track histories become spatial-temporal graphs for downstream PyTorch Geometric models.
Batch analysis API
FastAPI manages bounded YouTube analysis tasks, status, cancellation, metrics, and isolated output paths.
Live input
Local files, cameras, and allowlisted RTSP sources can feed the live detector/tracker. WebRTC/HLS re-streaming is not implemented.
Calibrated analytics
Pitch-control aggregates require an explicit, validated homography and usable two-team classification.
Training and export
GraphSAGE training, LoRA fine-tuning, ONNX export, and optional MLflow/DVC integration are present but require deployment-supplied artifacts.
Data flow
frames / local video / approved YouTube URL / allowlisted RTSP
│
▼
Ultralytics detection → tracker identities → spatial-temporal graph
│ │ │
├─ detection JSON ├─ track JSON └─ optional trained GNN
└─ overlays └─ calibrated tactical aggregates (optional)
Reality check
| Capability | Status |
|---|---|
| Synthetic/model-double test coverage | Available in the repository test suite. |
| Real-media model quality | Not established by the repository; validate with licensed data and a versioned checkpoint. |
| GPU throughput and memory | Not established by the audit environment; reproduce on the target driver/CUDA hardware. |
| Events and named-player statistics | Not implemented. Tracker IDs must not be presented as player identities. |
| Model/data provenance | Deployment responsibility; no tracked artifacts establish it. |
Start locally
python3.12 -m venv .venv
source .venv/bin/activate
make setup
make lint
make test
# Requires your own trusted checkpoint and frames
python -m src.pipeline_full \
--frames-dir /path/to/frames \
--weights /path/to/trusted-yolo.pt \
--output-dir outputs/run
The full setup, API security controls, container paths, artifact warnings, and environmental blockers are documented in the repository README and audit reports.