This is still Work in progress, see opendatacam/opendatacam#87
More background about MOTChallenge: https://motchallenge.net/
Follow this guide: https://github.com/cheind/py-motmetrics#installation
Use python3 and pip3
pip3 install motmetricsInstall LAP solver which is faster
pip3 install lapYou need to prepare a folder with ground truth data, and test data (tracker data to benchmark)
.
├── SEQUENCE_NAME
│ └── gt
│ └── gt.txt
└── SEQUENCE_NAME.txt
SEQUENCE_NAME.txt is the tracker data to test, and gt.txt is the ground truth.
python3 -m motmetrics.apps.eval_motchallenge <PATH_TO_SEQUENCE_NAME> <PATH_TO_SEQUENCE_NAME>
# See Complete documentation
python3 -m motmetrics.apps.eval_motchallenge --helpExample with a training set of MOT17 Challenge:
- Generate tracker data from input detections provided by the MOT Challenge
node main.js --mode motchallenge --input benchmark/MOT17/MOT17-04-DPM/det/det.txt-
Rename the output
outputTrackerMOT.txttoMOT17-04-DPM.txtand move it tobenchmark/MOT17to comply with motmetrics.app python app requirement -
Run tool on this to get evaluation metrics (takes a bit of time)
cd benchmark/MOT17
python3 -m motmetrics.apps.eval_motchallenge . .- Result
IDF1 IDP IDR Rcll Prcn GT MT PT ML FP FN IDs FM MOTA MOTP
MOT17-04-DPM 28.6% 34.4% 24.5% 42.8% 60.0% 83 8 43 32 13558 27210 355 549 13.5% 0.224
OVERALL 28.6% 34.4% 24.5% 42.8% 60.0% 83 8 43 32 13558 27210 355 549 13.5% 0.224