picodet_320_reader.yml 1.2 KB
Newer Older
G
Guanghua Yu 已提交
1
worker_num: 8
G
Guanghua Yu 已提交
2 3 4 5 6
TrainReader:
  sample_transforms:
  - Decode: {}
  - RandomCrop: {}
  - RandomFlip: {prob: 0.5}
G
Guanghua Yu 已提交
7
  - RandomDistort: {}
G
Guanghua Yu 已提交
8
  batch_transforms:
G
Guanghua Yu 已提交
9 10 11
  - BatchRandomResize: {target_size: [256, 288, 320, 352, 384], random_size: True, random_interp: True, keep_ratio: False}
  - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
  - Permute: {}
G
Guanghua Yu 已提交
12 13 14 15 16 17 18 19 20 21 22 23
  - Gt2GFLTarget:
      downsample_ratios: [8, 16, 32]
      grid_cell_scale: 5
      cell_offset: 0.5
  batch_size: 128
  shuffle: true
  drop_last: true


EvalReader:
  sample_transforms:
  - Decode: {}
G
Guanghua Yu 已提交
24
  - Resize: {interp: 2, target_size: [320, 320], keep_ratio: False}
G
Guanghua Yu 已提交
25
  - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
G
Guanghua Yu 已提交
26 27 28 29 30 31 32 33 34 35 36 37
  - Permute: {}
  batch_transforms:
  - PadBatch: {pad_to_stride: 32}
  batch_size: 8
  shuffle: false


TestReader:
  inputs_def:
    image_shape: [3, 320, 320]
  sample_transforms:
  - Decode: {}
G
Guanghua Yu 已提交
38
  - Resize: {interp: 2, target_size: [320, 320], keep_ratio: False}
G
Guanghua Yu 已提交
39
  - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
G
Guanghua Yu 已提交
40 41 42 43 44
  - Permute: {}
  batch_transforms:
  - PadBatch: {pad_to_stride: 32}
  batch_size: 1
  shuffle: false