ocrnet_hrnetw18_cityscapes_1024x512_40k.yml 731 字节
Newer Older
W
wuzewu 已提交
1 2 3 4 5
batch_size: 2
iters: 40000

train_dataset:
  type: Cityscapes
C
chenguowei01 已提交
6
  dataset_root: data/cityscapes
W
wuzewu 已提交
7 8 9 10 11 12 13
  transforms:
    - type: ResizeStepScaling
      min_scale_factor: 0.5
      max_scale_factor: 2.0
      scale_step_size: 0.25
    - type: RandomPaddingCrop
      crop_size: [1024, 512]
C
chenguowei01 已提交
14
    - type: RandomHorizontalFlip
W
wuzewu 已提交
15 16 17 18 19
    - type: Normalize
  mode: train

val_dataset:
  type: Cityscapes
C
chenguowei01 已提交
20
  dataset_root: data/cityscapes
W
wuzewu 已提交
21 22 23 24 25
  transforms:
    - type: Normalize
  mode: val

model:
C
chenguowei01 已提交
26
  type: OCRNet
W
wuzewu 已提交
27 28
  backbone:
    type: HRNet_W18
C
chenguowei01 已提交
29
    backbone_pretrianed: None
W
wuzewu 已提交
30 31
  num_classes: 19
  in_channels: 270
C
chenguowei01 已提交
32
  model_pretrained: None
W
wuzewu 已提交
33 34 35 36 37 38 39 40 41 42 43 44

optimizer:
  type: sgd

learning_rate:
  value: 0.01
  decay:
    type: poly
    power: 0.9

loss:
  type: CrossEntropy