Skip to content

Commit 64f958e

Browse files
authored
bug fix
1 parent 05acd1e commit 64f958e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

confusion_matrix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def process_batch(self, detections, labels):
8080
self.matrix[(gt_class), self.num_classes] += 1
8181

8282
for i, detection in enumerate(detections):
83-
if all_matches.shape[0] and all_matches[all_matches[:, 1] == i].shape[0] == 1:
83+
if all_matches.shape[0] and all_matches[all_matches[:, 1] == i].shape[0] == 0:
8484
detection_class = detection_classes[i]
8585
self.matrix[self.num_classes ,detection_class] += 1
8686

0 commit comments

Comments
 (0)