Open yc-shan opened 2 years ago
you can also just use PyTorch3D's implementation of the ball query https://github.com/yanx27/Pointnet_Pointnet2_pytorch/issues/178#issuecomment-1587086798
I think you are right, the original code does not use knn within epsilon ball when there are more than nsample elements in the epsilon ball.
https://github.com/yanx27/Pointnet_Pointnet2_pytorch/blob/eb64fe0b4c24055559cea26299cb485dcb43d8dd/models/pointnet2_utils.py#L87
The element of group_idx is not the distance of points,so group_idx.sort doesn't make sense.
The code should be :