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

Use on KITTI dataset labels #17

Open
a-akram-98 opened this issue Apr 3, 2021 · 7 comments
Open

Use on KITTI dataset labels #17

a-akram-98 opened this issue Apr 3, 2021 · 7 comments

Comments

@a-akram-98
Copy link

Hello, I've a question, You assumed the coordinates x to left y to forward z to up, but I want to use it on KITTI labels, where the labels coordinates are like: x to left y to down z to forward and the rotation ry is around y-axis, so can you help me to figure it out, will I switch the order of the input to the cal_iou_3d or what !?

@lilanxiao
Copy link
Owner

lilanxiao commented Apr 4, 2021

All you need is a coordinates transformation. Suppose the KITTI label is a tuple (x, y, z, a, b, c, alpha), the tuple for IoU calculation should be (x, z, -y, a, c, b, -alpha). You could write a wrapper to do the transformation.

@vehxianfish
Copy link

vehxianfish commented May 8, 2021

@lilanxiao ,hi.thanks for your great work,it's help me a lot. In the repository, Is the coordinates' orientation like@a-akram-98 said? x to left y to forward z to up,and rotation ry is around z axis and Clockwise.
thank you!

@lilanxiao
Copy link
Owner

@lilanxiao ,hi.thanks for your great work,it's help me a lot. In the repository, Is the coordinates' orientation like@a-akram-98 said? x to left y to forward z to up,and rotation ry is around z axis and Clockwise.
thank you!

hi! I use a right-handed coordinate system. x, y, z are left, forward and up, respectively. The rotation is around the z-axis. The rotation direction follows the right-hand rule.

@turboxin
Copy link

@lilanxiao ,hi.thanks for your great work,it's help me a lot. In the repository, Is the coordinates' orientation like@a-akram-98 said? x to left y to forward z to up,and rotation ry is around z axis and Clockwise.
thank you!

hi! I use a right-handed coordinate system. x, y, z are left, forward and up, respectively. The rotation is around the z-axis. The rotation direction follows the right-hand rule.

Hi @lilanxiao, as you mentioned above a right-handed coordinate system is used, but x-left, y-forward , z-up seems not a right-handed coordinate system. I'm wondering if there is any mistake or misunderstanding here?

@lilanxiao
Copy link
Owner

hi @turboxin! Sorry, that's my mistake. The x-axis is actually right, not left.

@linchunmian
Copy link

Hi, everyone. I also want to apply it to KITTI labels.How to write the transformation script?

1 similar comment
@XiaoyanQian
Copy link

Hi, everyone. I also want to apply it to KITTI labels.How to write the transformation script?

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

6 participants