solov2_reader.yml 1.2 KB
Newer Older
1
worker_num: 8
G
Guanghua Yu 已提交
2 3
TrainReader:
  sample_transforms:
W
wangxinxin08 已提交
4
  - Decode: {}
G
Guanghua Yu 已提交
5
  - Poly2Mask: {}
W
wangxinxin08 已提交
6 7 8 9
  - Resize: {interp: 1, target_size: [800, 1333], keep_ratio: True}
  - RandomFlip: {}
  - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
  - Permute: {}
G
Guanghua Yu 已提交
10
  batch_transforms:
W
wangxinxin08 已提交
11 12
  - PadBatch: {pad_to_stride: 32}
  - Gt2Solov2Target: {num_grids: [40, 36, 24, 16, 12],
G
Guanghua Yu 已提交
13 14 15 16 17 18 19 20 21
                        scale_ranges: [[1, 96], [48, 192], [96, 384], [192, 768], [384, 2048]],
                        coord_sigma: 0.2}
  batch_size: 2
  shuffle: true
  drop_last: true


EvalReader:
  sample_transforms:
W
wangxinxin08 已提交
22 23 24 25
  - Decode: {}
  - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
  - Resize: {interp: 1, target_size: [800, 1333], keep_ratio: True}
  - Permute: {}
G
Guanghua Yu 已提交
26
  batch_transforms:
W
wangxinxin08 已提交
27
  - PadBatch: {pad_to_stride: 32}
G
Guanghua Yu 已提交
28 29 30 31 32 33 34
  batch_size: 1
  shuffle: false
  drop_last: false


TestReader:
  sample_transforms:
W
wangxinxin08 已提交
35 36 37 38
  - Decode: {}
  - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
  - Resize: {interp: 1, target_size: [800, 1333], keep_ratio: True}
  - Permute: {}
G
Guanghua Yu 已提交
39
  batch_transforms:
W
wangxinxin08 已提交
40
  - PadBatch: {pad_to_stride: 32}
G
Guanghua Yu 已提交
41 42 43
  batch_size: 1
  shuffle: false
  drop_last: false