ppyoloe_reader.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. worker_num: 4
  2. eval_height: &eval_height 640
  3. eval_width: &eval_width 640
  4. eval_size: &eval_size [*eval_height, *eval_width]
  5. TrainReader:
  6. sample_transforms:
  7. - Decode: {}
  8. - RandomDistort: {}
  9. - RandomExpand: {fill_value: [123.675, 116.28, 103.53]}
  10. - RandomCrop: {}
  11. - RandomFlip: {}
  12. batch_transforms:
  13. - 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}
  14. - NormalizeImage: {mean: [0., 0., 0.], std: [1., 1., 1.], norm_type: none}
  15. - Permute: {}
  16. - PadGT: {}
  17. batch_size: 2
  18. shuffle: true
  19. drop_last: true
  20. use_shared_memory: true
  21. collate_batch: true
  22. EvalReader:
  23. sample_transforms:
  24. - Decode: {}
  25. - Resize: {target_size: *eval_size, keep_ratio: False, interp: 2}
  26. - NormalizeImage: {mean: [0., 0., 0.], std: [1., 1., 1.], norm_type: none}
  27. - Permute: {}
  28. batch_size: 2
  29. TestReader:
  30. inputs_def:
  31. image_shape: [3, *eval_height, *eval_width]
  32. sample_transforms:
  33. - Decode: {}
  34. - Resize: {target_size: *eval_size, keep_ratio: False, interp: 2}
  35. - NormalizeImage: {mean: [0., 0., 0.], std: [1., 1., 1.], norm_type: none}
  36. - Permute: {}
  37. batch_size: 1