V2AI / Det3D

World's first general purpose 3D object detection codebse.
https://arxiv.org/abs/1908.09492
Apache License 2.0
1.48k stars 299 forks source link

The bug of rotated IoU calculation in nms_gpu.py #135

Closed meng-zha closed 3 years ago

meng-zha commented 3 years ago

If the box and the query box are almost the same, _rotate_iougpu() will mistakenly calculate the IoU to be zero, which is exactly to be 1. The bug occurs in the inter() function at L397 of nms_gpu.py.

poodarchu commented 3 years ago

you can add a small vaule like 1e-12 to avoid this.