yolov3_reader.yml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. worker_num: 2
  2. TrainReader:
  3. inputs_def:
  4. num_max_boxes: 50
  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: [320, 352, 384, 416, 448, 480, 512, 544, 576, 608], random_size: True, random_interp: True, keep_ratio: False}
  14. - NormalizeBox: {}
  15. - PadBox: {num_max_boxes: 50}
  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, 13], [16, 30], [33, 23], [30, 61], [62, 45], [59, 119], [116, 90], [156, 198], [373, 326]], downsample_ratios: [32, 16, 8]}
  20. batch_size: 8
  21. shuffle: true
  22. drop_last: true
  23. mixup_epoch: 250
  24. use_shared_memory: true
  25. EvalReader:
  26. inputs_def:
  27. num_max_boxes: 50
  28. sample_transforms:
  29. - Decode: {}
  30. - Resize: {target_size: [608, 608], keep_ratio: False, interp: 2}
  31. - NormalizeImage: {mean: [0.485, 0.456, 0.406], std: [0.229, 0.224, 0.225], is_scale: True}
  32. - Permute: {}
  33. batch_size: 1
  34. TestReader:
  35. inputs_def:
  36. image_shape: [3, 608, 608]
  37. sample_transforms:
  38. - Decode: {}
  39. - Resize: {target_size: [608, 608], keep_ratio: False, interp: 2}
  40. - NormalizeImage: {mean: [0.485, 0.456, 0.406], std: [0.229, 0.224, 0.225], is_scale: True}
  41. - Permute: {}
  42. batch_size: 1