ttfnet_reader.yml 1.0 KB
Newer Older
F
Feng Ni 已提交
1 2 3 4 5
worker_num: 2
TrainReader:
  sample_transforms:
  - DecodeOp: {}
  - RandomFlipOp: {prob: 0.5}
F
Feng Ni 已提交
6
  - ResizeOp: {interp: 1, target_size: [512, 512], keep_ratio: False}
F
Feng Ni 已提交
7 8 9 10 11 12 13 14 15 16 17 18
  - NormalizeImageOp: {mean: [123.675, 116.28, 103.53], std: [58.395, 57.12, 57.375], is_scale: false}
  - PermuteOp: {}
  batch_transforms:
  - Gt2TTFTargetOp: {down_ratio: 4}
  - PadBatchOp: {pad_to_stride: 32, pad_gt: true}
  batch_size: 12
  shuffle: true
  drop_last: true

EvalReader:
  sample_transforms:
  - DecodeOp: {}
F
Feng Ni 已提交
19
  - ResizeOp: {interp: 1, target_size: [512, 512], keep_ratio: False}
F
Feng Ni 已提交
20 21 22 23 24 25 26 27 28
  - NormalizeImageOp: {is_scale: false, mean: [123.675, 116.28, 103.53], std: [58.395, 57.12, 57.375]}
  - PermuteOp: {}
  batch_size: 1
  drop_last: false
  drop_empty: false

TestReader:
  sample_transforms:
  - DecodeOp: {}
F
Feng Ni 已提交
29
  - ResizeOp: {interp: 1, target_size: [512, 512], keep_ratio: False}
F
Feng Ni 已提交
30 31 32 33 34
  - NormalizeImageOp: {is_scale: false, mean: [123.675, 116.28, 103.53], std: [58.395, 57.12, 57.375]}
  - PermuteOp: {}
  batch_size: 1
  drop_last: false
  drop_empty: false