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 minus pi/2 in yaw? #778

Closed
yangxpeijiu opened this issue Jul 22, 2021 · 1 comment
Closed

Why minus pi/2 in yaw? #778

yangxpeijiu opened this issue Jul 22, 2021 · 1 comment

Comments

@yangxpeijiu
Copy link

mmdet3d/core/bbox/structures/utils, in mono_cam_box2vis function.

    # convert yaw by (-yaw - np.pi / 2)
    # this is because mono 3D box class such as `NuScenesBox` has different
    # definition of rotation with our `CameraInstance3DBoxes`
     yaw = -yaw - np.pi / 2

I am confused by what means of different definition of rotation with these two boxes?

@Tai-Wang
Copy link
Member

It is a legacy issue due to hack of yaw and dimensions in the monocular 3D detection on nuScenes. Basically it is because the rotation definition of nuscenes box class is different from our CameraInstanceBoxes. It has been fixed with #744 . This function will be deprecated soon.

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