valor-lite 0.36.5__py3-none-any.whl → 0.36.6__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.
- valor_lite/object_detection/computation.py +0 -6
- valor_lite/object_detection/manager.py +0 -1
- valor_lite/object_detection/utilities.py +0 -9
- {valor_lite-0.36.5.dist-info → valor_lite-0.36.6.dist-info}/METADATA +1 -1
- {valor_lite-0.36.5.dist-info → valor_lite-0.36.6.dist-info}/RECORD +7 -7
- {valor_lite-0.36.5.dist-info → valor_lite-0.36.6.dist-info}/WHEEL +0 -0
- {valor_lite-0.36.5.dist-info → valor_lite-0.36.6.dist-info}/top_level.txt +0 -0
|
@@ -345,12 +345,6 @@ def rank_pairs(
|
|
|
345
345
|
mask_unmatched_predictions = ~np.isin(pairs[:, 2], matched_predictions)
|
|
346
346
|
pairs = pairs[mask_label_match | mask_unmatched_predictions]
|
|
347
347
|
|
|
348
|
-
# remove predictions for labels that have no ground truths
|
|
349
|
-
for label_idx, count in enumerate(label_metadata[:, 0]):
|
|
350
|
-
if count > 0:
|
|
351
|
-
continue
|
|
352
|
-
pairs = pairs[pairs[:, 4] != label_idx]
|
|
353
|
-
|
|
354
348
|
# only keep the highest ranked pair
|
|
355
349
|
_, indices = np.unique(pairs[:, [0, 2, 4]], axis=0, return_index=True)
|
|
356
350
|
pairs = pairs[indices]
|
|
@@ -23,7 +23,6 @@ def unpack_precision_recall_into_metric_lists(
|
|
|
23
23
|
iou_thresholds: list[float],
|
|
24
24
|
score_thresholds: list[float],
|
|
25
25
|
index_to_label: list[str],
|
|
26
|
-
label_metadata: NDArray[np.int32],
|
|
27
26
|
):
|
|
28
27
|
(
|
|
29
28
|
(
|
|
@@ -48,7 +47,6 @@ def unpack_precision_recall_into_metric_lists(
|
|
|
48
47
|
)
|
|
49
48
|
for iou_idx, iou_threshold in enumerate(iou_thresholds)
|
|
50
49
|
for label_idx, label in enumerate(index_to_label)
|
|
51
|
-
if int(label_metadata[label_idx, 0]) > 0
|
|
52
50
|
]
|
|
53
51
|
|
|
54
52
|
metrics[MetricType.mAP] = [
|
|
@@ -67,7 +65,6 @@ def unpack_precision_recall_into_metric_lists(
|
|
|
67
65
|
label=label,
|
|
68
66
|
)
|
|
69
67
|
for label_idx, label in enumerate(index_to_label)
|
|
70
|
-
if int(label_metadata[label_idx, 0]) > 0
|
|
71
68
|
]
|
|
72
69
|
|
|
73
70
|
# TODO - (c.zaloom) will be removed in the future
|
|
@@ -87,7 +84,6 @@ def unpack_precision_recall_into_metric_lists(
|
|
|
87
84
|
)
|
|
88
85
|
for score_idx, score_threshold in enumerate(score_thresholds)
|
|
89
86
|
for label_idx, label in enumerate(index_to_label)
|
|
90
|
-
if int(label_metadata[label_idx, 0]) > 0
|
|
91
87
|
]
|
|
92
88
|
|
|
93
89
|
metrics[MetricType.mAR] = [
|
|
@@ -108,7 +104,6 @@ def unpack_precision_recall_into_metric_lists(
|
|
|
108
104
|
label=label,
|
|
109
105
|
)
|
|
110
106
|
for label_idx, label in enumerate(index_to_label)
|
|
111
|
-
if int(label_metadata[label_idx, 0]) > 0
|
|
112
107
|
]
|
|
113
108
|
|
|
114
109
|
# TODO - (c.zaloom) will be removed in the future
|
|
@@ -129,13 +124,9 @@ def unpack_precision_recall_into_metric_lists(
|
|
|
129
124
|
)
|
|
130
125
|
for iou_idx, iou_threshold in enumerate(iou_thresholds)
|
|
131
126
|
for label_idx, label in enumerate(index_to_label)
|
|
132
|
-
if label_metadata[label_idx, 0] > 0
|
|
133
127
|
]
|
|
134
128
|
|
|
135
129
|
for label_idx, label in enumerate(index_to_label):
|
|
136
|
-
if label_metadata[label_idx, 0] == 0:
|
|
137
|
-
continue
|
|
138
|
-
|
|
139
130
|
for score_idx, score_threshold in enumerate(score_thresholds):
|
|
140
131
|
for iou_idx, iou_threshold in enumerate(iou_thresholds):
|
|
141
132
|
|
|
@@ -12,10 +12,10 @@ valor_lite/classification/numpy_compatibility.py,sha256=roqtTetsm1_HxuaejrthQdyd
|
|
|
12
12
|
valor_lite/classification/utilities.py,sha256=jAcir7dW-o4I2gk_NEmlRr8j8Iniyyq9QT5j3PMxVHk,6435
|
|
13
13
|
valor_lite/object_detection/__init__.py,sha256=eSrVAOpSykk1CfHXIKy1necplonUGxjyVKyDQ5UZoBQ,343
|
|
14
14
|
valor_lite/object_detection/annotation.py,sha256=LVec-rIk408LuFxcOoIkPk0QZMWSSxbmsady4wapC1s,7007
|
|
15
|
-
valor_lite/object_detection/computation.py,sha256=
|
|
16
|
-
valor_lite/object_detection/manager.py,sha256=
|
|
15
|
+
valor_lite/object_detection/computation.py,sha256=FPAOVOpvWlZemu9Lv4AAtrVQSMb_enbSxvupp22_2BY,24262
|
|
16
|
+
valor_lite/object_detection/manager.py,sha256=y5QujUSXrI6FHmA6sg7JyQrvPgikxFW1q0Zudg841r0,30010
|
|
17
17
|
valor_lite/object_detection/metric.py,sha256=sUYSZwXYfIyfmXG6_7Tje1_ZL_QwvecPq85jrGmwOWE,22739
|
|
18
|
-
valor_lite/object_detection/utilities.py,sha256=
|
|
18
|
+
valor_lite/object_detection/utilities.py,sha256=jdY7ltjVcnjCB4S_tRyt3gthyGcPbVQKLK6ZZO6HW5s,10870
|
|
19
19
|
valor_lite/semantic_segmentation/__init__.py,sha256=3YdItCThY_tW23IChCBm-R0zahnbZ06JDVjs-gQLVes,293
|
|
20
20
|
valor_lite/semantic_segmentation/annotation.py,sha256=KrDqmSVzBsutxEdh0Kl8VqcEpTe4S68UdkVg-nyxcFg,4025
|
|
21
21
|
valor_lite/semantic_segmentation/benchmark.py,sha256=uxd0SiDY3npsgU5pdeT4HvNP_au9GVRWzoqT6br9DtM,5961
|
|
@@ -35,7 +35,7 @@ valor_lite/text_generation/llm/instructions.py,sha256=fz2onBZZWcl5W8iy7zEWkPGU9N
|
|
|
35
35
|
valor_lite/text_generation/llm/integrations.py,sha256=-rTfdAjq1zH-4ixwYuMQEOQ80pIFzMTe0BYfroVx3Pg,6974
|
|
36
36
|
valor_lite/text_generation/llm/utilities.py,sha256=bjqatGgtVTcl1PrMwiDKTYPGJXKrBrx7PDtzIblGSys,1178
|
|
37
37
|
valor_lite/text_generation/llm/validators.py,sha256=Wzr5RlfF58_2wOU-uTw7C8skan_fYdhy4Gfn0jSJ8HM,2700
|
|
38
|
-
valor_lite-0.36.
|
|
39
|
-
valor_lite-0.36.
|
|
40
|
-
valor_lite-0.36.
|
|
41
|
-
valor_lite-0.36.
|
|
38
|
+
valor_lite-0.36.6.dist-info/METADATA,sha256=tqYUOtCt6-fgLB6xLFE0zs80nLZAzuP20nUG6ny9PW0,5071
|
|
39
|
+
valor_lite-0.36.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
40
|
+
valor_lite-0.36.6.dist-info/top_level.txt,sha256=9ujykxSwpl2Hu0_R95UQTR_l07k9UUTSdrpiqmq6zc4,11
|
|
41
|
+
valor_lite-0.36.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|