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 motmetrics
Install LAP solver which is faster
pip3 install lap
You 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 --help
Example 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.txt
toMOT17-04-DPM.txt
and move it tobenchmark/MOT17
to 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