cyk commited on
Commit
c4dc515
1 Parent(s): 8e0a94c
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -75,6 +75,7 @@ def func(image, anomaly_description, object_name, object_number, mask_number, ar
75
  model.set_ensemble_text_prompts(textual_prompts, verbose=True)
76
  model.set_property_text_prompts(property_text_prompts, verbose=True)
77
 
 
78
  score, appendix = model(image)
79
  similarity_map = appendix['similarity_map']
80
 
 
75
  model.set_ensemble_text_prompts(textual_prompts, verbose=True)
76
  model.set_property_text_prompts(property_text_prompts, verbose=True)
77
 
78
+ image = cv2.resize(image, (eval_resolution, eval_resolution))
79
  score, appendix = model(image)
80
  similarity_map = appendix['similarity_map']
81