cheind / py-motmetrics

:bar_chart: Benchmark multiple object trackers (MOT) in Python
MIT License
1.37k stars 259 forks source link

Getting error while using the code for evaluting my own groundtruth and tracking results #113

Open pordeli opened 4 years ago

pordeli commented 4 years ago

Hi I am using the below code but getting an error.Why?

(motmetrics-env) D:\py-motmetrics-develop>python -m motmetrics.apps.eval_motchallenge groundtruths D:\SEQUENCE_1\gt\gt.txt tests D:\SEQUENCE_1\test\test.txt

usage: eval_motchallenge.py [-h] [--loglevel LOGLEVEL] [--fmt FMT] [--solver SOLVER] [--id_solver ID_SOLVER] [--exclude_id] groundtruths tests

eval_motchallenge.py: error: unrecognized arguments: tests D:\SEQUENCE_1\test\test.txt

cheind commented 4 years ago

Your file structure should match

---------
Layout for ground truth data
    <GT_ROOT>/<SEQUENCE_1>/gt/gt.txt
    <GT_ROOT>/<SEQUENCE_2>/gt/gt.txt
    ...
Layout for test data
    <TEST_ROOT>/<SEQUENCE_1>.txt
    <TEST_ROOT>/<SEQUENCE_2>.txt
    ...
Sequences of ground truth and test will be matched according to the `<SEQUENCE_X>`
string

Then run

python -m motmetrics.apps.eval_motchallenge <GT_ROOT> <TEST_ROOT> where you replace <...> with actual paths.

pordeli commented 4 years ago

Thanks for your reply. Should I have a SEQUENCE folder? I have just 1 tracking output text file and 1 gt text file. So there is just 1 sequence. My command is like below: python -m motmetrics.apps.eval_motchallenge D:/SEQUENCE_1/gt/gt.txt D:/SEQUENCE_1/test 02:12:11 INFO - Found 0 groundtruths and 1 test files.

Can you please tell me about the sequence? How should be the path for those files?