ppyoloe_reader.yml 1.3 KB
Newer Older
1
worker_num: 4
2 3 4 5
eval_height: &eval_height 640
eval_width: &eval_width 640
eval_size: &eval_size [*eval_height, *eval_width]

S
shangliang Xu 已提交
6 7 8 9 10 11 12 13 14 15 16 17
TrainReader:
  sample_transforms:
    - Decode: {}
    - RandomDistort: {}
    - RandomExpand: {fill_value: [123.675, 116.28, 103.53]}
    - RandomCrop: {}
    - RandomFlip: {}
  batch_transforms:
    - BatchRandomResize: {target_size: [320, 352, 384, 416, 448, 480, 512, 544, 576, 608, 640, 672, 704, 736, 768], random_size: True, random_interp: True, keep_ratio: False}
    - NormalizeImage: {mean: [0.485, 0.456, 0.406], std: [0.229, 0.224, 0.225], is_scale: True}
    - Permute: {}
    - PadGT: {}
18
  batch_size: 8
S
shangliang Xu 已提交
19 20 21 22 23 24 25 26
  shuffle: true
  drop_last: true
  use_shared_memory: true
  collate_batch: true

EvalReader:
  sample_transforms:
    - Decode: {}
27
    - Resize: {target_size: *eval_size, keep_ratio: False, interp: 2}
S
shangliang Xu 已提交
28 29
    - NormalizeImage: {mean: [0.485, 0.456, 0.406], std: [0.229, 0.224, 0.225], is_scale: True}
    - Permute: {}
30
  batch_size: 2
S
shangliang Xu 已提交
31 32 33

TestReader:
  inputs_def:
34
    image_shape: [3, *eval_height, *eval_width]
S
shangliang Xu 已提交
35 36
  sample_transforms:
    - Decode: {}
37
    - Resize: {target_size: *eval_size, keep_ratio: False, interp: 2}
S
shangliang Xu 已提交
38 39 40
    - NormalizeImage: {mean: [0.485, 0.456, 0.406], std: [0.229, 0.224, 0.225], is_scale: True}
    - Permute: {}
  batch_size: 1