yolox_mot_reader_800x1440.yml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. input_height: &input_height 800
  2. input_width: &input_width 1440
  3. input_size: &input_size [*input_height, *input_width]
  4. worker_num: 4
  5. TrainReader:
  6. sample_transforms:
  7. - Decode: {}
  8. - Mosaic:
  9. prob: 1.0
  10. input_dim: *input_size
  11. degrees: [-10, 10]
  12. scale: [0.1, 2.0]
  13. shear: [-2, 2]
  14. translate: [-0.1, 0.1]
  15. enable_mixup: True
  16. mixup_prob: 1.0
  17. mixup_scale: [0.5, 1.5]
  18. - AugmentHSV: {is_bgr: False, hgain: 5, sgain: 30, vgain: 30}
  19. - PadResize: {target_size: *input_size}
  20. - RandomFlip: {}
  21. batch_transforms:
  22. - Permute: {}
  23. batch_size: 6
  24. shuffle: True
  25. drop_last: True
  26. collate_batch: False
  27. mosaic_epoch: 20
  28. EvalReader:
  29. sample_transforms:
  30. - Decode: {}
  31. - Resize: {target_size: *input_size, keep_ratio: True}
  32. - Pad: {size: *input_size, fill_value: [114., 114., 114.]}
  33. - Permute: {}
  34. batch_size: 8
  35. TestReader:
  36. inputs_def:
  37. image_shape: [3, 800, 1440]
  38. sample_transforms:
  39. - Decode: {}
  40. - Resize: {target_size: *input_size, keep_ratio: True}
  41. - Pad: {size: *input_size, fill_value: [114., 114., 114.]}
  42. - Permute: {}
  43. batch_size: 1
  44. # add MOTReader for MOT evaluation and inference, note batch_size should be 1 in MOT
  45. EvalMOTReader:
  46. sample_transforms:
  47. - Decode: {}
  48. - Resize: {target_size: *input_size, keep_ratio: True}
  49. - Pad: {size: *input_size, fill_value: [114., 114., 114.]}
  50. - Permute: {}
  51. batch_size: 1
  52. TestMOTReader:
  53. inputs_def:
  54. image_shape: [3, 800, 1440]
  55. sample_transforms:
  56. - Decode: {}
  57. - Resize: {target_size: *input_size, keep_ratio: True}
  58. - Pad: {size: *input_size, fill_value: [114., 114., 114.]}
  59. - Permute: {}
  60. batch_size: 1