Amirparsa-Sal commited on
Commit
a91613f
·
verified ·
1 Parent(s): e56ddc0

Update test.py

Browse files
Files changed (1) hide show
  1. test.py +1 -1
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.squeeze(0).cpu().detach().numpy()
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)