Skip to content

Commit

Permalink
fix mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonalaird committed Sep 6, 2024
1 parent 9bdbf1d commit 0fcfe04
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions vision_agent/tools/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,9 @@ def owl_v2_image(
bboxes = resp_data[0]
bboxes_formatted = [
ODResponseData(
label=bbox["label"], # type: ignore
bbox=normalize_bbox(bbox["bounding_box"], image_size), # type: ignore
score=round(bbox["score"], 2), # type: ignore
label=bbox["label"],
bbox=normalize_bbox(bbox["bounding_box"], image_size),
score=round(bbox["score"], 2),
)
for bbox in bboxes
]
Expand Down Expand Up @@ -623,9 +623,9 @@ def countgd_counting(
bboxes_per_frame = resp_data[0]
bboxes_formatted = [
ODResponseData(
label=bbox["label"], # type: ignore
bbox=list(map(lambda x: round(x, 2), bbox["bounding_box"])), # type: ignore
score=round(bbox["score"], 2), # type: ignore
label=bbox["label"],
bbox=list(map(lambda x: round(x, 2), bbox["bounding_box"])),
score=round(bbox["score"], 2),
)
for bbox in bboxes_per_frame
]
Expand Down Expand Up @@ -682,9 +682,9 @@ def countgd_example_based_counting(
bboxes_per_frame = resp_data[0]
bboxes_formatted = [
ODResponseData(
label=bbox["label"], # type: ignore
bbox=list(map(lambda x: round(x, 2), bbox["bounding_box"])), # type: ignore
score=round(bbox["score"], 2), # type: ignore
label=bbox["label"],
bbox=list(map(lambda x: round(x, 2), bbox["bounding_box"])),
score=round(bbox["score"], 2),
)
for bbox in bboxes_per_frame
]
Expand Down

0 comments on commit 0fcfe04

Please sign in to comment.