"vscode:/vscode.git/clone" did not exist on "8f783c1943af25e5bbccff628ba4385579b044e1"
Commit ecc9b17c authored by wuyuefeng's avatar wuyuefeng
Browse files

doc patch

parent 8f75dd3b
......@@ -4,7 +4,7 @@ from . import roiaware_pool3d_ext
def points_in_boxes_gpu(points, boxes):
"""find points in boxes (CUDA)
"""Find points that are in boxes (CUDA)
Args:
points (torch.Tensor): [B, M, 3], [x, y, z] in LiDAR coordinate
......@@ -29,7 +29,10 @@ def points_in_boxes_gpu(points, boxes):
def points_in_boxes_cpu(points, boxes):
"""find points in boxes (CPU)
"""Find points that are in boxes (CPU)
Note: Currently, the output of this function is different from that of
points_in_boxes_gpu.
Args:
points (torch.Tensor): [npoints, 3]
......@@ -39,6 +42,7 @@ def points_in_boxes_cpu(points, boxes):
Returns:
point_indices (torch.Tensor): (N, npoints)
"""
# TODO: Refactor this function as a CPU version of points_in_boxes_gpu
assert boxes.shape[1] == 7
assert points.shape[1] == 3
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment