forked from PaddlePaddle/PaddleSeg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dim-vgg16.yml
45 lines (40 loc) · 891 Bytes
/
dim-vgg16.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
batch_size: 16
iters: 100000
train_dataset:
type: MattingDataset
dataset_root: data/PPM-100
train_file: train.txt
transforms:
- type: LoadImages
- type: RandomCropByAlpha
crop_size: [[320, 320], [480, 480], [640, 640]]
- type: Resize
target_size: [320, 320]
- type: RandomDistort
- type: RandomBlur
- type: RandomHorizontalFlip
- type: Normalize
mode: train
get_trimap: True
val_dataset:
type: MattingDataset
dataset_root: data/PPM-100
val_file: val.txt
transforms:
- type: LoadImages
- type: LimitLong
max_long: 3840
- type: Normalize
mode: val
get_trimap: True
model:
type: DIM
backbone:
type: VGG16
input_channels: 4
pretrained: https://paddleseg.bj.bcebos.com/matting/models/DIM_VGG16_pretrained/model.pdparams
pretrained: Null
optimizer:
type: adam
learning_rate:
value: 0.001