Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save FrancescoSaverioZuppichini/93251a6625a1cf18ac052477f7adb564 to your computer and use it in GitHub Desktop.
Save FrancescoSaverioZuppichini/93251a6625a1cf18ac052477f7adb564 to your computer and use it in GitHub Desktop.
Test
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