-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
fix bbox direction #1330
fix bbox direction #1330
Conversation
Hi @zhulf0804 , |
Thank you for your approval. I'll fix it as soon as possible.
Best wishes.
Lifa.
Update:
Fixed it. Is it ok now ?
|
This bug seems to be fixed in the latest mmdet3d. I found your used version is about v0.16.0. This bug can be fixed via setting the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please double-check whether this problem exists in the latest mmdet3d. I guess it has been fixed as I commented.
Thank you for your quick reply. I checked that It has been fixed in both master and v1.0.0rc0. I thought I used a very new version, because v0.18.1 was released on Feb 09, 2022. I'm sorry for not checking the latest version before asking the question. By the way, I found the bug was fixed in #803 on Jul 29, 2021. Looking forward to your reply. Anyway, nice repo and implementations. |
Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily get feedback. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.
Motivation
When training PointPillars, the bbox direction gt label is set to 0 when the angle is between in [0, np.pi] and is set to 1 when the angle is between in [np.pi, 2*np.pi].
mmdetection3d/mmdet3d/models/dense_heads/train_mixins.py
Lines 336 to 338 in ed81c6c
However, in the test stage, the operation may be opposite. That is the predicted label 0 corresponds to [-np.pi, 0] or [np.pi, 2*np.pi], while the predicted label 1 corresponds to [0, np.pi]
mmdetection3d/mmdet3d/models/dense_heads/anchor3d_head.py
Lines 506 to 511 in ed81c6c
Modification
I modified in predicted bbox prediction (mmdet3d/models/dense_heads/anchor3d_head.py#L506-L511) as the following code:
BC-breaking (Optional)
Does the modification introduce changes that break the back-compatibility of the downstream repos?
If so, please describe how it breaks the compatibility and how the downstream projects should modify their code to keep compatibility with this PR.
Use cases (Optional)
If this PR introduces a new feature, it is better to list some use cases here, and update the documentation.
Checklist