deepsort_yolov3_pplcnet.yml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. _BASE_: [
  2. 'detector/yolov3_darknet53_40e_608x608_mot17half.yml',
  3. '_base_/mot17.yml',
  4. '_base_/deepsort_reader_1088x608.yml',
  5. ]
  6. metric: MOT
  7. num_classes: 1
  8. EvalMOTDataset:
  9. !MOTImageFolder
  10. dataset_dir: dataset/mot
  11. data_root: MOT17/images/half
  12. keep_ori_im: True # set as True in DeepSORT
  13. det_weights: https://paddledet.bj.bcebos.com/models/mot/deepsort/yolov3_darknet53_40e_608x608_mot17half.pdparams
  14. reid_weights: https://paddledet.bj.bcebos.com/models/mot/deepsort/deepsort_pplcnet.pdparams
  15. # reader
  16. EvalMOTReader:
  17. sample_transforms:
  18. - Decode: {}
  19. - Resize: {target_size: [608, 608], keep_ratio: False, interp: 2}
  20. - NormalizeImage: {mean: [0.485, 0.456, 0.406], std: [0.229, 0.224, 0.225], is_scale: True}
  21. - Permute: {}
  22. batch_size: 1
  23. TestMOTReader:
  24. inputs_def:
  25. image_shape: [3, 608, 608]
  26. sample_transforms:
  27. - Decode: {}
  28. - Resize: {target_size: [608, 608], 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: 1
  32. # DeepSORT configuration
  33. architecture: DeepSORT
  34. pretrain_weights: None
  35. DeepSORT:
  36. detector: YOLOv3 # General YOLOv3 version
  37. reid: PPLCNetEmbedding
  38. tracker: DeepSORTTracker
  39. # reid and tracker configuration
  40. # see 'configs/mot/deepsort/reid/deepsort_pplcnet.yml'
  41. PPLCNetEmbedding:
  42. input_ch: 1280
  43. output_ch: 512
  44. DeepSORTTracker:
  45. input_size: [64, 192]
  46. min_box_area: 0
  47. vertical_ratio: -1
  48. budget: 100
  49. max_age: 70
  50. n_init: 3
  51. metric_type: cosine
  52. matching_threshold: 0.2
  53. max_iou_distance: 0.9
  54. motion: KalmanFilter
  55. # detector configuration: General YOLOv3 version
  56. # see 'configs/mot/deepsort/detector/yolov3_darknet53_40e_608x608_mot17half.yml'
  57. YOLOv3:
  58. backbone: DarkNet
  59. neck: YOLOv3FPN
  60. yolo_head: YOLOv3Head
  61. post_process: BBoxPostProcess
  62. # Tracking requires higher quality boxes, so NMS score_threshold will be higher
  63. BBoxPostProcess:
  64. decode:
  65. name: YOLOBox
  66. conf_thresh: 0.005
  67. downsample_ratio: 32
  68. clip_bbox: true
  69. nms:
  70. name: MultiClassNMS
  71. keep_top_k: 100
  72. score_threshold: 0.3 # 0.01 in original detector
  73. nms_threshold: 0.45
  74. nms_top_k: 1000