tood_reader.yml 1019 字节
Newer Older
S
shangliang Xu 已提交
1 2 3 4 5
worker_num: 4
TrainReader:
  sample_transforms:
  - Decode: {}
  - RandomFlip: {prob: 0.5}
S
shangliang Xu 已提交
6
  - Resize: {target_size: [800, 1333], keep_ratio: true}
S
shangliang Xu 已提交
7 8 9 10 11 12 13 14 15 16 17 18 19 20
  - NormalizeImage: {is_scale: true, mean: [0.485, 0.456, 0.406], std: [0.229, 0.224, 0.225]}
  - Permute: {}
  batch_transforms:
  - PadBatch: {pad_to_stride: 32}
  batch_size: 4
  shuffle: true
  drop_last: true
  collate_batch: false
  use_shared_memory: true


EvalReader:
  sample_transforms:
  - Decode: {}
S
shangliang Xu 已提交
21
  - Resize: {target_size: [800, 1333], keep_ratio: True}
S
shangliang Xu 已提交
22 23 24 25 26 27 28 29 30 31 32
  - NormalizeImage: {is_scale: true, mean: [0.485, 0.456, 0.406], std: [0.229, 0.224, 0.225]}
  - Permute: {}
  batch_transforms:
  - PadBatch: {pad_to_stride: 32}
  batch_size: 1
  shuffle: false


TestReader:
  sample_transforms:
  - Decode: {}
S
shangliang Xu 已提交
33
  - Resize: {target_size: [800, 1333], keep_ratio: True}
S
shangliang Xu 已提交
34 35 36 37 38 39
  - NormalizeImage: {is_scale: true, mean: [0.485, 0.456, 0.406], std: [0.229, 0.224, 0.225]}
  - Permute: {}
  batch_transforms:
  - PadBatch: {pad_to_stride: 32}
  batch_size: 1
  shuffle: false