ppyolo_reader.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. worker_num: 2
  2. TrainReader:
  3. inputs_def:
  4. num_max_boxes: 50
  5. sample_transforms:
  6. - SniperDecodeCrop: {}
  7. - RandomDistort: {}
  8. - RandomExpand: {fill_value: [123.675, 116.28, 103.53]}
  9. - RandomCrop: {}
  10. - RandomFlip: {}
  11. batch_transforms:
  12. - BatchRandomResize: {target_size: [320, 352, 384, 416, 448, 480, 512, 544, 576, 608], random_size: True, random_interp: True, keep_ratio: False}
  13. - NormalizeBox: {}
  14. - PadBox: {num_max_boxes: 50}
  15. - BboxXYXY2XYWH: {}
  16. - NormalizeImage: {mean: [0.485, 0.456, 0.406], std: [0.229, 0.224, 0.225], is_scale: True}
  17. - Permute: {}
  18. - Gt2YoloTarget: {anchor_masks: [[6, 7, 8], [3, 4, 5], [0, 1, 2]], anchors: [[10, 13], [16, 30], [33, 23], [30, 61], [62, 45], [59, 119], [116, 90], [156, 198], [373, 326]], downsample_ratios: [32, 16, 8]}
  19. batch_size: 8
  20. shuffle: true
  21. drop_last: true
  22. use_shared_memory: true
  23. EvalReader:
  24. sample_transforms:
  25. - SniperDecodeCrop: {}
  26. - Resize: {target_size: [608, 608], keep_ratio: False, interp: 2}
  27. - NormalizeImage: {mean: [0.485, 0.456, 0.406], std: [0.229, 0.224, 0.225], is_scale: True}
  28. - Permute: {}
  29. batch_size: 8
  30. TestReader:
  31. inputs_def:
  32. image_shape: [3, 608, 608]
  33. sample_transforms:
  34. - SniperDecodeCrop: {}
  35. - Resize: {target_size: [608, 608], keep_ratio: False, interp: 2}
  36. - NormalizeImage: {mean: [0.485, 0.456, 0.406], std: [0.229, 0.224, 0.225], is_scale: True}
  37. - Permute: {}
  38. batch_size: 1