JustinLin610 commited on
Commit
ce70989
1 Parent(s): ba2ab12
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -126,7 +126,7 @@ def apply_half(t):
126
 
127
  # Function for visual grounding
128
  def visual_grounding(Image, Text):
129
- sample = construct_sample(Image, Text)
130
  sample = utils.move_to_cuda(sample) if use_cuda else sample
131
  sample = utils.apply_to_sample(apply_half, sample) if use_fp16 else sample
132
  with torch.no_grad():
126
 
127
  # Function for visual grounding
128
  def visual_grounding(Image, Text):
129
+ sample = construct_sample(Image, Text.lower())
130
  sample = utils.move_to_cuda(sample) if use_cuda else sample
131
  sample = utils.apply_to_sample(apply_half, sample) if use_fp16 else sample
132
  with torch.no_grad():