Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

voxel_pooling? final[geom_feats[:, 3], :, geom_feats[:, 2], geom_feats[:, 0], geom_feats[:, 1]] = x #29

Open
liwuhen opened this issue May 30, 2022 · 2 comments

Comments

@liwuhen
Copy link

liwuhen commented May 30, 2022

final = torch.zeros((B, C, self.nx[2], self.nx[0], self.nx[1]), device=x.device)
final[geom_feats[:, 3], :, geom_feats[:, 2], geom_feats[:, 0], geom_feats[:, 1]] = x

please!,why the value of final is zero? I'm confused by this assignment.

@manueldiaz96
Copy link

manueldiaz96 commented Aug 22, 2022

Because you want an empty grid onto which project the camera features to. This way you get the structure ready to which you do the assignment of cells with respect to the info learned from the cameras.

If you see where the projection rays look to (look at the right-most figure), you will see that not all cells in the grid will be looked at by each pixel following the geometric projection for a low-res feature map.

@liwuhen
Copy link
Author

liwuhen commented Aug 22, 2022

thank you for your work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants