fix a bug in track.py

This commit is contained in:
lynn 2019-09-29 13:18:38 +08:00
parent a830e47ecd
commit e4ea0ba64b

View file

@ -38,7 +38,8 @@ def write_results(filename, results, data_type):
def eval_seq(opt, dataloader, data_type, result_filename, save_dir=None, show_image=True, frame_rate=30): def eval_seq(opt, dataloader, data_type, result_filename, save_dir=None, show_image=True, frame_rate=30):
mkdir_if_missing(save_dir) if save_dir:
mkdir_if_missing(save_dir)
tracker = JDETracker(opt, frame_rate=frame_rate) tracker = JDETracker(opt, frame_rate=frame_rate)
timer = Timer() timer = Timer()
results = [] results = []