Spaces:
Runtime error
Runtime error
update
Browse files
app.py
CHANGED
|
@@ -68,7 +68,7 @@ def image_transform_grounding_for_vis(init_image):
|
|
| 68 |
image, _ = transform(init_image, None) # 3, h, w
|
| 69 |
return image
|
| 70 |
|
| 71 |
-
model = load_model_hf(config_file, ckpt_repo_id,
|
| 72 |
|
| 73 |
def run_grounding(input_image, grounding_caption, box_threshold, text_threshold):
|
| 74 |
init_image = input_image.convert("RGB")
|
|
|
|
| 68 |
image, _ = transform(init_image, None) # 3, h, w
|
| 69 |
return image
|
| 70 |
|
| 71 |
+
model = load_model_hf(config_file, ckpt_repo_id, ckpt_filename)
|
| 72 |
|
| 73 |
def run_grounding(input_image, grounding_caption, box_threshold, text_threshold):
|
| 74 |
init_image = input_image.convert("RGB")
|