Skip to content

Commit

Permalink
fix rounds
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonalaird committed Jan 18, 2025
1 parent 32a82dc commit e12d6b7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions vision_agent/tools/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def sam2(
ret = _sam2(image, detections, image_size)
_display_tool_trace(
sam2.__name__,
{},
{"detections": detections},
ret["display_data"],
ret["files"],
)
Expand Down Expand Up @@ -401,15 +401,15 @@ def _owlv2_object_detection(
{
"label": bbox["label"],
"bbox": normalize_bbox(bbox["bounding_box"], image_size),
"score": bbox["score"],
"score": round(bbox["score"], 2),
}
for bbox in bboxes
]
display_data = [
{
"label": bbox["label"],
"bbox": bbox["bounding_box"],
"score": bbox["score"],
"score": round(bbox["score"], 2),
}
for bbox in bboxes
]
Expand Down Expand Up @@ -593,7 +593,7 @@ def owlv2_sam2_video_tracking(
)
_display_tool_trace(
owlv2_sam2_video_tracking.__name__,
{},
{"prompt": prompt, "chunk_length": chunk_length},
ret["display_data"],
ret["files"],
)
Expand Down Expand Up @@ -2161,7 +2161,7 @@ def siglip_classification(image: np.ndarray, labels: List[str]) -> Dict[str, Any
return response


# agentic od tools
# Agentic OD Tools


def _agentic_object_detection(
Expand Down

0 comments on commit e12d6b7

Please sign in to comment.