Spaces:
Runtime error
Runtime error
Commit
·
ce70989
1
Parent(s):
ba2ab12
update
Browse files
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():
|