Update test.py
Browse files
test.py
CHANGED
@@ -135,7 +135,7 @@ def test(args):
|
|
135 |
print(interp_anomaly_map.min(), interp_anomaly_map.max())
|
136 |
dic = {
|
137 |
"img_level_score": text_probs.item(),
|
138 |
-
"pix_level_score": interp_anomaly_map.
|
139 |
}
|
140 |
os.makedirs(os.path.dirname(new_path), exist_ok=True)
|
141 |
dict_to_json(dic, new_path)
|
|
|
135 |
print(interp_anomaly_map.min(), interp_anomaly_map.max())
|
136 |
dic = {
|
137 |
"img_level_score": text_probs.item(),
|
138 |
+
"pix_level_score": interp_anomaly_map.cpu().detach().numpy()
|
139 |
}
|
140 |
os.makedirs(os.path.dirname(new_path), exist_ok=True)
|
141 |
dict_to_json(dic, new_path)
|