-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
rtformer_slim_cityscapes_1024x512_120k.yml
58 lines (51 loc) · 1.21 KB
/
rtformer_slim_cityscapes_1024x512_120k.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
_base_: '../_base_/cityscapes.yml'
batch_size: 3 # total batch size: 4 * 3
iters: 120000
train_dataset:
transforms:
- type: ResizeStepScaling
min_scale_factor: 0.5
max_scale_factor: 2.0
scale_step_size: 0.25
- type: RandomPaddingCrop
crop_size: [1024, 512]
- type: RandomHorizontalFlip
- type: RandomDistort
brightness_range: 0.4
contrast_range: 0.4
saturation_range: 0.4
- type: Normalize
mean: [0.485, 0.456, 0.406]
std: [0.229, 0.224, 0.225]
val_dataset:
transforms:
- type: Resize
target_size: [2048, 1024]
keep_ratio: True
- type: Normalize
mean: [0.485, 0.456, 0.406]
std: [0.229, 0.224, 0.225]
optimizer:
_inherited_: False
type: AdamW
beta1: 0.9
beta2: 0.999
weight_decay: 0.0125
lr_scheduler:
_inherited_: False
type: PolynomialDecay
learning_rate: 4.0e-4
power: 1.
end_lr: 1.0e-6
warmup_iters: 1500
warmup_start_lr: 1.0e-6
loss:
types:
- type: CrossEntropyLoss
coef: [1, 0.4]
model:
type: RTFormer
base_channels: 32
head_channels: 64
use_injection: [True, True]
pretrained: https://paddleseg.bj.bcebos.com/dygraph/backbone/rtformer_slim_backbone_imagenet_pretrained.zip