Skip to content

Training CLI Fork for YOLOv9 #227

@mapo80

Description

@mapo80

Hi everyone,

I've been working on a fork that adds a complete training infrastructure to the YOLOv9 codebase. The original repository focuses on model architecture and research—this fork adds everything needed to actually train and deploy models.

What's Included

Training Infrastructure

  • Complete CLI with YAML configuration and command-line overrides
  • PyTorch Lightning integration for clean, scalable training
  • Multi-GPU support with automatic DDP
  • Mixed precision training (FP16 and BF16)
  • Gradient accumulation and clipping

Data Pipeline

  • COCO JSON and YOLO TXT format support
  • Dataset caching for faster loading
  • Augmentation suite: Mosaic 4/9, MixUp, CutMix, RandomPerspective, RandomHSV, RandomFlip

Evaluation & Monitoring

  • Full COCO evaluation metrics (mAP, AP50, AP75, AR)
  • Confusion matrix and PR curve generation
  • Rich progress bars and eval dashboard
  • TensorBoard integration

Export

  • ONNX export
  • TFLite export (FP32, FP16, INT8 quantization)
  • SavedModel format

Testing

  • 301 unit tests covering data loading, augmentations, metrics, and training pipeline

Repository

https://github.com/mapo80/YOLO

Feedback and contributions are welcome!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions