fix bug in the ConfusionMatrix class (#18409)
This commit is contained in:
parent
7afec0d89e
commit
edf8ba0f17
1 changed files with 3 additions and 4 deletions
|
|
@ -372,7 +372,6 @@ class ConfusionMatrix:
|
|||
else:
|
||||
self.matrix[self.nc, gc] += 1 # true background
|
||||
|
||||
if n:
|
||||
for i, dc in enumerate(detection_classes):
|
||||
if not any(m1 == i):
|
||||
self.matrix[dc, self.nc] += 1 # predicted background
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue