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

Some questions about pairwise_t_matrix. #34

Open
fengxueguiren opened this issue Oct 23, 2024 · 1 comment
Open

Some questions about pairwise_t_matrix. #34

fengxueguiren opened this issue Oct 23, 2024 · 1 comment

Comments

@fengxueguiren
Copy link

Hi, how should we understand these scaling operations for pairwise_t_matrix? Thanks very much.

        pairwise_t_matrix[...,0,1] = pairwise_t_matrix[...,0,1] * H / W
        pairwise_t_matrix[...,1,0] = pairwise_t_matrix[...,1,0] * W / H
        pairwise_t_matrix[...,0,2] = pairwise_t_matrix[...,0,2] / (self.downsample_rate * self.discrete_ratio * W) * 2
        pairwise_t_matrix[...,1,2] = pairwise_t_matrix[...,1,2] / (self.downsample_rate * self.discrete_ratio * H) * 2
@yifanlu0227
Copy link
Owner

Sorry for the late reply, you need to dive deep a little bit to the affine_grid and grid_sample function, which treat the BEV feature map as an image wrapping transformation. Here is an illustration

Screenshot 2024-10-29 at 10 43 57

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