Skip to content

Commit

Permalink
fix planning cumsum dimension
Browse files Browse the repository at this point in the history
  • Loading branch information
ilnehc committed Aug 7, 2023
1 parent 489a297 commit 7903ead
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/mmdet3d_plugin/uniad/dense_heads/planning_head.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def forward(self,
plan_query = self.attn_module(plan_query, bev_feat) # [1, 1, 256]

sdc_traj_all = self.reg_branch(plan_query).view((-1, self.planning_steps, 2))
sdc_traj_all[...,:2] = torch.cumsum(sdc_traj_all[...,:2], dim=2)
sdc_traj_all[...,:2] = torch.cumsum(sdc_traj_all[...,:2], dim=1)
sdc_traj_all[0] = bivariate_gaussian_activation(sdc_traj_all[0])
if self.use_col_optim and not self.training:
# post process, only used when testing
Expand Down

0 comments on commit 7903ead

Please sign in to comment.