Refactor for simplification (#9054)
* Refactor for simplification * cleanup * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
f258cf8b37
commit
c725511bfc
5 files changed
+13
-15
No files matched your search
+1
-1
@@ -141,7 +141,7 @@ class ConfusionMatrix:
|
||||
"""
|
||||
if detections is None:
|
||||
gt_classes = labels.int()
|
||||
for i, gc in enumerate(gt_classes):
|
||||
for gc in gt_classes:
|
||||
self.matrix[self.nc, gc] += 1 # background FN
|
||||
return
|
||||
|
||||
|
||||
Reference in new issue
Block a user