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
MMCV
Commits
040658b7
"tests/git@developer.sourcefind.cn:OpenDAS/mmcv.git" did not exist on "50c255bc2d3feac171bbee4bc68fcd4641a8b68a"
Unverified
Commit
040658b7
authored
Aug 29, 2022
by
ChaimZhu
Committed by
GitHub
Aug 29, 2022
Browse files
[Fix] Fix features variable may be None in points sampler (#2234)
parent
cdfbdc0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mmcv/ops/points_sampler.py
mmcv/ops/points_sampler.py
+1
-1
No files found.
mmcv/ops/points_sampler.py
View file @
040658b7
...
@@ -102,7 +102,7 @@ class PointsSampler(nn.Module):
...
@@ -102,7 +102,7 @@ class PointsSampler(nn.Module):
"""
"""
if
points_xyz
.
dtype
==
torch
.
half
:
if
points_xyz
.
dtype
==
torch
.
half
:
points_xyz
=
points_xyz
.
to
(
torch
.
float32
)
points_xyz
=
points_xyz
.
to
(
torch
.
float32
)
if
features
.
dtype
==
torch
.
half
:
if
features
is
not
None
and
features
.
dtype
==
torch
.
half
:
features
=
features
.
to
(
torch
.
float32
)
features
=
features
.
to
(
torch
.
float32
)
indices
=
[]
indices
=
[]
...
...
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