It seems that `num_points_in_gt` is not correctly calculated in create_data.py
zwqnju opened this issue · 0 comments
zwqnju commented
When creating data (for KITTI), the following code is executed.
indices = box_np_ops.points_in_rbbox(points_v[:, :3], gt_boxes_lidar)
However, if the origin
argument is not set (default: origin=[0.5, 0.5, 0.5]
), box_np_ops.points_in_rbbox
(link) will consider the xyz coordinates stand for the center of 3D-Box, but the xyz coordinates in gt_ boxes_lidar
stand for the center of the bottom of box.
I think num_points_in_gt
is wrong in this case. And the correct code in this line should be:
indices = box_np_ops.points_in_rbbox(points_v[:, :3], gt_boxes_lidar, origin=[0.5, 0.5, 0])