forked from PaddlePaddle/PaddleSeg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ppmattingv2-stdc1-human_512.yml
66 lines (59 loc) · 1.23 KB
/
ppmattingv2-stdc1-human_512.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
batch_size: 1
iters: 1000
train_dataset:
type: MattingDataset
dataset_root: data/PPM-100
train_file: train.txt
transforms:
- type: LoadImages
- type: LimitShort
max_short: 512
- type: RandomCrop
crop_size: [512, 512]
- type: Padding
target_size: [512, 512]
- type: RandomDistort
- type: RandomBlur
prob: 0.1
- type: RandomSharpen
prob: 0.2
- type: RandomNoise
prob: 0.5
- type: RandomReJpeg
prob: 0.2
- type: RandomHorizontalFlip
- type: Normalize
mode: train
val_dataset:
type: MattingDataset
dataset_root: data/PPM-100
val_file: val.txt
transforms:
- type: LoadImages
- type: LimitShort
max_short: 512
- type: ResizeToIntMult
mult_int: 32
- type: Normalize
mode: val
get_trimap: False
model:
type: PPMattingV2
backbone:
type: STDC1
pretrained: https://bj.bcebos.com/paddleseg/dygraph/PP_STDCNet1.tar.gz
decoder_channels: [128, 96, 64, 32, 16]
head_channel: 8
dpp_output_channel: 256
dpp_merge_type: add
optimizer:
type: sgd
momentum: 0.9
weight_decay: 5.0e-4
lr_scheduler:
type: PolynomialDecay
learning_rate: 0.01
end_lr: 0
power: 0.9
warmup_iters: 100
warmup_start_lr: 1.0e-5