Skip to content

Commit

Permalink
fix crowd boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
bes-dev committed Jun 27, 2020
1 parent a93653a commit f7b2188
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mean_average_precision/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,12 @@ def check_box(iou, difficult, crowd, order, matched_ind, iou_threshold, mpolicy=
idx = order[i]
if iou[idx] > iou_threshold:
if not difficult[idx]:
if not idx in matched_ind or crowd[idx]:
if idx not in matched_ind:
result = ('tp', idx)
break
elif crowd[idx]:
result = ('ignore', -1)
break
else:
continue
else:
Expand Down

0 comments on commit f7b2188

Please sign in to comment.