Meta Byte Track
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. # MOTR
  2. Step1.
  3. git clone https://github.com/megvii-model/MOTR.git and install
  4. replace https://github.com/megvii-model/MOTR/blob/main/datasets/joint.py
  5. replace https://github.com/megvii-model/MOTR/blob/main/datasets/transforms.py
  6. train
  7. ```
  8. python3 -m torch.distributed.launch --nproc_per_node=8 \
  9. --use_env main.py \
  10. --meta_arch motr \
  11. --dataset_file e2e_joint \
  12. --epoch 50 \
  13. --with_box_refine \
  14. --lr_drop 40 \
  15. --lr 2e-4 \
  16. --lr_backbone 2e-5 \
  17. --pretrained coco_model_final.pth \
  18. --output_dir exps/e2e_motr_r50_mot17trainhalf \
  19. --batch_size 1 \
  20. --sample_mode 'random_interval' \
  21. --sample_interval 10 \
  22. --sampler_steps 10 20 30 \
  23. --sampler_lengths 2 3 4 5 \
  24. --update_query_pos \
  25. --merger_dropout 0 \
  26. --dropout 0 \
  27. --random_drop 0.1 \
  28. --fp_ratio 0.3 \
  29. --query_interaction_layer 'QIM' \
  30. --extra_track_attn \
  31. --mot_path .
  32. --data_txt_path_train ./datasets/data_path/mot17.half \
  33. --data_txt_path_val ./datasets/data_path/mot17.val \
  34. ```
  35. mot17.half and mot17.val are from https://github.com/ifzhang/FairMOT/tree/master/src/data
  36. You can also download the MOTR model trained by us: [google](https://drive.google.com/file/d/1pzGi53VooppQqhKf3TSxLK99LERsVyTw/view?usp=sharing), [baidu(code:t87h)](https://pan.baidu.com/s/1OrcR3L9Bf2xXIo8RQl3zyA)
  37. Step2.
  38. replace https://github.com/megvii-model/MOTR/blob/main/util/evaluation.py
  39. replace https://github.com/megvii-model/MOTR/blob/main/eval.py
  40. replace https://github.com/megvii-model/MOTR/blob/main/models/motr.py
  41. add byte_tracker.py to https://github.com/megvii-model/MOTR
  42. add mot_online to https://github.com/megvii-model/MOTR
  43. Step3.
  44. val
  45. ```
  46. python3 eval.py \
  47. --meta_arch motr \
  48. --dataset_file e2e_joint \
  49. --epoch 200 \
  50. --with_box_refine \
  51. --lr_drop 100 \
  52. --lr 2e-4 \
  53. --lr_backbone 2e-5 \
  54. --pretrained exps/e2e_motr_r50_mot17val/motr_final.pth \
  55. --output_dir exps/e2e_motr_r50_mot17val \
  56. --batch_size 1 \
  57. --sample_mode 'random_interval' \
  58. --sample_interval 10 \
  59. --sampler_steps 50 90 120 \
  60. --sampler_lengths 2 3 4 5 \
  61. --update_query_pos \
  62. --merger_dropout 0 \
  63. --dropout 0 \
  64. --random_drop 0.1 \
  65. --fp_ratio 0.3 \
  66. --query_interaction_layer 'QIM' \
  67. --extra_track_attn \
  68. --mot_path ./MOT17/images/train
  69. --data_txt_path_train ./datasets/data_path/mot17.half \
  70. --data_txt_path_val ./datasets/data_path/mot17.val \
  71. --resume model_final.pth \
  72. ```
  73. # MOTR det
  74. in Step2, replace https://github.com/megvii-model/MOTR/blob/main/models/motr.py by motr_det.py
  75. others are the same as MOTR