Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in calculation of false positives #31

Open
Chr1st1anG opened this issue Jan 12, 2021 · 0 comments
Open

Error in calculation of false positives #31

Chr1st1anG opened this issue Jan 12, 2021 · 0 comments

Comments

@Chr1st1anG
Copy link

for i in range(len(detection_boxes)): if matches.shape[0] > 0 and matches[matches[:,1] == i].shape[0] == 0: confusion_matrix[confusion_matrix.shape[0] - 1][int(detection_classes[i] - 1)] += 1

If the match_array is empty, the number of the respective cell is not incremented. Although there may be detection_boxes with no match. My suggestion:

for i in range(len(detection_boxes)): if matches.shape[0] == 0 or and matches[matches[:,1] == i].shape[0] == 0: confusion_matrix[confusion_matrix.shape[0] - 1][int(detection_classes[i] - 1)] += 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant