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
78f45621
"git@developer.sourcefind.cn:OpenDAS/torch-scatter.git" did not exist on "3bb53578a75f4c303390b2e2a72dccdb3955018b"
Unverified
Commit
78f45621
authored
Jul 14, 2021
by
Ziyi Wu
Committed by
GitHub
Jul 14, 2021
Browse files
fix wrong in_channels when with_distance=True in VFE layers (#749)
parent
1db4baed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mmdet3d/models/voxel_encoders/voxel_encoder.py
mmdet3d/models/voxel_encoders/voxel_encoder.py
+2
-2
No files found.
mmdet3d/models/voxel_encoders/voxel_encoder.py
View file @
78f45621
...
@@ -133,7 +133,7 @@ class DynamicVFE(nn.Module):
...
@@ -133,7 +133,7 @@ class DynamicVFE(nn.Module):
if
with_voxel_center
:
if
with_voxel_center
:
in_channels
+=
3
in_channels
+=
3
if
with_distance
:
if
with_distance
:
in_channels
+=
3
in_channels
+=
1
self
.
in_channels
=
in_channels
self
.
in_channels
=
in_channels
self
.
_with_distance
=
with_distance
self
.
_with_distance
=
with_distance
self
.
_with_cluster_center
=
with_cluster_center
self
.
_with_cluster_center
=
with_cluster_center
...
@@ -331,7 +331,7 @@ class HardVFE(nn.Module):
...
@@ -331,7 +331,7 @@ class HardVFE(nn.Module):
if
with_voxel_center
:
if
with_voxel_center
:
in_channels
+=
3
in_channels
+=
3
if
with_distance
:
if
with_distance
:
in_channels
+=
3
in_channels
+=
1
self
.
in_channels
=
in_channels
self
.
in_channels
=
in_channels
self
.
_with_distance
=
with_distance
self
.
_with_distance
=
with_distance
self
.
_with_cluster_center
=
with_cluster_center
self
.
_with_cluster_center
=
with_cluster_center
...
...
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