Rotated_IoU icon indicating copy to clipboard operation
Rotated_IoU copied to clipboard

Use on KITTI dataset labels

Open a-akram-98 opened this issue 3 years ago • 7 comments

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 !?

a-akram-98 avatar Apr 03 '21 19:04 a-akram-98

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.

lilanxiao avatar Apr 04 '21 07:04 lilanxiao

@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!

vehxianfish avatar May 08 '21 02:05 vehxianfish

@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.

lilanxiao avatar May 11 '21 14:05 lilanxiao

@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?

turboxin avatar May 13 '21 11:05 turboxin

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

lilanxiao avatar May 13 '21 11:05 lilanxiao

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

linchunmian avatar Aug 18 '21 14:08 linchunmian

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

XiaoyanQian avatar Oct 08 '21 08:10 XiaoyanQian