mask_reader.yml 1.2 KB
Newer Older
Q
qingqing01 已提交
1 2 3 4
worker_num: 2
TrainReader:
  sample_transforms:
  - DecodeOp: {}
5
  - RandomResizeOp: {target_size: [[640, 1333], [672, 1333], [704, 1333], [736, 1333], [768, 1333], [800, 1333]], interp: 2, keep_ratio: True}
W
wangguanzhong 已提交
6
  - RandomFlipOp: {prob: 0.5}
7 8
  - NormalizeImageOp: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
  - PermuteOp: {}
Q
qingqing01 已提交
9
  batch_transforms:
10
  - PadBatchOp: {pad_to_stride: -1., pad_gt: true}
Q
qingqing01 已提交
11 12 13 14 15 16 17 18
  batch_size: 1
  shuffle: true
  drop_last: true


EvalReader:
  sample_transforms:
  - DecodeOp: {}
19
  - ResizeOp: {interp: 2, target_size: [800, 1333], keep_ratio: True}
Q
qingqing01 已提交
20 21 22 23 24 25 26 27 28 29 30 31 32
  - NormalizeImageOp: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
  - PermuteOp: {}
  batch_transforms:
  - PadBatchOp: {pad_to_stride: -1., pad_gt: false}
  batch_size: 1
  shuffle: false
  drop_last: false
  drop_empty: false


TestReader:
  sample_transforms:
  - DecodeOp: {}
33
  - ResizeOp: {interp: 2, target_size: [800, 1333], keep_ratio: True}
Q
qingqing01 已提交
34 35 36 37 38 39 40 41
  - NormalizeImageOp: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
  - PermuteOp: {}
  batch_transforms:
  - PadBatchOp: {pad_to_stride: -1., pad_gt: false}
  batch_size: 1
  shuffle: false
  drop_last: false
  drop_empty: false