forked from PaddlePaddle/PaddleSeg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
portrait_pp_humansegv2_lite.yml
73 lines (66 loc) · 1.48 KB
/
portrait_pp_humansegv2_lite.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
batch_size: 8 # 4 GPUs
iters: 50000
save_interval: 1000
train_dataset:
type: Dataset
mode: train
dataset_root: data/portrait14k
train_path: data/portrait14k/train.txt
num_classes: 2
transforms:
- type: Resize
target_size: [256, 144]
- type: ResizeStepScaling
scale_step_size: 0
- type: RandomRotation
- type: RandomPaddingCrop
crop_size: [256, 144]
- type: RandomHorizontalFlip
- type: RandomDistort
- type: RandomBlur
prob: 0.3
- type: Normalize
val_dataset:
type: Dataset
mode: val
dataset_root: data/portrait14k
val_path: data/portrait14k/val.txt
num_classes: 2
transforms:
- type: Resize
target_size: [256, 144]
- type: Normalize
export:
transforms:
- type: Resize
target_size: [256, 144]
- type: Normalize
optimizer:
type: sgd
momentum: 0.9
weight_decay: 0.0005
lr_scheduler:
type: PolynomialDecay
learning_rate: 0.001
end_lr: 0
power: 0.9
loss:
types:
- type: MixedLoss
losses:
- type: CrossEntropyLoss
- type: LovaszSoftmaxLoss
coef: [0.8, 0.2]
coef: [1, 1, 1]
model:
type: MobileSeg
num_classes: 2
backbone:
type: MobileNetV3_large_x1_0 # out channels: [24, 40, 112, 160]
pretrained: https://paddleseg.bj.bcebos.com/dygraph/backbone/mobilenetv3_large_x1_0_ssld.tar.gz
cm_bin_sizes: [1, 2, 4]
backbone_indices: [0, 1, 2]
cm_out_ch: 128
arm_out_chs: [32, 64, 128]
seg_head_inter_chs: [16, 32, 32]
use_last_fuse: True