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

Why we need to rot90 and flip the occupancy ground truth in LoadOccupancy? #18

Open
zhanghm1995 opened this issue Sep 17, 2023 · 3 comments

Comments

@zhanghm1995
Copy link

Hi, I want to why we need to apply the below transformations in LoadOccupancy function?

# to BEVDet format
occupancy = occupancy.permute(2, 0, 1)  # to (16, 200, 200)
occupancy = torch.rot90(occupancy, 1, [1, 2])
occupancy = torch.flip(occupancy, [1])
occupancy = occupancy.permute(1, 2, 0)

Although the comment says they are used to transform the occupancy to BEVDet format, they are not exist in the BEVDet codebase.

Can anybody help to understand the purposes of these operations?

@Yzichen
Copy link

Yzichen commented Sep 28, 2023

@zhanghm1995 I have this same question. Do you know the answer yet?

@zhanghm1995
Copy link
Author

@Yzichen Sorry to reply so late. I still cannot understand these operations very well. It seems the built volume is different from the occupancy ground truth. However, the original BEVDet codebase doesn't need to do these operations, it is so weird.

@troylhy1991
Copy link

I guess it's related to align IMU coordinate with LiDAR coordinate.

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

3 participants