Created
October 26, 2022 07:57
-
-
Save FrancescoSaverioZuppichini/93251a6625a1cf18ac052477f7adb564 to your computer and use it in GitHub Desktop.
Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bboxes are sorted by score in decreasing order | |
init a vector keep with ones | |
for i in len(bboxes): | |
# was suppressed | |
if keep[i] == 0: | |
continue | |
# compare with all the others | |
for j in len(bbox): | |
if keep[j]: | |
if (iou(bboxes[i], bboxes[j]) > iou_threshold): | |
keep[j] = 0 | |
return keep |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment