Important
This project is currently a Work In Progress and may undergo significant changes. It is not recommended for use in production environments until further notice. Please check back regularly for updates.
Use of this code is at your own risk and discretion. It is advisable to consult with the project owner before deploying or integrating into any critical systems.
Welcome to the official implementation of YOLOv7 and YOLOv9. This repository will contains the complete codebase, pre-trained models, and detailed instructions for training and deploying YOLOv9.
- This is the official YOLO model implementation with an MIT License.
- For quick deployment: you can enter directly in the terminal:
$pip install git+https://github.com/WongKinYiu/yolov9mit.git
$yolo task=inference task.source=0 # source could be a single file, video, image folder, webcam ID
- YOLOv9: Learning What You Want to Learn Using Programmable Gradient Information
- YOLOv7: Trainable Bag-of-Freebies Sets New State-of-the-Art for Real-Time Object Detectors
To get started with YOLOv9, clone this repository and install the required dependencies:
git clone git@github.com:WongKinYiu/yolov9mit.git
cd yolov9mit
pip install -r requirements.txt
- Autodownload weights/datasets
- Pip installable
- Support for devices:
- CUDA
- MPS (PyTorch 2.3+)
- CPU
- Task:
- Training
- Inference
- Validation
These are simple examples. For more customization details, please refer to Notebooks and lower-level modifications HOWTO.
To train YOLOv9 on your dataset:
- Modify the configuration file
data/config.yaml
to point to your dataset. - Run the training script:
python lazy.py task=train task.batch_size=8 model=v9-c
To perform transfer learning with YOLOv9:
python lazy.py task=train task.batch_size=8 model=v9-c task.dataset={dataset_config}
To evaluate the model performance, use:
python lazy.py weights=v9-c.pt # if cloned from GitHub
yolo task=inference task.source={Any} # if pip installed
To validate the model performance, use:
# Work In Progress...
Contributions to the YOLOv9 project are welcome! See CONTRIBUTING for guidelines on how to contribute.
@misc{wang2024yolov9,
title={YOLOv9: Learning What You Want to Learn Using Programmable Gradient Information},
author={Chien-Yao Wang and I-Hau Yeh and Hong-Yuan Mark Liao},
year={2024},
eprint={2402.13616},
archivePrefix={arXiv},
primaryClass={cs.CV}
}