|
|
2 years ago | |
|---|---|---|
| config | 2 years ago | |
| dataset | 2 years ago | |
| evaluator | 2 years ago | |
| models | 2 years ago | |
| utils | 2 years ago | |
| .gitignore | 2 years ago | |
| README.md | 2 years ago | |
| README_CN.md | 2 years ago | |
| engine.py | 2 years ago | |
| eval.py | 2 years ago | |
| test.py | 2 years ago | |
| train.py | 2 years ago | |
| train.sh | 2 years ago |
YOLO Tutorial
English | 简体中文
We recommend you to use Anaconda to create a conda environment:
conda create -n yolo python=3.6
Then, activate the environment:
conda activate yolo
Requirements:
pip install -r requirements.txt
My environment:
At least, please make sure your torch is version 1.x.
| Configuration | |
|---|---|
| Per GPU Batch Size | 16 |
| Init Lr | 0.01 |
| Warmup Scheduler | Linear |
| Lr Scheduler | Linear |
| Optimizer | SGD |
| Multi Scale Train | True |
Download VOC.
cd <PyTorch_YOLO_Tutorial>
cd dataset/scripts/
sh VOC2007.sh
sh VOC2012.sh
Check VOC
cd <PyTorch_YOLO_Tutorial>
python dataset/voc.py
Train on VOC
For example:
python train.py --cuda -d voc --root path/to/VOCdevkit -v yolov1 -bs 16 --max_epoch 150 --wp_epoch 1 --eval_epoch 10 --fp16 --ema --multi_scale
| Model | Scale | IP | Epoch | AP50 | FPS3090 FP32-bs1 | FLOPs (G) | Params (M) | Weight |
|---|---|---|---|---|---|---|---|---|
| YOLOv1 | 640 | √ | 150 | 76.7 | 37.8 | 21.3 | ckpt | |
| YOLOv2 | 640 | √ | 150 | 79.8 | 53.9 | 30.9 | ckpt | |
| YOLOv3 | 640 | √ | 150 | 82.0 | 167.4 | 54.9 | ckpt | |
| YOLOv4 | 640 | √ | 150 | |||||
| YOLOX | 640 | √ | 150 |
| Model | Scale | IP | Epoch | APval 0.5:0.95 | APtest 0.5:0.95 | Weight |
|---|---|---|---|---|---|---|
| YOLOv1 | 640 | √ | 150 | |||
| YOLOv2 | 640 | √ | 150 | |||
| YOLOv3 | 640 | √ | 250 | |||
| YOLOv4 | 640 | √ | 250 | |||
| YOLOX | 640 | √ | 250 |