mask_reader.yml 1.5 KB
Newer Older
G
Guanghua Yu 已提交
1
worker_num: 2
F
FDInSky 已提交
2 3
TrainReader:
  inputs_def:
G
Guanghua Yu 已提交
4
    fields: ['image', 'im_info', 'im_id', 'gt_bbox', 'gt_class', 'is_crowd', 'gt_poly']
F
FDInSky 已提交
5
  sample_transforms:
G
Guanghua Yu 已提交
6 7 8 9 10
  - DecodeImage: {to_rgb: true}
  - RandomFlipImage: {prob: 0.5, is_mask_flip: true}
  - NormalizeImage: {is_channel_first: false, is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
  - ResizeImage: {target_size: 800, max_size: 1333, interp: 1, use_cv2: true}
  - Permute: {to_bgr: false, channel_first: true}
F
FDInSky 已提交
11
  batch_transforms:
G
Guanghua Yu 已提交
12
  - PadBatch: {pad_to_stride: -1., use_padded_im_info: false, pad_gt: true}
F
FDInSky 已提交
13 14
  batch_size: 1
  shuffle: true
W
wangguanzhong 已提交
15
  drop_last: true
G
Guanghua Yu 已提交
16

F
FDInSky 已提交
17 18 19

EvalReader:
  inputs_def:
20
    fields: ['image', 'im_shape', 'scale_factor', 'im_id']
F
FDInSky 已提交
21
  sample_transforms:
22 23 24 25
  - DecodeOp: {}
  - NormalizeImageOp: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
  - ResizeOp: {interp: 1, target_size: [800, 1333]}
  - PermuteOp: {}
F
FDInSky 已提交
26
  batch_transforms:
G
Guanghua Yu 已提交
27
  - PadBatchOp: {pad_to_stride: -1., pad_gt: false}
F
FDInSky 已提交
28 29 30 31
  batch_size: 1
  shuffle: false
  drop_last: false
  drop_empty: false
G
Guanghua Yu 已提交
32

F
FDInSky 已提交
33 34 35

TestReader:
  inputs_def:
G
Guanghua Yu 已提交
36
    fields: ['image', 'im_shape', 'scale_factor', 'im_id']
F
FDInSky 已提交
37
  sample_transforms:
G
Guanghua Yu 已提交
38 39 40 41
  - DecodeOp: {}
  - NormalizeImageOp: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
  - ResizeOp: {interp: 1, target_size: [800, 1333]}
  - PermuteOp: {}
G
Guanghua Yu 已提交
42
  batch_transforms:
G
Guanghua Yu 已提交
43
  - PadBatchOp: {pad_to_stride: -1., pad_gt: false}
F
FDInSky 已提交
44 45 46
  batch_size: 1
  shuffle: false
  drop_last: false
G
Guanghua Yu 已提交
47
  drop_empty: false