更换文档检测模型
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
pretrain_weights: https://paddledet.bj.bcebos.com/models/mask_rcnn_r50_fpn_1x_coco.pdparams
|
||||
slim: QAT
|
||||
|
||||
QAT:
|
||||
quant_config: {
|
||||
'weight_quantize_type': 'channel_wise_abs_max', 'activation_quantize_type': 'moving_average_abs_max',
|
||||
'weight_bits': 8, 'activation_bits': 8, 'dtype': 'int8', 'window_size': 10000, 'moving_rate': 0.9,
|
||||
'quantizable_layer_type': ['Conv2D', 'Linear']}
|
||||
print_model: True
|
||||
|
||||
epoch: 5
|
||||
|
||||
TrainReader:
|
||||
batch_size: 1
|
||||
|
||||
LearningRate:
|
||||
base_lr: 0.001
|
||||
schedulers:
|
||||
- !PiecewiseDecay
|
||||
gamma: 0.1
|
||||
milestones: [3, 4]
|
||||
- !LinearWarmup
|
||||
start_factor: 0.001
|
||||
steps: 100
|
||||
@@ -0,0 +1,22 @@
|
||||
pretrain_weights: https://paddledet.bj.bcebos.com/models/picodet_s_416_coco_lcnet.pdparams
|
||||
slim: QAT
|
||||
|
||||
QAT:
|
||||
quant_config: {
|
||||
'activation_preprocess_type': 'PACT',
|
||||
'weight_quantize_type': 'channel_wise_abs_max', 'activation_quantize_type': 'moving_average_abs_max',
|
||||
'weight_bits': 8, 'activation_bits': 8, 'dtype': 'int8', 'window_size': 10000, 'moving_rate': 0.9,
|
||||
'quantizable_layer_type': ['Conv2D', 'Linear']}
|
||||
print_model: False
|
||||
|
||||
TrainReader:
|
||||
batch_size: 48
|
||||
|
||||
LearningRate:
|
||||
base_lr: 0.024
|
||||
schedulers:
|
||||
- !CosineDecay
|
||||
max_epochs: 300
|
||||
- !LinearWarmup
|
||||
start_factor: 0.1
|
||||
steps: 300
|
||||
26
paddle_detection/configs/slim/quant/picodet_s_quant.yml
Normal file
26
paddle_detection/configs/slim/quant/picodet_s_quant.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
pretrain_weights: https://paddledet.bj.bcebos.com/models/picodet_s_320_coco.pdparams
|
||||
slim: QAT
|
||||
|
||||
QAT:
|
||||
quant_config: {
|
||||
'activation_preprocess_type': 'PACT',
|
||||
'weight_quantize_type': 'channel_wise_abs_max', 'activation_quantize_type': 'moving_average_abs_max',
|
||||
'weight_bits': 8, 'activation_bits': 8, 'dtype': 'int8', 'window_size': 10000, 'moving_rate': 0.9,
|
||||
'quantizable_layer_type': ['Conv2D', 'Linear']}
|
||||
print_model: False
|
||||
|
||||
epoch: 50
|
||||
LearningRate:
|
||||
base_lr: 0.001
|
||||
schedulers:
|
||||
- !PiecewiseDecay
|
||||
gamma: 0.1
|
||||
milestones:
|
||||
- 30
|
||||
- 40
|
||||
- !LinearWarmup
|
||||
start_factor: 0.
|
||||
steps: 100
|
||||
|
||||
TrainReader:
|
||||
batch_size: 96
|
||||
@@ -0,0 +1,16 @@
|
||||
pretrain_weights: https://paddledet.bj.bcebos.com/models/ppyolo_mbv3_large_coco.pdparams
|
||||
slim: QAT
|
||||
|
||||
QAT:
|
||||
quant_config: {
|
||||
'weight_quantize_type': 'channel_wise_abs_max', 'activation_quantize_type': 'moving_average_abs_max',
|
||||
'weight_bits': 8, 'activation_bits': 8, 'dtype': 'int8', 'window_size': 10000, 'moving_rate': 0.99,
|
||||
'quantizable_layer_type': ['Conv2D', 'Linear']}
|
||||
print_model: True
|
||||
|
||||
PPYOLOFPN:
|
||||
in_channels: [160, 368]
|
||||
coord_conv: true
|
||||
conv_block_num: 0
|
||||
spp: true
|
||||
drop_block: false
|
||||
@@ -0,0 +1,39 @@
|
||||
pretrain_weights: https://paddledet.bj.bcebos.com/models/ppyolo_r50vd_dcn_1x_coco.pdparams
|
||||
slim: QAT
|
||||
|
||||
QAT:
|
||||
quant_config: {
|
||||
'activation_preprocess_type': 'PACT',
|
||||
'weight_quantize_type': 'channel_wise_abs_max', 'activation_quantize_type': 'moving_average_abs_max',
|
||||
'weight_bits': 8, 'activation_bits': 8, 'dtype': 'int8', 'window_size': 10000, 'moving_rate': 0.9,
|
||||
'quantizable_layer_type': ['Conv2D', 'Linear']}
|
||||
print_model: True
|
||||
|
||||
epoch: 50
|
||||
|
||||
LearningRate:
|
||||
base_lr: 0.0005
|
||||
schedulers:
|
||||
- !PiecewiseDecay
|
||||
gamma: 0.1
|
||||
milestones:
|
||||
- 30
|
||||
- 45
|
||||
- !LinearWarmup
|
||||
start_factor: 0.
|
||||
steps: 1000
|
||||
|
||||
OptimizerBuilder:
|
||||
optimizer:
|
||||
momentum: 0.9
|
||||
type: Momentum
|
||||
regularizer:
|
||||
factor: 0.0005
|
||||
type: L2
|
||||
|
||||
PPYOLOFPN:
|
||||
coord_conv: true
|
||||
block_size: 3
|
||||
keep_prob: 0.9
|
||||
spp: true
|
||||
drop_block: false
|
||||
26
paddle_detection/configs/slim/quant/ppyoloe_l_qat.yml
Normal file
26
paddle_detection/configs/slim/quant/ppyoloe_l_qat.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
pretrain_weights: https://paddledet.bj.bcebos.com/models/ppyoloe_crn_l_300e_coco.pdparams
|
||||
slim: QAT
|
||||
|
||||
QAT:
|
||||
quant_config: {
|
||||
'weight_quantize_type': 'channel_wise_abs_max', 'activation_quantize_type': 'moving_average_abs_max',
|
||||
'weight_bits': 8, 'activation_bits': 8, 'dtype': 'int8', 'window_size': 10000, 'moving_rate': 0.9,
|
||||
'quantizable_layer_type': ['Conv2D', 'Linear']}
|
||||
print_model: True
|
||||
|
||||
epoch: 30
|
||||
snapshot_epoch: 5
|
||||
LearningRate:
|
||||
base_lr: 0.001
|
||||
schedulers:
|
||||
- !PiecewiseDecay
|
||||
gamma: 0.1
|
||||
milestones:
|
||||
- 10
|
||||
- 20
|
||||
- !LinearWarmup
|
||||
start_factor: 0.
|
||||
steps: 100
|
||||
|
||||
TrainReader:
|
||||
batch_size: 8
|
||||
@@ -0,0 +1,33 @@
|
||||
pretrain_weights: https://paddledet.bj.bcebos.com/models/ppyolov2_r50vd_dcn_365e_coco.pdparams
|
||||
slim: QAT
|
||||
|
||||
QAT:
|
||||
quant_config: {
|
||||
'activation_preprocess_type': 'PACT',
|
||||
'weight_quantize_type': 'channel_wise_abs_max', 'activation_quantize_type': 'moving_average_abs_max',
|
||||
'weight_bits': 8, 'activation_bits': 8, 'dtype': 'int8', 'window_size': 10000, 'moving_rate': 0.9,
|
||||
'quantizable_layer_type': ['Conv2D', 'Linear']}
|
||||
print_model: True
|
||||
|
||||
epoch: 50
|
||||
snapshot_epoch: 8
|
||||
LearningRate:
|
||||
base_lr: 0.0005
|
||||
schedulers:
|
||||
- !PiecewiseDecay
|
||||
gamma: 0.1
|
||||
milestones:
|
||||
- 30
|
||||
- 45
|
||||
- !LinearWarmup
|
||||
start_factor: 0.
|
||||
steps: 2000
|
||||
|
||||
TrainReader:
|
||||
batch_size: 8
|
||||
|
||||
PPYOLOPAN:
|
||||
drop_block: false
|
||||
block_size: 3
|
||||
keep_prob: 0.9
|
||||
spp: true
|
||||
@@ -0,0 +1,9 @@
|
||||
pretrain_weights: https://paddlemodels.bj.bcebos.com/object_detection/dygraph/ssd_mobilenet_v1_300_120e_voc.pdparams
|
||||
slim: QAT
|
||||
|
||||
QAT:
|
||||
quant_config: {
|
||||
'weight_quantize_type': 'channel_wise_abs_max', 'activation_quantize_type': 'moving_average_abs_max',
|
||||
'weight_bits': 8, 'activation_bits': 8, 'dtype': 'int8', 'window_size': 10000, 'moving_rate': 0.9,
|
||||
'quantizable_layer_type': ['Conv2D', 'Linear']}
|
||||
print_model: True
|
||||
26
paddle_detection/configs/slim/quant/tinypose_qat.yml
Normal file
26
paddle_detection/configs/slim/quant/tinypose_qat.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
pretrain_weights: https://paddledet.bj.bcebos.com/models/keypoint/tinypose_128x96.pdparams
|
||||
slim: QAT
|
||||
|
||||
QAT:
|
||||
quant_config: {
|
||||
'activation_preprocess_type': 'PACT',
|
||||
'weight_quantize_type': 'channel_wise_abs_max', 'activation_quantize_type': 'moving_average_abs_max',
|
||||
'weight_bits': 8, 'activation_bits': 8, 'dtype': 'int8', 'window_size': 10000, 'moving_rate': 0.9,
|
||||
'quantizable_layer_type': ['Conv2D', 'Linear']}
|
||||
print_model: False
|
||||
|
||||
epoch: 50
|
||||
LearningRate:
|
||||
base_lr: 0.001
|
||||
schedulers:
|
||||
- !PiecewiseDecay
|
||||
gamma: 0.1
|
||||
milestones:
|
||||
- 30
|
||||
- 40
|
||||
- !LinearWarmup
|
||||
start_factor: 0.
|
||||
steps: 100
|
||||
|
||||
TrainReader:
|
||||
batch_size: 256
|
||||
34
paddle_detection/configs/slim/quant/yolov3_darknet_qat.yml
Normal file
34
paddle_detection/configs/slim/quant/yolov3_darknet_qat.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
pretrain_weights: https://paddledet.bj.bcebos.com/models/yolov3_darknet53_270e_coco.pdparams
|
||||
slim: QAT
|
||||
|
||||
QAT:
|
||||
quant_config: {
|
||||
'weight_quantize_type': 'channel_wise_abs_max', 'activation_quantize_type': 'moving_average_abs_max',
|
||||
'weight_bits': 8, 'activation_bits': 8, 'dtype': 'int8', 'window_size': 10000, 'moving_rate': 0.9,
|
||||
'quantizable_layer_type': ['Conv2D', 'Linear']}
|
||||
print_model: True
|
||||
|
||||
epoch: 50
|
||||
|
||||
TrainReader:
|
||||
batch_size: 8
|
||||
|
||||
LearningRate:
|
||||
base_lr: 0.0001
|
||||
schedulers:
|
||||
- !PiecewiseDecay
|
||||
gamma: 0.1
|
||||
milestones:
|
||||
- 30
|
||||
- 45
|
||||
- !LinearWarmup
|
||||
start_factor: 0.
|
||||
steps: 1000
|
||||
|
||||
OptimizerBuilder:
|
||||
optimizer:
|
||||
momentum: 0.9
|
||||
type: Momentum
|
||||
regularizer:
|
||||
factor: 0.0005
|
||||
type: L2
|
||||
@@ -0,0 +1,10 @@
|
||||
# Weights of yolov3_mobilenet_v1_coco
|
||||
pretrain_weights: https://paddledet.bj.bcebos.com/models/yolov3_mobilenet_v1_270e_coco.pdparams
|
||||
slim: QAT
|
||||
|
||||
QAT:
|
||||
quant_config: {
|
||||
'weight_quantize_type': 'channel_wise_abs_max', 'activation_quantize_type': 'moving_average_abs_max',
|
||||
'weight_bits': 8, 'activation_bits': 8, 'dtype': 'int8', 'window_size': 10000, 'moving_rate': 0.9,
|
||||
'quantizable_layer_type': ['Conv2D', 'Linear']}
|
||||
print_model: True
|
||||
@@ -0,0 +1,24 @@
|
||||
# Weights of yolov3_mobilenet_v3_coco
|
||||
pretrain_weights: https://paddledet.bj.bcebos.com/models/yolov3_mobilenet_v3_large_270e_coco.pdparams
|
||||
slim: QAT
|
||||
|
||||
QAT:
|
||||
quant_config: {
|
||||
'activation_preprocess_type': 'PACT',
|
||||
'weight_quantize_type': 'channel_wise_abs_max', 'activation_quantize_type': 'moving_average_abs_max',
|
||||
'weight_bits': 8, 'activation_bits': 8, 'dtype': 'int8', 'window_size': 10000, 'moving_rate': 0.9,
|
||||
'quantizable_layer_type': ['Conv2D', 'Linear']}
|
||||
print_model: True
|
||||
|
||||
epoch: 50
|
||||
LearningRate:
|
||||
base_lr: 0.0001
|
||||
schedulers:
|
||||
- !PiecewiseDecay
|
||||
gamma: 0.1
|
||||
milestones:
|
||||
- 35
|
||||
- 45
|
||||
- !LinearWarmup
|
||||
start_factor: 0.
|
||||
steps: 1000
|
||||
Reference in New Issue
Block a user