How pradyumna-chacham/yolov9-deepsort-mot works
This repository is a configurable video multi-object tracking application. Its main workflow loads configuration, constructs a detector and tracker, processes video frames into persistent tracks, annotates and writes video, and optionally exports JSON and MOT predictions. A separate evaluation utility compares MOT predictions with sequence ground truth. The README documents these capabilities; the sampled orchestrator confirms the main frame loop and exports, while some entry-point and evaluation relationships rely on README statements or the source index.
Main entry points: orchestrator.py Pipeline orchestrator · run_demo.py Demo entry point · schemas.py Tracking schemas · config.py Config loader
Components 27
Run setup
- YAML settings
configs/default.yaml - Config loader
src/config.py - Demo entry point
scripts/run_demo.py - Detector factory
src/detectors/factory.py - Tracker factory
src/trackers/factory.py
Tracking pipeline
- Pipeline orchestrator
src/pipeline/orchestrator.py - Video reader
src/io/video_reader.py - Detector interface
src/detectors/base.py - Ultralytics detector
src/detectors/ultralytics_adapter.py - YOLOv9 adapter
src/detectors/yolov9.py - Tracker interface
src/trackers/base.py - DeepSORT tracker
src/trackers/deepsort_tracker.py - Box utilities
src/utils/bbox_utils.py - Tracking schemas
src/schemas.py
Tracking outputs
- Frame annotator
src/annotator.py - Video writer
src/io/video_writer.py - MOT exporter
src/io/mot_exporter.py - Track JSON export
src/pipeline/orchestrator.py - Annotated video
- MOT predictions
- Caption interface
src/captioning/base.py - Template captioner
src/captioning/template_captioner.py
MOT evaluation
- MOT evaluator
evaluation/evaluate_mot.py - MOT ground truth
- Evaluation metrics
Other components
- Run tracking
- Input video
Connections 35
- Run tracking → Demo entry point: starts
README.md - YAML settings → Config loader: loaded by
README.md - Demo entry point → Config loader: loads
README.md - Demo entry point → Detector factory: creates detector
README.md - Demo entry point → Tracker factory: creates tracker
README.md - Demo entry point → Pipeline orchestrator: runs
README.md - Config loader → Detector factory: configures
src/detectors/factory.py - Config loader → Tracker factory: configures
src/trackers/factory.py - Detector factory → Ultralytics detector: selects
src/detectors/factory.py - Detector factory → YOLOv9 adapter: selects
src/detectors/factory.py - Tracker factory → DeepSORT tracker: selects
src/trackers/factory.py - Pipeline orchestrator → Video reader: reads frames
src/pipeline/orchestrator.py - Input video → Video reader: supplies
README.md - Pipeline orchestrator → Detector interface: detects frames
src/pipeline/orchestrator.py - Ultralytics detector → Detector interface: implements
src/detectors/ultralytics_adapter.py - YOLOv9 adapter → Detector interface: implements
src/detectors/yolov9.py - Pipeline orchestrator → Tracker interface: updates tracks
src/pipeline/orchestrator.py - DeepSORT tracker → Tracker interface: implements
src/trackers/deepsort_tracker.py - DeepSORT tracker → Box utilities: converts boxes
src/trackers/deepsort_tracker.py - Pipeline orchestrator → Frame annotator: annotates tracks
src/pipeline/orchestrator.py - Pipeline orchestrator → Video writer: writes frames
src/pipeline/orchestrator.py - Video writer → Annotated video: produces
README.md - Pipeline orchestrator → MOT exporter: exports tracks
src/pipeline/orchestrator.py - MOT exporter → MOT predictions: writes predictions
README.md - Pipeline orchestrator → Track JSON export: saves JSON
src/pipeline/orchestrator.py - Detector interface → Tracking schemas: returns detections
src/detectors/base.py - Tracker interface → Tracking schemas: returns tracks
src/trackers/base.py - Frame annotator → Tracking schemas: renders tracks
src/annotator.py - MOT exporter → Tracking schemas: formats tracks
src/io/mot_exporter.py - Template captioner → Caption interface: implements
src/captioning/template_captioner.py - Caption interface → Tracking schemas: uses segments
src/captioning/base.py - Run tracking → MOT evaluator: runs evaluation
README.md - MOT predictions → MOT evaluator: evaluated by
README.md - MOT ground truth → MOT evaluator: compared with
README.md - MOT evaluator → Evaluation metrics: writes report
README.md