Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Valid index 0 is not regarded, leading to possibly more prediction_matches than grountruh_matches and recall values higher than 1.
  • Loading branch information
marluca authored and waleedka committed Oct 27, 2018
1 parent a8e674c commit 8a09a75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mrcnn/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ def compute_matches(gt_boxes, gt_class_ids, gt_masks,
# 3. Find the match
for j in sorted_ixs:
# If ground truth box is already matched, go to next one
if gt_match[j] > 0:
if gt_match[j] > -1:
continue
# If we reach IoU smaller than the threshold, end the loop
iou = overlaps[i, j]
Expand Down

0 comments on commit 8a09a75

Please sign in to comment.