second.pytorch icon indicating copy to clipboard operation
second.pytorch copied to clipboard

It seems that `num_points_in_gt` is not correctly calculated in create_data.py

Open zwqnju opened this issue 4 years ago • 0 comments

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])

zwqnju avatar Apr 22 '21 12:04 zwqnju