s2anet_reader.yml 1.2 KB
Newer Older
W
wangxinxin08 已提交
1
worker_num: 4
C
cnn 已提交
2 3
TrainReader:
  sample_transforms:
W
wangxinxin08 已提交
4
    - Decode: {}
W
wangxinxin08 已提交
5
    - Poly2Array: {}
W
wangxinxin08 已提交
6 7 8
    - RandomRFlip: {}
    - RResize: {target_size: [1024, 1024], keep_ratio: True, interp: 2}
    - Poly2RBox: {rbox_type: 'le135'}
C
cnn 已提交
9
  batch_transforms:
W
wangxinxin08 已提交
10 11 12 13 14
    - NormalizeImage: {mean: [0.485, 0.456, 0.406], std: [0.229, 0.224, 0.225], is_scale: True}
    - Permute: {}
    - PadRGT: {}
    - PadBatch: {pad_to_stride: 32}
  batch_size: 2
C
cnn 已提交
15 16 17 18 19 20
  shuffle: true
  drop_last: true


EvalReader:
  sample_transforms:
W
wangxinxin08 已提交
21
    - Decode: {}
W
wangxinxin08 已提交
22
    - Poly2Array: {}
W
wangxinxin08 已提交
23 24 25
    - RResize: {target_size: [1024, 1024], keep_ratio: True, interp: 2}
    - NormalizeImage: {mean: [0.485, 0.456, 0.406], std: [0.229, 0.224, 0.225], is_scale: True}
    - Permute: {}
C
cnn 已提交
26
  batch_transforms:
W
wangxinxin08 已提交
27 28
    - PadBatch: {pad_to_stride: 32}
  batch_size: 2
C
cnn 已提交
29 30
  shuffle: false
  drop_last: false
W
wangxinxin08 已提交
31
  collate_batch: false
C
cnn 已提交
32 33 34 35


TestReader:
  sample_transforms:
W
wangxinxin08 已提交
36 37 38 39
    - 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: {}
C
cnn 已提交
40
  batch_transforms:
W
wangxinxin08 已提交
41
    - PadBatch: {pad_to_stride: 32}
C
cnn 已提交
42 43 44
  batch_size: 1
  shuffle: false
  drop_last: false