Skip to content

Commit

Permalink
add mask to necessary keys
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonalaird committed Apr 25, 2024
1 parent 1305e05 commit 3daa4f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vision_agent/agent/vision_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,9 @@ def _handle_viz_tools(
# 2. return a dictionary but not have the necessary keys

if not isinstance(call_result, dict) or (
"bboxes" not in call_result and "heat_map" not in call_result
"bboxes" not in call_result
and "mask" not in call_result
and "heat_map" not in call_result
):
return image_to_data

Expand Down

0 comments on commit 3daa4f0

Please sign in to comment.