output1_1.mp4
output2_1.mp4
conda create -n YOLO python=3.8
conda activate YOLO
conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch-lts
pip install opencv-python==4.5.5.64
pip install PyYAML
pip install tqdm
- Configure your dataset path in
main.py
for training - Run
bash main.sh $ --train
for training,$
is number of GPUs
- Configure your dataset path in
main.py
for testing - Run
python main.py --test
for testing
- Run
python main.py --demo
for inference
Model | mAPval 50-95 |
mAPval 50 |
params (M) |
FLOPs @640 (B) |
---|---|---|---|---|
YOLOv5n | 28.0 | 45.7 | 1.9 | 4.5 |
YOLOv5s | 37.4 | 56.8 | 7.2 | 16.5 |
YOLOv5m | 45.4 | 64.1 | 21.2 | 49.0 |
YOLOv5l | 49.0 | 67.3 | 46.5 | 109.1 |
├── COCO
├── images
├── train2017
├── 1111.jpg
├── 2222.jpg
├── val2017
├── 1111.jpg
├── 2222.jpg
├── labels
├── train2017
├── 1111.txt
├── 2222.txt
├── val2017
├── 1111.txt
├── 2222.txt