Skip to content

Commit 990d01a

Browse files
authored
Update utils.py
1 parent 9772cfb commit 990d01a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/patchcore/utils.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,18 +134,19 @@ def compute_and_store_final_results(
134134
"Full PRO",
135135
"Anomaly Pixel AUROC",
136136
"Anomaly PRO",
137-
"Image AP",
138-
"Pixel AP"
137+
"Image AP", # 新增指标
138+
"Pixel AP", # 新增指标
139+
"New PRO", # 新增指标
139140
],
140141
):
141142
"""Store computed results as CSV file.
142143
143144
Args:
144145
results_path: [str] Where to store result csv.
145146
results: [List[List]] List of lists containing results per dataset,
146-
with results[i][0] == 'dataset_name' and results[i][1:8] =
147+
with results[i][0] == 'dataset_name' and results[i][1:6] =
147148
[instance_auroc, full_pixelwisew_auroc, full_pro,
148-
anomaly-only_pw_auroc, anomaly-only_pro, image_ap, pixel_ap]
149+
anomaly-only_pw_auroc, anomaly-only_pro]
149150
"""
150151
if row_names is not None:
151152
assert len(row_names) == len(results), "#Rownames != #Result-rows."

0 commit comments

Comments
 (0)