ttfnet_reader.yml 979 字节
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
  - Gt2TTFTarget: {down_ratio: 4}
11
  - PadBatch: {pad_to_stride: 32}
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
  batch_size: 1
  drop_last: false

TestReader:
  sample_transforms:
W
wangxinxin08 已提交
28 29 30 31
  - 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 已提交
32 33
  batch_size: 1
  drop_last: false