valor-lite 0.33.2__py3-none-any.whl → 0.33.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of valor-lite might be problematic. Click here for more details.
- valor_lite/detection/__init__.py +3 -3
- valor_lite/detection/annotation.py +48 -4
- valor_lite/detection/computation.py +165 -76
- valor_lite/detection/manager.py +610 -286
- valor_lite/detection/metric.py +32 -7
- {valor_lite-0.33.2.dist-info → valor_lite-0.33.4.dist-info}/METADATA +2 -1
- valor_lite-0.33.4.dist-info/RECORD +12 -0
- valor_lite-0.33.2.dist-info/RECORD +0 -12
- {valor_lite-0.33.2.dist-info → valor_lite-0.33.4.dist-info}/LICENSE +0 -0
- {valor_lite-0.33.2.dist-info → valor_lite-0.33.4.dist-info}/WHEEL +0 -0
- {valor_lite-0.33.2.dist-info → valor_lite-0.33.4.dist-info}/top_level.txt +0 -0
valor_lite/detection/metric.py
CHANGED
|
@@ -21,6 +21,25 @@ class MetricType(str, Enum):
|
|
|
21
21
|
PrecisionRecallCurve = "PrecisionRecallCurve"
|
|
22
22
|
DetailedCounts = "DetailedCounts"
|
|
23
23
|
|
|
24
|
+
@classmethod
|
|
25
|
+
def base_metrics(cls):
|
|
26
|
+
return [
|
|
27
|
+
cls.Counts,
|
|
28
|
+
cls.Accuracy,
|
|
29
|
+
cls.Precision,
|
|
30
|
+
cls.Recall,
|
|
31
|
+
cls.F1,
|
|
32
|
+
cls.AP,
|
|
33
|
+
cls.AR,
|
|
34
|
+
cls.mAP,
|
|
35
|
+
cls.mAR,
|
|
36
|
+
cls.APAveragedOverIOUs,
|
|
37
|
+
cls.mAPAveragedOverIOUs,
|
|
38
|
+
cls.ARAveragedOverScores,
|
|
39
|
+
cls.mARAveragedOverScores,
|
|
40
|
+
cls.PrecisionRecallCurve,
|
|
41
|
+
]
|
|
42
|
+
|
|
24
43
|
|
|
25
44
|
@dataclass
|
|
26
45
|
class Counts:
|
|
@@ -316,11 +335,19 @@ class DetailedCounts:
|
|
|
316
335
|
fp_hallucination: list[int]
|
|
317
336
|
fn_misclassification: list[int]
|
|
318
337
|
fn_missing_prediction: list[int]
|
|
319
|
-
tp_examples: list[list[str]]
|
|
320
|
-
fp_misclassification_examples: list[
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
338
|
+
tp_examples: list[list[tuple[str, tuple[float, float, float, float]]]]
|
|
339
|
+
fp_misclassification_examples: list[
|
|
340
|
+
list[tuple[str, tuple[float, float, float, float]]]
|
|
341
|
+
]
|
|
342
|
+
fp_hallucination_examples: list[
|
|
343
|
+
list[tuple[str, tuple[float, float, float, float]]]
|
|
344
|
+
]
|
|
345
|
+
fn_misclassification_examples: list[
|
|
346
|
+
list[tuple[str, tuple[float, float, float, float]]]
|
|
347
|
+
]
|
|
348
|
+
fn_missing_prediction_examples: list[
|
|
349
|
+
list[tuple[str, tuple[float, float, float, float]]]
|
|
350
|
+
]
|
|
324
351
|
score_thresholds: list[float]
|
|
325
352
|
iou_threshold: float
|
|
326
353
|
label: tuple[str, str]
|
|
@@ -335,13 +362,11 @@ class DetailedCounts:
|
|
|
335
362
|
"fp_hallucination": self.fp_hallucination,
|
|
336
363
|
"fn_misclassification": self.fn_misclassification,
|
|
337
364
|
"fn_missing_prediction": self.fn_missing_prediction,
|
|
338
|
-
"tn": None,
|
|
339
365
|
"tp_examples": self.tp_examples,
|
|
340
366
|
"fp_misclassification_examples": self.fp_misclassification_examples,
|
|
341
367
|
"fp_hallucination_examples": self.fp_hallucination_examples,
|
|
342
368
|
"fn_misclassification_examples": self.fn_misclassification_examples,
|
|
343
369
|
"fn_missing_prediction_examples": self.fn_missing_prediction_examples,
|
|
344
|
-
"tn_examples": None,
|
|
345
370
|
},
|
|
346
371
|
parameters={
|
|
347
372
|
"score_thresholds": self.score_thresholds,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: valor-lite
|
|
3
|
-
Version: 0.33.
|
|
3
|
+
Version: 0.33.4
|
|
4
4
|
Summary: Compute valor metrics directly in your client.
|
|
5
5
|
License: MIT License
|
|
6
6
|
|
|
@@ -32,6 +32,7 @@ Requires-Dist: Pillow >=9.1.0
|
|
|
32
32
|
Requires-Dist: tqdm
|
|
33
33
|
Requires-Dist: requests
|
|
34
34
|
Requires-Dist: numpy
|
|
35
|
+
Requires-Dist: shapely
|
|
35
36
|
Requires-Dist: importlib-metadata ; python_version < "3.8"
|
|
36
37
|
Provides-Extra: test
|
|
37
38
|
Requires-Dist: pytest ; extra == 'test'
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
valor_lite/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
valor_lite/schemas.py,sha256=r4cC10w1xYsA785KmGE4ePeOX3wzEs846vT7QAiVg_I,293
|
|
3
|
+
valor_lite/detection/__init__.py,sha256=taEB7NQBsyCSsMtvDA7E_FhDxMfJB1rax-Rl1ZtRMoE,1017
|
|
4
|
+
valor_lite/detection/annotation.py,sha256=BspLc3SjWXj6qYlGGpzDPHEZ8j7CiFzIL5cNlk0WCAM,2732
|
|
5
|
+
valor_lite/detection/computation.py,sha256=AsF9zb_c7XQ7z3LfOAtMPZDkmuCZmB8HeAMZJlCaO6U,24696
|
|
6
|
+
valor_lite/detection/manager.py,sha256=vnouYdx_Ul9jz_pOYt8xfvdPrNy0S4SB838KXvtS1Bw,45301
|
|
7
|
+
valor_lite/detection/metric.py,sha256=DLqpODJZOG7SCqt7TCgR4am68PQORRCIQW_SXiTb1IA,9473
|
|
8
|
+
valor_lite-0.33.4.dist-info/LICENSE,sha256=M0L53VuwfEEqezhHb7NPeYcO_glw7-k4DMLZQ3eRN64,1068
|
|
9
|
+
valor_lite-0.33.4.dist-info/METADATA,sha256=Eqb7KlTizDcjIV7eWM67zgdbbbVICGURdGrbben2NrI,1865
|
|
10
|
+
valor_lite-0.33.4.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
11
|
+
valor_lite-0.33.4.dist-info/top_level.txt,sha256=9ujykxSwpl2Hu0_R95UQTR_l07k9UUTSdrpiqmq6zc4,11
|
|
12
|
+
valor_lite-0.33.4.dist-info/RECORD,,
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
valor_lite/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
valor_lite/schemas.py,sha256=r4cC10w1xYsA785KmGE4ePeOX3wzEs846vT7QAiVg_I,293
|
|
3
|
-
valor_lite/detection/__init__.py,sha256=WHLHwHoKzXTBjkjC6E1_lhqB7gRWkiGWVWPqkKn-yK8,997
|
|
4
|
-
valor_lite/detection/annotation.py,sha256=ON9iVa33pxysUmZVTCb0wNz-eFX6MDOqDhGDz-ouymc,1466
|
|
5
|
-
valor_lite/detection/computation.py,sha256=L8FIwZ-qxOQnoT7mxgNzLyNyI-Bvga0i-gtbow3hN-o,22575
|
|
6
|
-
valor_lite/detection/manager.py,sha256=Y45Wy3PWi7dQ0VnDERdtpOixUbKVXTZxBcCR92ny0QY,34278
|
|
7
|
-
valor_lite/detection/metric.py,sha256=hHqClS7c71ztoUnfoaW3T7RmGYaVNU1SlM6vUs1P08I,8809
|
|
8
|
-
valor_lite-0.33.2.dist-info/LICENSE,sha256=M0L53VuwfEEqezhHb7NPeYcO_glw7-k4DMLZQ3eRN64,1068
|
|
9
|
-
valor_lite-0.33.2.dist-info/METADATA,sha256=fe-Sj568DB-E9cyC5P8GA_lLjmM1t3MZUHj1f0JF6fM,1842
|
|
10
|
-
valor_lite-0.33.2.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
11
|
-
valor_lite-0.33.2.dist-info/top_level.txt,sha256=9ujykxSwpl2Hu0_R95UQTR_l07k9UUTSdrpiqmq6zc4,11
|
|
12
|
-
valor_lite-0.33.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|