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
12919ddb
Commit
12919ddb
authored
Sep 19, 2022
by
“agent-sgs”
Browse files
pfe
parent
d471a693
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
pcdet/models/backbones_3d/vfe/dynamic_pillar_vfe.py
pcdet/models/backbones_3d/vfe/dynamic_pillar_vfe.py
+7
-7
No files found.
pcdet/models/backbones_3d/vfe/dynamic_pillar_vfe.py
View file @
12919ddb
...
...
@@ -149,11 +149,11 @@ class DynamicPillarPFE(VFETemplate):
self
.
use_norm
=
self
.
model_cfg
.
USE_NORM
self
.
with_distance
=
self
.
model_cfg
.
WITH_DISTANCE
self
.
use_absolute_xyz
=
self
.
model_cfg
.
USE_ABSLOTE_XYZ
self
.
use_cluster_xyz
=
self
.
model_cfg
.
get
(
'USE_CLUSTER_XYZ'
,
True
)
#
self.use_cluster_xyz = self.model_cfg.get('USE_CLUSTER_XYZ', True)
if
self
.
use_absolute_xyz
:
num_point_features
+=
3
if
self
.
use_cluster_xyz
:
num_point_features
+=
3
#
if self.use_cluster_xyz:
#
num_point_features += 3
if
self
.
with_distance
:
num_point_features
+=
1
...
...
@@ -214,10 +214,10 @@ class DynamicPillarPFE(VFETemplate):
else
:
features
.
append
(
points
[:,
4
:])
if
self
.
use_cluster_xyz
:
points_mean
=
torch_scatter
.
scatter_mean
(
points_xyz
,
unq_inv
,
dim
=
0
)
f_cluster
=
points_xyz
-
points_mean
[
unq_inv
,
:]
features
.
append
(
f_cluster
)
#
if self.use_cluster_xyz:
#
points_mean = torch_scatter.scatter_mean(points_xyz, unq_inv, dim=0)
#
f_cluster = points_xyz - points_mean[unq_inv, :]
#
features.append(f_cluster)
if
self
.
with_distance
:
points_dist
=
torch
.
norm
(
points
[:,
1
:
4
],
2
,
dim
=
1
,
keepdim
=
True
)
...
...
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