MCPcopy Create free account
hub / github.com/FoundationVision/ByteTrack / parse_args

Function parse_args

tutorials/ctracker/eval_motchallenge.py:17–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16
17def parse_args():
18 parser = argparse.ArgumentParser(description="""
19Compute metrics for trackers using MOTChallenge ground-truth data.
20Files
21-----
22All file content, ground truth and test files, have to comply with the
23format described in
24Milan, Anton, et al.
25"Mot16: A benchmark for multi-object tracking."
26arXiv preprint arXiv:1603.00831 (2016).
27https://motchallenge.net/
28Structure
29---------
30Layout for ground truth data
31 <GT_ROOT>/<SEQUENCE_1>/gt/gt.txt
32 <GT_ROOT>/<SEQUENCE_2>/gt/gt.txt
33 ...
34Layout for test data
35 <TEST_ROOT>/<SEQUENCE_1>.txt
36 <TEST_ROOT>/<SEQUENCE_2>.txt
37 ...
38Sequences of ground truth and test will be matched according to the `<SEQUENCE_X>`
39string.""", formatter_class=argparse.RawTextHelpFormatter)
40
41 parser.add_argument('--groundtruths', type=str, help='Directory containing ground truth files.')
42 parser.add_argument('--tests', type=str, help='Directory containing tracker result files')
43 parser.add_argument('--score_threshold', type=float, help='Score threshold',default=0.5)
44 parser.add_argument('--gt_type', type=str, default='')
45 parser.add_argument('--eval_official', action='store_true')
46 parser.add_argument('--loglevel', type=str, help='Log level', default='info')
47 parser.add_argument('--fmt', type=str, help='Data format', default='mot15-2D')
48 parser.add_argument('--solver', type=str, help='LAP solver to use')
49 return parser.parse_args()
50
51
52def compare_dataframes(gts, ts):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected