zdou0830 commited on
Commit
a5c6f8e
1 Parent(s): f715118
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -76,7 +76,8 @@ def resize_image_by_width(image, new_width=500):
76
  return resized_image
77
 
78
  def predict(image, text, ground_tokens=""):
79
- image = resize_image_by_width(image)
 
80
  ground_tokens = None if ground_tokens.strip() == "" else ground_tokens.strip().split(";")
81
  result, _ = glip_demo.run_on_web_image(deepcopy(image[:, :, [2, 1, 0]]), text, 0.5, ground_tokens, **athetics_params)
82
  fiber_result, _ = fiber_demo.run_on_web_image(deepcopy(image[:, :, [2, 1, 0]]), text, 0.5, ground_tokens, **athetics_params)
 
76
  return resized_image
77
 
78
  def predict(image, text, ground_tokens=""):
79
+ #image = resize_image_by_width(image)
80
+ print(image.shape)
81
  ground_tokens = None if ground_tokens.strip() == "" else ground_tokens.strip().split(";")
82
  result, _ = glip_demo.run_on_web_image(deepcopy(image[:, :, [2, 1, 0]]), text, 0.5, ground_tokens, **athetics_params)
83
  fiber_result, _ = fiber_demo.run_on_web_image(deepcopy(image[:, :, [2, 1, 0]]), text, 0.5, ground_tokens, **athetics_params)