File tree Expand file tree Collapse file tree 2 files changed +46
-28
lines changed
paddlex/repo_apis/PaddleSeg_api/configs Expand file tree Collapse file tree 2 files changed +46
-28
lines changed Original file line number Diff line number Diff line change 1- batch_size : 2
2- iters : 80000
1+ batch_size : 4
2+ iters : 160000
33
44train_dataset :
55 type : Dataset
@@ -8,16 +8,16 @@ train_dataset:
88 num_classes : 19
99 transforms :
1010 - type : ResizeStepScaling
11- min_scale_factor : 0.5
12- max_scale_factor : 2.0
13- scale_step_size : 0.25
11+ min_scale_factor : 0.125
12+ max_scale_factor : 1.5
13+ scale_step_size : 0.125
1414 - type : RandomPaddingCrop
15- crop_size : [512 , 512]
15+ crop_size : [1024 , 512]
1616 - type : RandomHorizontalFlip
1717 - type : RandomDistort
18- brightness_range : 0.4
19- contrast_range : 0.4
20- saturation_range : 0.4
18+ brightness_range : 0.5
19+ contrast_range : 0.5
20+ saturation_range : 0.5
2121 - type : Normalize
2222 mode : train
2323
@@ -39,17 +39,26 @@ model:
3939optimizer :
4040 type : SGD
4141 momentum : 0.9
42- weight_decay : 4 .0e-5
42+ weight_decay : 5 .0e-4
4343
4444lr_scheduler :
4545 type : PolynomialDecay
46- learning_rate : 0.01
46+ learning_rate : 0.005
4747 end_lr : 0
4848 power : 0.9
49+ warmup_iters : 1000
50+ warmup_start_lr : 1.0e-5
4951
5052loss :
5153 types :
52- - type : CrossEntropyLoss
53- - type : CrossEntropyLoss
54- - type : CrossEntropyLoss
54+ - type : OhemCrossEntropyLoss
55+ min_kept : 130000 # batch_size * 1024 * 512 // 16
56+ - type : OhemCrossEntropyLoss
57+ min_kept : 130000
58+ - type : OhemCrossEntropyLoss
59+ min_kept : 130000
5560 coef : [1, 1, 1]
61+
62+ test_config :
63+ aug_eval : True
64+ scales : 0.5
Original file line number Diff line number Diff line change 1- batch_size : 2
2- iters : 80000
1+ batch_size : 4
2+ iters : 160000
33
44train_dataset :
55 type : Dataset
@@ -8,16 +8,16 @@ train_dataset:
88 num_classes : 19
99 transforms :
1010 - type : ResizeStepScaling
11- min_scale_factor : 0.5
12- max_scale_factor : 2.0
13- scale_step_size : 0.25
11+ min_scale_factor : 0.125
12+ max_scale_factor : 1.5
13+ scale_step_size : 0.125
1414 - type : RandomPaddingCrop
15- crop_size : [512 , 512]
15+ crop_size : [1024 , 512]
1616 - type : RandomHorizontalFlip
1717 - type : RandomDistort
18- brightness_range : 0.4
19- contrast_range : 0.4
20- saturation_range : 0.4
18+ brightness_range : 0.5
19+ contrast_range : 0.5
20+ saturation_range : 0.5
2121 - type : Normalize
2222 mode : train
2323
@@ -41,17 +41,26 @@ model:
4141optimizer :
4242 type : SGD
4343 momentum : 0.9
44- weight_decay : 4 .0e-5
44+ weight_decay : 5 .0e-4
4545
4646lr_scheduler :
4747 type : PolynomialDecay
48- learning_rate : 0.01
48+ learning_rate : 0.005
4949 end_lr : 0
5050 power : 0.9
51+ warmup_iters : 1000
52+ warmup_start_lr : 1.0e-5
5153
5254loss :
5355 types :
54- - type : CrossEntropyLoss
55- - type : CrossEntropyLoss
56- - type : CrossEntropyLoss
56+ - type : OhemCrossEntropyLoss
57+ min_kept : 130000 # batch_size * 1024 * 512 // 16
58+ - type : OhemCrossEntropyLoss
59+ min_kept : 130000
60+ - type : OhemCrossEntropyLoss
61+ min_kept : 130000
5762 coef : [1, 1, 1]
63+
64+ test_config :
65+ aug_eval : True
66+ scales : 0.5
You can’t perform that action at this time.
0 commit comments