Skip to content

Commit

Permalink
fix bug in anchor_projection
Browse files Browse the repository at this point in the history
  • Loading branch information
linxuewu committed Mar 13, 2024
1 parent ea0add8 commit 0058832
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,10 @@ def anchor_projection(
T_src2dst[..., :vel_dim, :vel_dim], vel[..., None]
).squeeze(-1)
dst_anchor = torch.cat([center, size, yaw, vel], dim=-1)
index = [X, Y, Z, W, L, H, COS_YAW, SIN_YAW] + [VX, VY, VZ][:vel_dim]
index = torch.tensor(index, device=dst_anchor.device)
index = torch.argsort(index)
dst_anchor = dst_anchor.index_select(dim=-1, index=index)
dst_anchors.append(dst_anchor)
return dst_anchors

Expand Down

0 comments on commit 0058832

Please sign in to comment.