Last active
November 6, 2020 20:07
-
-
Save david-littlefield/f5114b2a55f71441bf7de7efb8676688 to your computer and use it in GitHub Desktop.
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
# Line 83 | |
while detections[0, i, j, 0] >= thresh: | |
score = detections[0, i, j, 0] | |
score = score.cpu().numpy() # <---------- | |
#label_name = labelmap[i-1] | |
pt = (detections[0, i, j, 1:]*scale).cpu().numpy() | |
coords = (pt[0], pt[1], pt[2], pt[3]) | |
det.append([pt[0], pt[1], pt[2], pt[3], score]) | |
j += 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment