parser.add_argument("--seq_path",help="Path to detections.",type=str,default='data')
parser.add_argument("--phase",help="Subdirectory in seq_path.",type=str,default='train')
parser.add_argument("--max_age",
help="Maximum number of frames to keep alive a track without associated detections.",
type=int,default=1)
parser.add_argument("--min_hits",
help="Minimum number of associated detections before track is initialised.",
type=int,default=3)
parser.add_argument("--iou_threshold",help="Minimum IOU for match.",type=float,default=0.3)
args=parser.parse_args()
returnargs
if__name__=='__main__':
# all train
args=parse_args()
display=args.display
phase=args.phase
total_time=0.0
total_frames=0
colours=np.random.rand(32,3)#used only for display
if(display):
ifnotos.path.exists('mot_benchmark'):
print('\n\tERROR: mot_benchmark link not found!\n\n Create a symbolic link to the MOT benchmark\n (https://motchallenge.net/data/2D_MOT_2015/#download). E.g.:\n\n $ ln -s /path/to/MOT2015_challenge/2DMOT2015 mot_benchmark\n\n')