mask_reader.yml 1.7 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: 32, use_padded_im_info: false, pad_gt: true}
F
FDInSky 已提交
13 14 15
  batch_size: 1
  shuffle: true
  drop_last: false
G
Guanghua Yu 已提交
16

F
FDInSky 已提交
17 18 19

EvalReader:
  inputs_def:
G
Guanghua Yu 已提交
20
    fields: ['image', 'im_info', 'im_id']
F
FDInSky 已提交
21
  sample_transforms:
G
Guanghua Yu 已提交
22 23 24 25
  - DecodeImage: {to_rgb: true}
  - NormalizeImage: {is_channel_first: false, is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
  - ResizeImage: {interp: 1, max_size: 1333, target_size: 800, use_cv2: true}
  - Permute: {channel_first: true, to_bgr: false}
F
FDInSky 已提交
26
  batch_transforms:
G
Guanghua Yu 已提交
27
  - PadBatch: {pad_to_stride: 32, use_padded_im_info: false, 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_info', 'im_id']
F
FDInSky 已提交
37
  sample_transforms:
G
Guanghua Yu 已提交
38 39 40 41
  - DecodeImage: {to_rgb: true, with_mixup: false}
  - NormalizeImage: {is_channel_first: false, is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
  - ResizeImage: {interp: 1, max_size: 1333, target_size: 800, use_cv2: true}
  - Permute: {channel_first: true, to_bgr: false}
G
Guanghua Yu 已提交
42 43
  batch_transforms:
  - PadBatch: {pad_to_stride: 32, use_padded_im_info: false, pad_gt: false}
F
FDInSky 已提交
44 45 46
  batch_size: 1
  shuffle: false
  drop_last: false