Skip to content

Commit

Permalink
make owl v2 consistently ',' (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonalaird authored Aug 15, 2024
1 parent 86ed31f commit dcf72c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vision_agent/tools/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def owl_v2(
Example
-------
>>> owl_v2("car. dinosaur", image)
>>> owl_v2("car, dinosaur", image)
[
{'score': 0.99, 'label': 'dinosaur', 'bbox': [0.1, 0.11, 0.35, 0.4]},
{'score': 0.98, 'label': 'car', 'bbox': [0.2, 0.21, 0.45, 0.5},
Expand All @@ -157,7 +157,7 @@ def owl_v2(
image_size = image.shape[:2]
image_b64 = convert_to_b64(image)
request_data = {
"prompts": prompt.split("."),
"prompts": prompt.split(","),
"image": image_b64,
"confidence": box_threshold,
"function_name": "owl_v2",
Expand Down

0 comments on commit dcf72c7

Please sign in to comment.