Spaces:
Running
on
Zero
Running
on
Zero
markany-yhkwon
commited on
Commit
·
2f32b9e
1
Parent(s):
9be9c3b
bug fix pil lets go
Browse files
app.py
CHANGED
@@ -82,7 +82,6 @@ def run_grounding(input_image, grounding_caption, box_threshold, text_threshold)
|
|
82 |
annotated_frame = annotate(image_source=np.asarray(image_pil), boxes=boxes, logits=logits, phrases=phrases)
|
83 |
image_with_box = Image.fromarray(cv2.cvtColor(annotated_frame, cv2.COLOR_BGR2RGB))
|
84 |
|
85 |
-
|
86 |
return image_with_box
|
87 |
|
88 |
if __name__ == "__main__":
|
|
|
82 |
annotated_frame = annotate(image_source=np.asarray(image_pil), boxes=boxes, logits=logits, phrases=phrases)
|
83 |
image_with_box = Image.fromarray(cv2.cvtColor(annotated_frame, cv2.COLOR_BGR2RGB))
|
84 |
|
|
|
85 |
return image_with_box
|
86 |
|
87 |
if __name__ == "__main__":
|