-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update pphuman ppvehicle tiny models (#7726)
* update pphuman ppvechicle new models, test=document_fixb * update docs, test=document_fixb * update docs, test=document_fix * fix configs, test=document_fix
- Loading branch information
1 parent
d5d8650
commit 9e4e0ad
Showing
13 changed files
with
187 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
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
78 changes: 78 additions & 0 deletions
78
configs/pphuman/ppyoloe_plus_crn_t_p2_auxhead_320_60e_pphuman.yml
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,78 @@ | ||
_BASE_: [ | ||
'../datasets/coco_detection.yml', | ||
'../runtime.yml', | ||
'../ppyoloe/_base_/optimizer_300e.yml', | ||
'../ppyoloe/_base_/ppyoloe_plus_crn_tiny_auxhead.yml', | ||
'../ppyoloe/_base_/ppyoloe_plus_reader_320.yml', | ||
] | ||
|
||
log_iter: 100 | ||
snapshot_epoch: 4 | ||
weights: output/ppyoloe_plus_crn_t_p2_auxhead_320_60e_pphuman/model_final | ||
|
||
pretrain_weights: https://paddledet.bj.bcebos.com/models/ppyoloe_plus_crn_t_p2_auxhead_320_300e_coco.pdparams # 320*320 COCO mAP 36.3 | ||
depth_mult: 0.33 | ||
width_mult: 0.375 | ||
|
||
|
||
num_classes: 1 | ||
TrainDataset: | ||
!COCODataSet | ||
image_dir: "" | ||
anno_path: annotations/train.json | ||
dataset_dir: dataset/pphuman | ||
data_fields: ['image', 'gt_bbox', 'gt_class', 'is_crowd'] | ||
|
||
EvalDataset: | ||
!COCODataSet | ||
image_dir: "" | ||
anno_path: annotations/val.json | ||
dataset_dir: dataset/pphuman | ||
|
||
TestDataset: | ||
!ImageFolder | ||
anno_path: annotations/val.json | ||
dataset_dir: dataset/pphuman | ||
|
||
|
||
TrainReader: | ||
batch_size: 8 | ||
|
||
|
||
epoch: 60 | ||
LearningRate: | ||
base_lr: 0.001 | ||
schedulers: | ||
- !CosineDecay | ||
max_epochs: 72 | ||
- !LinearWarmup | ||
start_factor: 0. | ||
epochs: 1 | ||
|
||
|
||
architecture: PPYOLOEWithAuxHead | ||
PPYOLOEWithAuxHead: | ||
backbone: CSPResNet | ||
neck: CustomCSPPAN | ||
yolo_head: PPYOLOEHead | ||
aux_head: SimpleConvHead | ||
post_process: ~ | ||
|
||
CSPResNet: | ||
return_idx: [0, 1, 2, 3] # index 0 stands for P2 | ||
|
||
CustomCSPPAN: | ||
out_channels: [384, 384, 384, 384] | ||
|
||
SimpleConvHead: | ||
fpn_strides: [32, 16, 8, 4] | ||
|
||
PPYOLOEHead: | ||
fpn_strides: [32, 16, 8, 4] | ||
static_assigner_epoch: -1 | ||
nms: | ||
name: MultiClassNMS | ||
nms_top_k: 1000 | ||
keep_top_k: 300 | ||
score_threshold: 0.01 | ||
nms_threshold: 0.7 |
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
79 changes: 79 additions & 0 deletions
79
configs/ppvehicle/ppyoloe_plus_crn_t_p2_auxhead_320_60e_ppvehicle.yml
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,79 @@ | ||
_BASE_: [ | ||
'../datasets/coco_detection.yml', | ||
'../runtime.yml', | ||
'../ppyoloe/_base_/optimizer_300e.yml', | ||
'../ppyoloe/_base_/ppyoloe_plus_crn_tiny_auxhead.yml', | ||
'../ppyoloe/_base_/ppyoloe_plus_reader_320.yml', | ||
] | ||
|
||
log_iter: 100 | ||
snapshot_epoch: 4 | ||
weights: output/ppyoloe_plus_crn_t_p2_auxhead_320_60e_ppvehicle/model_final | ||
|
||
pretrain_weights: https://paddledet.bj.bcebos.com/models/ppyoloe_plus_crn_t_p2_auxhead_320_300e_coco.pdparams # 320*320 COCO mAP 36.3 | ||
depth_mult: 0.33 | ||
width_mult: 0.375 | ||
|
||
|
||
num_classes: 1 | ||
TrainDataset: | ||
!COCODataSet | ||
image_dir: "" | ||
anno_path: annotations/train_all.json | ||
dataset_dir: dataset/ppvehicle | ||
data_fields: ['image', 'gt_bbox', 'gt_class', 'is_crowd'] | ||
allow_empty: true | ||
|
||
EvalDataset: | ||
!COCODataSet | ||
image_dir: "" | ||
anno_path: annotations/val_all.json | ||
dataset_dir: dataset/ppvehicle | ||
|
||
TestDataset: | ||
!ImageFolder | ||
anno_path: annotations/val_all.json | ||
dataset_dir: dataset/ppvehicle | ||
|
||
|
||
TrainReader: | ||
batch_size: 8 | ||
|
||
|
||
epoch: 60 | ||
LearningRate: | ||
base_lr: 0.001 | ||
schedulers: | ||
- !CosineDecay | ||
max_epochs: 72 | ||
- !LinearWarmup | ||
start_factor: 0. | ||
epochs: 1 | ||
|
||
|
||
architecture: PPYOLOEWithAuxHead | ||
PPYOLOEWithAuxHead: | ||
backbone: CSPResNet | ||
neck: CustomCSPPAN | ||
yolo_head: PPYOLOEHead | ||
aux_head: SimpleConvHead | ||
post_process: ~ | ||
|
||
CSPResNet: | ||
return_idx: [0, 1, 2, 3] # index 0 stands for P2 | ||
|
||
CustomCSPPAN: | ||
out_channels: [384, 384, 384, 384] | ||
|
||
SimpleConvHead: | ||
fpn_strides: [32, 16, 8, 4] | ||
|
||
PPYOLOEHead: | ||
fpn_strides: [32, 16, 8, 4] | ||
static_assigner_epoch: -1 | ||
nms: | ||
name: MultiClassNMS | ||
nms_top_k: 1000 | ||
keep_top_k: 300 | ||
score_threshold: 0.01 | ||
nms_threshold: 0.7 |
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
File renamed without changes.
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
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