Training repository for YOLOv5 and the LOCO dataset using the provided Docker image.
- Docker, Nvidia-Docker and Nvidia Driver, see here
- Spin up the container
bash start.sh
- Optional: Within the container, install Weights&Biases:
pip install wandb
and loginwandb login
. - Download the LOCO Dataset
bash data/scripts/get_loco.sh
- Train a model on loco
$ python train.py --data loco_all.yaml # train a model
$ python test.py --data loco_all.yaml --weights yolov5s.pt # test a model for Precision, Recall and mAP
$ python detect.py --weights yolov5s.pt --source path/to/images # run inference on images and videos