Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwlambert authored Jun 30, 2021
1 parent 529365c commit 47c3258
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions argoverse/evaluation/competition_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def poly_to_label(poly: Polygon, category: str = "VEHICLE", track_id: str = "")

height = max(z) - min(z)

# translation = center
# location of object in egovehicle coordinates
center = np.array([bbox.centroid.xy[0][0], bbox.centroid.xy[1][0], min(z) + height / 2])

c = np.cos(angle_rad)
Expand All @@ -217,9 +217,6 @@ def poly_to_label(poly: Polygon, category: str = "VEHICLE", track_id: str = "")
]
)

# location of object in egovehicle coordinates
center = np.array([centroid[0], centroid[1], min(z) + height / 2])

return ObjectLabelRecord(
quaternion=q,
translation=center,
Expand Down

0 comments on commit 47c3258

Please sign in to comment.