-
-
Notifications
You must be signed in to change notification settings - Fork 420
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] can_bus input of quaternion mistakenly get all 4 number as same number #214
base: main
Are you sure you want to change the base?
Conversation
… w value, due to pyquaternion bug.
您好,我正在尝试将uniad接入到carla或其他仿真器中,但uniad和nuscenes高度耦合,一直没找到方法,请问您是怎么接入到仿真器的?uniad的输入数据都需要什么? |
可以给一些建议吗? |
We rewrote the model's forward function, remove all elements from nusense and also all GT related to loss/metrics. |
Issue
A subtle bug was discovered in the NuScenes dataset loader where the canbus input for the BEV head incorrectly assigns quaternion values for ego vehicle rotation. Specifically, when assigning the quaternion (positions 4-8), all components receive the same value as rotation.w.
Reproduction Example
Fix
The solution is to use the quaternion's underlying numpy array for assignment:
Why the Bug Remained Undetected
Two main factors contributed to the delayed discovery:
This allowed the model to still function in open-loop evaluation scenarios where the same dataloader was used.
Discovery Process
We tried to integrate the UniAD model into our simulation pipeline but faced an issue: no matter how we supplied the rotation data from the simulator, the model couldn't generate the correct turning trajectory. To troubleshoot, we inspected the training pipeline line by line and discovered the problem. We confirmed that the UniAD model behaves correctly only when we input 'w, w, w, w' as the rotation in the canbus during simulation.
Impact
We conclude that this issue will not affact the open-loop evaluation. But if people try to use the model in the close-loop environments, like simualtion or real vehicle, it will show up.
We traced the source of this issue, and it's first appearance is well-adopted BEVFormer code base. And this issue still existed there. Which means all work derived from BEVFormer share the same problem.
Required Actions