picodet_320_reader.yml 1.2 KB
Newer Older
G
Guanghua Yu 已提交
1 2 3 4 5 6 7
worker_num: 6
TrainReader:
  sample_transforms:
  - Decode: {}
  - RandomCrop: {}
  - RandomFlip: {prob: 0.5}
  - Resize: {target_size: [320, 320], keep_ratio: False, interp: 1}
G
Guanghua Yu 已提交
8 9
  - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
  - RandomDistort: {}
G
Guanghua Yu 已提交
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
  - Permute: {}
  batch_transforms:
  - PadBatch: {pad_to_stride: 32}
  - 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: {}
  - Resize: {interp: 1, target_size: [320, 320], keep_ratio: False}
G
Guanghua Yu 已提交
26
  - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
G
Guanghua Yu 已提交
27 28 29 30 31 32 33 34 35 36 37 38 39
  - Permute: {}
  batch_transforms:
  - PadBatch: {pad_to_stride: 32}
  batch_size: 8
  shuffle: false


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