bug fix: switched rows and cols for correct detections in confusion matrix (#2883)

pull/2890/head
Michael Heilig 2021-04-22 00:49:55 +02:00 committed by GitHub
parent 5f7d39fede
commit d48a34dca7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ class ConfusionMatrix:
for i, gc in enumerate(gt_classes):
j = m0 == i
if n and sum(j) == 1:
self.matrix[gc, detection_classes[m1[j]]] += 1 # correct
self.matrix[detection_classes[m1[j]], gc] += 1 # correct
else:
self.matrix[self.nc, gc] += 1 # background FP