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
OpenPCDet
Commits
9babdfda
Unverified
Commit
9babdfda
authored
Jul 21, 2020
by
Shaoshuai Shi
Committed by
GitHub
Jul 21, 2020
Browse files
bugfixed: shape check in vsa layer and nms (#174)
parent
bea20f3b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
pcdet/models/backbones_3d/pfe/voxel_set_abstraction.py
pcdet/models/backbones_3d/pfe/voxel_set_abstraction.py
+1
-1
pcdet/ops/iou3d_nms/iou3d_nms_utils.py
pcdet/ops/iou3d_nms/iou3d_nms_utils.py
+1
-1
No files found.
pcdet/models/backbones_3d/pfe/voxel_set_abstraction.py
View file @
9babdfda
...
...
@@ -193,7 +193,7 @@ class VoxelSetAbstraction(nn.Module):
xyz_batch_cnt
=
xyz
.
new_zeros
(
batch_size
).
int
()
for
bs_idx
in
range
(
batch_size
):
xyz_batch_cnt
[
bs_idx
]
=
(
raw_points
[:,
0
]
==
bs_idx
).
sum
()
point_features
=
raw_points
[:,
4
:].
contiguous
()
if
len
(
raw_points
)
>
4
else
None
point_features
=
raw_points
[:,
4
:].
contiguous
()
if
raw_points
.
shape
[
1
]
>
4
else
None
pooled_points
,
pooled_features
=
self
.
SA_rawpoints
(
xyz
=
xyz
.
contiguous
(),
...
...
pcdet/ops/iou3d_nms/iou3d_nms_utils.py
View file @
9babdfda
...
...
@@ -105,7 +105,7 @@ def nms_normal_gpu(boxes, scores, thresh, **kwargs):
:param thresh:
:return:
"""
assert
boxes
.
shape
[
0
]
==
7
assert
boxes
.
shape
[
1
]
==
7
order
=
scores
.
sort
(
0
,
descending
=
True
)[
1
]
boxes
=
boxes
[
order
].
contiguous
()
...
...
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