Skip to content

Commit

Permalink
fix bbox convention
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdavidfagan committed Jun 5, 2024
1 parent 2ea9f60 commit a3fd367
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mujoco_robot_environments/tasks/rearrangement.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,10 @@ def get_bbox(prop_id, segmentation_map):
try:
bbox_corners = np.array(
[
np.min(prop_coords[:, 0]),
np.min(prop_coords[:, 1]),
np.max(prop_coords[:, 0]),
np.min(prop_coords[:, 0]),
np.max(prop_coords[:, 1]),
np.max(prop_coords[:, 0]),
]
)
except:
Expand Down

0 comments on commit a3fd367

Please sign in to comment.