Skip to content

Commit

Permalink
add model
Browse files Browse the repository at this point in the history
  • Loading branch information
Dayof committed Sep 2, 2024
1 parent 437c8b1 commit becc7f3
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 @@ -540,7 +540,7 @@ def countgd_counting(
"""
buffer_bytes = numpy_to_bytes(image)
files = [("image", buffer_bytes)]
payload = {"prompts": [prompt]}
payload = {"prompts": [prompt], "model": "countgd"}
metadata = {"function_name": "countgd_counting"}
resp_data: List[Dict[str, Any]] = send_task_inference_request(
payload, "text-to-object-detection", files=files, metadata=metadata
Expand Down Expand Up @@ -591,7 +591,7 @@ def countgd_example_based_counting(
visual_prompts = [
denormalize_bbox(bbox, image.shape[:2]) for bbox in visual_prompts
]
payload = {"visual_prompts": json.loads(visual_prompts)}
payload = {"visual_prompts": json.loads(visual_prompts), "model": "countgd"}
metadata = {"function_name": "countgd_example_based_counting"}
resp_data: List[Dict[str, Any]] = send_task_inference_request(
payload, "visual-prompts-to-object-detection", files=files, metadata=metadata
Expand Down

0 comments on commit becc7f3

Please sign in to comment.