Skip to content

Commit

Permalink
fix heat map append
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonalaird committed Apr 26, 2024
1 parent 3daa4f0 commit 3873b4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vision_agent/agent/vision_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,8 @@ def _handle_viz_tools(
image_to_data[image]["scores"].extend(call_result.get("scores", []))
image_to_data[image]["masks"].extend(call_result.get("masks", []))
# only single heatmap is returned
image_to_data[image]["heat_map"].append(call_result.get("heat_map", []))
if "heat_map" in call_result:
image_to_data[image]["heat_map"].append(call_result["heat_map"])
if "mask_shape" in call_result:
image_to_data[image]["mask_shape"] = call_result["mask_shape"]

Expand Down

0 comments on commit 3873b4f

Please sign in to comment.