More small changes

This commit is contained in:
SkalskiP
2023-08-06 13:24:51 +02:00
parent e0ca4ca5e7
commit 3a31ea2986
2 changed files with 7 additions and 13 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ import numpy as np
import pytest
from supervision.detection.core import Detections
from supervision.metrics.detection import ConfusionMatrix
from supervision.metrics.detection import ConfusionMatrix, detections_to_tensor
from test.utils import mock_detections
CLASSES = np.arange(80)
@@ -167,7 +167,7 @@ def test_detections_to_tensor(
exception: Exception
):
with exception:
result = ConfusionMatrix.detections_to_tensor(
result = detections_to_tensor(
detections=detections,
with_confidence=with_confidence
)