forked from PaddlePaddle/Paddle
-
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.
support yolov6s_v2_qat_dis (PaddlePaddle#1419)
- Loading branch information
Showing
5 changed files
with
70 additions
and
26 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
33 changes: 33 additions & 0 deletions
33
example/auto_compression/pytorch_yolo_series/configs/yolov6s_v2_qat_dis.yaml
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
Global: | ||
model_dir: ./yolov6s.onnx | ||
image_path: None # If image_path is set, it will be trained directly based on unlabeled images, no need to set the COCO dataset path. | ||
coco_dataset_dir: dataset/coco/ | ||
coco_train_image_dir: train2017 | ||
coco_train_anno_path: annotations/instances_train2017.json | ||
coco_val_image_dir: val2017 | ||
coco_val_anno_path: annotations/instances_val2017.json | ||
arch: YOLOv6 | ||
nms_num_top_k: 1000 | ||
|
||
Distillation: | ||
alpha: 1.0 | ||
loss: soft_label | ||
|
||
Quantization: | ||
onnx_format: true | ||
activation_quantize_type: 'moving_average_abs_max' | ||
quantize_op_types: | ||
- conv2d | ||
- depthwise_conv2d | ||
|
||
TrainConfig: | ||
train_iter: 8000 | ||
eval_iter: 1000 | ||
learning_rate: | ||
type: CosineAnnealingDecay | ||
learning_rate: 0.00003 | ||
T_max: 8000 | ||
optimizer_builder: | ||
optimizer: | ||
type: SGD | ||
weight_decay: 0.00004 |
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
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
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