ttfnet_reader.yml 1004 字节
Newer Older
F
Feng Ni 已提交
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
worker_num: 2
TrainReader:
  sample_transforms:
  - DecodeOp: {}
  - RandomFlipOp: {prob: 0.5}
  - ResizeOp: {target_size: [512, 512], keep_ratio: False}
  - 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: {}
  - ResizeOp: {target_size: [512, 512], keep_ratio: False}
  - 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: {}
  - ResizeOp: {target_size: [512, 512], keep_ratio: False}
  - 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