Skip to content

Commit 7903ead

Browse files
committed
fix planning cumsum dimension
1 parent 489a297 commit 7903ead

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/mmdet3d_plugin/uniad/dense_heads/planning_head.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def forward(self,
188188
plan_query = self.attn_module(plan_query, bev_feat) # [1, 1, 256]
189189

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

0 commit comments

Comments
 (0)