Skip to content

Commit

Permalink
fix wrong in_channels when with_distance=True in VFE layers (#749)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wuziyi616 committed Jul 14, 2021
1 parent 1db4bae commit 78f4562
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mmdet3d/models/voxel_encoders/voxel_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def __init__(self,
if with_voxel_center:
in_channels += 3
if with_distance:
in_channels += 3
in_channels += 1
self.in_channels = in_channels
self._with_distance = with_distance
self._with_cluster_center = with_cluster_center
Expand Down Expand Up @@ -331,7 +331,7 @@ def __init__(self,
if with_voxel_center:
in_channels += 3
if with_distance:
in_channels += 3
in_channels += 1
self.in_channels = in_channels
self._with_distance = with_distance
self._with_cluster_center = with_cluster_center
Expand Down

0 comments on commit 78f4562

Please sign in to comment.