ttfnet_reader.yml 1.0 KB
Newer Older
F
Feng Ni 已提交
1 2 3
worker_num: 2
TrainReader:
  sample_transforms:
W
wangxinxin08 已提交
4 5 6 7 8
  - Decode: {}
  - RandomFlip: {prob: 0.5}
  - Resize: {interp: 1, target_size: [512, 512], keep_ratio: False}
  - NormalizeImage: {mean: [123.675, 116.28, 103.53], std: [58.395, 57.12, 57.375], is_scale: false}
  - Permute: {}
F
Feng Ni 已提交
9
  batch_transforms:
W
wangxinxin08 已提交
10 11
  - Gt2TTFTarget: {down_ratio: 4}
  - PadBatch: {pad_to_stride: 32, pad_gt: true}
F
Feng Ni 已提交
12 13 14
  batch_size: 12
  shuffle: true
  drop_last: true
K
Kaipeng Deng 已提交
15
  use_shared_memory: true
F
Feng Ni 已提交
16 17 18

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

TestReader:
  sample_transforms:
W
wangxinxin08 已提交
29 30 31 32
  - Decode: {}
  - Resize: {interp: 1, target_size: [512, 512], keep_ratio: False}
  - NormalizeImage: {is_scale: false, mean: [123.675, 116.28, 103.53], std: [58.395, 57.12, 57.375]}
  - Permute: {}
F
Feng Ni 已提交
33 34 35
  batch_size: 1
  drop_last: false
  drop_empty: false