Merge remote-tracking branch 'origin/segmentation_nms' into segmentation_nms
This commit is contained in:
commit
b681274954
|
|
@ -214,8 +214,8 @@ def mask_non_max_suppression_2(
|
|||
keep = np.ones(rows, dtype=bool)
|
||||
for i in range(rows):
|
||||
if keep[i]:
|
||||
condition = (ious[i] > iou_threshold) & (categories == category)
|
||||
keep[i + 1:] = np.where(condition[i + 1:], False, keep[i + 1:])
|
||||
condition = (ious[i] > iou_threshold) & (category[i] == categories)
|
||||
keep[i + 1 :] = np.where(condition[i + 1 :], False, keep[i + 1 :])
|
||||
|
||||
return keep
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue