fastscnn_tusimple_640x368_300k.yml 1.32 KB
Newer Older
Sugon_ldc's avatar
Sugon_ldc committed
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: 4
iters: 300000

train_dataset:
  type: Tusimple
  dataset_root: ./data/tusimple
  cut_height: 160
  transforms:
    - type: SubImgCrop
      offset_top: 160
    - type: LaneRandomRotation
      max_rotation: 10
      im_padding_value: [0, 0, 0]
      label_padding_value: 0
      keeping_size: True
    - type: RandomHorizontalFlip
    - type: Resize
      target_size: [640, 368]
    - type: RandomDistort
      brightness_range: 0.25
      brightness_prob: 1
      contrast_range: 0.25
      contrast_prob: 1
      saturation_range: 0.25
      saturation_prob: 1
      hue_range: 63
      hue_prob: 1
    - type: RandomNoise
    - type: Normalize
  mode: train

val_dataset:
  type: Tusimple
  dataset_root: ./data/tusimple
  cut_height: 160
  transforms:
    - type: SubImgCrop
      offset_top: 160
    - type: Resize
      target_size: [640, 368]
    - type: Normalize
  mode: val

optimizer:
  type: sgd
  momentum: 0.9
  weight_decay: 4.0e-5

lr_scheduler:
  type: PolynomialDecay
  learning_rate: 0.001
  end_lr: 0
  power: 0.9

loss:
  types:
    - type: LaneCrossEntropyLoss
      weights: [0.4, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]
  coef: [1, 0.4]

model:
  type: FastSCNN
  num_classes: 7
  pretrained: https://bj.bcebos.com/paddleseg/dygraph/cityscapes/fastscnn_cityscapes_1024x1024_160k/model.pdparams
  enable_auxiliary_loss: True