Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
mmdetection3d
Commits
ecc9b17c
Commit
ecc9b17c
authored
Apr 28, 2020
by
wuyuefeng
Browse files
doc patch
parent
8f75dd3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
mmdet3d/ops/roiaware_pool3d/points_in_boxes.py
mmdet3d/ops/roiaware_pool3d/points_in_boxes.py
+6
-2
No files found.
mmdet3d/ops/roiaware_pool3d/points_in_boxes.py
View file @
ecc9b17c
...
@@ -4,7 +4,7 @@ from . import roiaware_pool3d_ext
...
@@ -4,7 +4,7 @@ from . import roiaware_pool3d_ext
def
points_in_boxes_gpu
(
points
,
boxes
):
def
points_in_boxes_gpu
(
points
,
boxes
):
"""
f
ind points in boxes (CUDA)
"""
F
ind points
that are
in boxes (CUDA)
Args:
Args:
points (torch.Tensor): [B, M, 3], [x, y, z] in LiDAR coordinate
points (torch.Tensor): [B, M, 3], [x, y, z] in LiDAR coordinate
...
@@ -29,7 +29,10 @@ def points_in_boxes_gpu(points, boxes):
...
@@ -29,7 +29,10 @@ def points_in_boxes_gpu(points, boxes):
def
points_in_boxes_cpu
(
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:
Args:
points (torch.Tensor): [npoints, 3]
points (torch.Tensor): [npoints, 3]
...
@@ -39,6 +42,7 @@ def points_in_boxes_cpu(points, boxes):
...
@@ -39,6 +42,7 @@ def points_in_boxes_cpu(points, boxes):
Returns:
Returns:
point_indices (torch.Tensor): (N, npoints)
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
boxes
.
shape
[
1
]
==
7
assert
points
.
shape
[
1
]
==
3
assert
points
.
shape
[
1
]
==
3
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment