pafnet_lite_reader.yml 1.3 KB
Newer Older
W
wangguanzhong 已提交
1 2 3 4
worker_num: 2
TrainReader:
  sample_transforms:
    - Decode: {}
W
wangguanzhong 已提交
5
    - RandomDistort: {brightness: [-32., 32., 0.5], random_apply: False, random_channel: True}
W
wangguanzhong 已提交
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 35 36 37
    - RandomExpand: {fill_value: [123.675, 116.28, 103.53]}
    - RandomCrop: {aspect_ratio: NULL, cover_all_box: True}
    - RandomFlip: {}
    - GridMask: {upper_iter: 300000}
  batch_transforms:
    - BatchRandomResize: {target_size: [320, 352, 384, 416, 448, 480, 512], random_interp: True, keep_ratio: False}
    - NormalizeImage: {mean: [123.675, 116.28, 103.53], std: [58.395, 57.12, 57.375], is_scale: false}
    - Permute: {}
    - Gt2TTFTarget: {down_ratio: 4}
    - PadBatch: {pad_to_stride: 32}
  batch_size: 12
  shuffle: true
  drop_last: true
  use_shared_memory: true

EvalReader:
  sample_transforms:
  - Decode: {}
  - Resize: {interp: 1, target_size: [320, 320], keep_ratio: False}
  - NormalizeImage: {is_scale: false, mean: [123.675, 116.28, 103.53], std: [58.395, 57.12, 57.375]}
  - Permute: {}
  batch_size: 1
  drop_last: false

TestReader:
  sample_transforms:
  - Decode: {}
  - Resize: {interp: 1, target_size: [320, 320], keep_ratio: False}
  - NormalizeImage: {is_scale: false, mean: [123.675, 116.28, 103.53], std: [58.395, 57.12, 57.375]}
  - Permute: {}
  batch_size: 1
  drop_last: false