Skip to content
Snippets Groups Projects
Commit 71a22f8c authored by Dhananjai Sharma's avatar Dhananjai Sharma Committed by Kai Chen
Browse files

Fix for gt_ignore (#1242)

If list gt_ignore was empty, it should become None after the following if statement: if not gt_ignore, which was not getting handled correctly. Changed gt_ignore = gt_ignore to gt_ignore = None.
parent e224dc10
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ def voc_eval(result_file, dataset, iou_thr=0.5):
gt_bboxes.append(bboxes)
gt_labels.append(labels)
if not gt_ignore:
gt_ignore = gt_ignore
gt_ignore = None
if hasattr(dataset, 'year') and dataset.year == 2007:
dataset_name = 'voc07'
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment