ppyolo_tiny_reader.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. worker_num: 4
  2. TrainReader:
  3. inputs_def:
  4. num_max_boxes: 100
  5. sample_transforms:
  6. - Decode: {}
  7. - Mixup: {alpha: 1.5, beta: 1.5}
  8. - RandomDistort: {}
  9. - RandomExpand: {fill_value: [123.675, 116.28, 103.53]}
  10. - RandomCrop: {}
  11. - RandomFlip: {}
  12. batch_transforms:
  13. - BatchRandomResize: {target_size: [192, 224, 256, 288, 320, 352, 384, 416, 448, 480, 512], random_size: True, random_interp: True, keep_ratio: False}
  14. - NormalizeBox: {}
  15. - PadBox: {num_max_boxes: 100}
  16. - BboxXYXY2XYWH: {}
  17. - NormalizeImage: {mean: [0.485, 0.456, 0.406], std: [0.229, 0.224, 0.225], is_scale: True}
  18. - Permute: {}
  19. - Gt2YoloTarget: {anchor_masks: [[6, 7, 8], [3, 4, 5], [0, 1, 2]], anchors: [[10, 15], [24, 36], [72, 42], [35, 87], [102, 96], [60, 170], [220, 125], [128, 222], [264, 266]], downsample_ratios: [32, 16, 8]}
  20. batch_size: 32
  21. shuffle: true
  22. drop_last: true
  23. mixup_epoch: 500
  24. use_shared_memory: true
  25. EvalReader:
  26. sample_transforms:
  27. - Decode: {}
  28. - Resize: {target_size: [320, 320], keep_ratio: False, interp: 2}
  29. - NormalizeImage: {mean: [0.485, 0.456, 0.406], std: [0.229, 0.224, 0.225], is_scale: True}
  30. - Permute: {}
  31. batch_size: 8
  32. TestReader:
  33. inputs_def:
  34. image_shape: [3, 320, 320]
  35. sample_transforms:
  36. - Decode: {}
  37. - Resize: {target_size: [320, 320], keep_ratio: False, interp: 2}
  38. - NormalizeImage: {mean: [0.485, 0.456, 0.406], std: [0.229, 0.224, 0.225], is_scale: True}
  39. - Permute: {}
  40. batch_size: 1