s2anet_reader.yml 1.1 KB
Newer Older
C
cnn 已提交
1 2 3 4 5 6 7 8 9 10 11
worker_num: 0
TrainReader:
  sample_transforms:
  - Decode: {}
  - Rbox2Poly: {}
  # Resize can process rbox
  - Resize: {target_size: [1024, 1024], interp: 2, keep_ratio: False}
  - RandomFlip: {prob: 0.5}
  - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
  - Permute: {}
  batch_transforms:
C
cnn 已提交
12
  - PadBatch: {pad_to_stride: 32}
C
cnn 已提交
13 14 15 16 17 18 19 20 21 22 23 24
  batch_size: 1
  shuffle: true
  drop_last: true


EvalReader:
  sample_transforms:
  - Decode: {}
  - Resize: {interp: 2, target_size: [1024, 1024], keep_ratio: True}
  - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
  - Permute: {}
  batch_transforms:
C
cnn 已提交
25
  - PadBatch: {pad_to_stride: 32}
C
cnn 已提交
26 27 28 29 30 31 32 33 34 35 36 37 38
  batch_size: 1
  shuffle: false
  drop_last: false
  drop_empty: false


TestReader:
  sample_transforms:
  - Decode: {}
  - Resize: {interp: 2, target_size: [1024, 1024], keep_ratio: True}
  - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
  - Permute: {}
  batch_transforms:
C
cnn 已提交
39
  - PadBatch: {pad_to_stride: 32}
C
cnn 已提交
40 41 42
  batch_size: 1
  shuffle: false
  drop_last: false