提交 58ca506c 编写于 作者: N nemonameless

fix read_mot_results

上级 cb568212
...@@ -48,14 +48,14 @@ def read_mot_results(filename, is_gt=False, is_ignore=False): ...@@ -48,14 +48,14 @@ def read_mot_results(filename, is_gt=False, is_ignore=False):
box_size = float(linelist[4]) * float(linelist[5]) box_size = float(linelist[4]) * float(linelist[5])
if is_gt: if is_gt:
if 'MOT16-' in filename or 'MOT17-' in filename: if 'MOT16-' in filename or 'MOT17-' in filename or 'MOT15-' in filename or 'MOT20-' in filename:
label = int(float(linelist[7])) label = int(float(linelist[7]))
mark = int(float(linelist[6])) mark = int(float(linelist[6]))
if mark == 0 or label not in valid_labels: if mark == 0 or label not in valid_labels:
continue continue
score = 1 score = 1
elif is_ignore: elif is_ignore:
if 'MOT16-' in filename or 'MOT17-' in filename: if 'MOT16-' in filename or 'MOT17-' in filename or 'MOT15-' in filename or 'MOT20-' in filename:
label = int(float(linelist[7])) label = int(float(linelist[7]))
vis_ratio = float(linelist[8]) vis_ratio = float(linelist[8])
if label not in ignore_labels and vis_ratio >= 0: if label not in ignore_labels and vis_ratio >= 0:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册