forked from meituan/YOLOv6
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,18 @@ | ||
###RepOpt version implementation of YOLOv6 | ||
RepOptimizer: https://arxiv.org/pdf/2205.15242.pdf @DingXiaoH | ||
# RepOpt version implementation of YOLOv6 | ||
## Introduction | ||
This is a RepOpt-version implementation of YOLOv6 according to RepOptimizer: https://arxiv.org/pdf/2205.15242.pdf @DingXiaoH | ||
It shows some advantages: | ||
1. With only minor changes. it is compatible with the original repvgg version, and it is easily to reproduce the precision comparable with original version.\ | ||
2. No more train/deploy transform. The target network is consistent when training and deploying.\ | ||
3. Slight training acceleration of about 8%.\ | ||
4. Last and the most important, It is quantization friendly. Compared to the original version, the mAP decrease of PTQ can be greatly improved. Furthermore, the architecture of RepOptimizer is friendly to wrap quant-models for QAT. | ||
|
||
## Training | ||
The training of V6-RepOpt can be divided into two stages, hyperparameter search and target network training. | ||
1. hyperparameter search. This stage is used to get a suitable 'scale' for RepOptimizer, and the result checkpoint can be passed to stage2. Remember to add 'training_mode='hyper_search'' in your config. | ||
'''python tools/train.py --batch 32 --conf configs/repopt/yolov6s_hs.py --data data/coco.yaml --device 0''' | ||
Or you can directly use the pretrained model we provided and omit this stage. | ||
2. Training. Add the flag of 'training_mode='repopt'' and pretraind model 'pretrained='../run/exp/weights/last_ckpt.pt',' in your config | ||
'''python tools/train.py --batch 32 --conf configs/repopt/yolov6s_opt.py --data data/coco.yaml --device 0 ''' | ||
## Evaluation | ||
|