MCPcopy Create free account
hub / github.com/abewley/sort / parse_args

Function parse_args

sort.py:255–269  ·  view source on GitHub ↗

Parse input arguments.

()

Source from the content-addressed store, hash-verified

253 return np.empty((0,5))
254
255def parse_args():
256 """Parse input arguments."""
257 parser = argparse.ArgumentParser(description='SORT demo')
258 parser.add_argument('--display', dest='display', help='Display online tracker output (slow) [False]',action='store_true')
259 parser.add_argument("--seq_path", help="Path to detections.", type=str, default='data')
260 parser.add_argument("--phase", help="Subdirectory in seq_path.", type=str, default='train')
261 parser.add_argument("--max_age",
262 help="Maximum number of frames to keep alive a track without associated detections.",
263 type=int, default=1)
264 parser.add_argument("--min_hits",
265 help="Minimum number of associated detections before track is initialised.",
266 type=int, default=3)
267 parser.add_argument("--iou_threshold", help="Minimum IOU for match.", type=float, default=0.3)
268 args = parser.parse_args()
269 return args
270
271if __name__ == '__main__':
272 # all train

Callers 1

sort.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected