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
b492d113
Unverified
Commit
b492d113
authored
Jul 23, 2020
by
Shaoshuai Shi
Committed by
GitHub
Jul 23, 2020
Browse files
bugfixed: set num_point_features without vfe, typos (#177)
parent
9babdfda
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
pcdet/models/detectors/detector3d_template.py
pcdet/models/detectors/detector3d_template.py
+3
-1
No files found.
pcdet/models/detectors/detector3d_template.py
View file @
b492d113
...
...
@@ -33,6 +33,7 @@ class Detector3DTemplate(nn.Module):
model_info_dict
=
{
'module_list'
:
[],
'num_rawpoint_features'
:
self
.
dataset
.
point_feature_encoder
.
num_point_features
,
'num_point_features'
:
self
.
dataset
.
point_feature_encoder
.
num_point_features
,
'grid_size'
:
self
.
dataset
.
grid_size
,
'point_cloud_range'
:
self
.
dataset
.
point_cloud_range
,
'voxel_size'
:
self
.
dataset
.
voxel_size
...
...
@@ -141,6 +142,7 @@ class Detector3DTemplate(nn.Module):
model_cfg
=
self
.
model_cfg
.
POINT_HEAD
,
input_channels
=
num_point_features
,
num_class
=
self
.
num_class
if
not
self
.
model_cfg
.
POINT_HEAD
.
CLASS_AGNOSTIC
else
1
,
predict_boxes_when_training
=
self
.
model_cfg
.
get
(
'ROI_HEAD'
,
False
)
)
model_info_dict
[
'module_list'
].
append
(
point_head_module
)
...
...
@@ -152,7 +154,7 @@ class Detector3DTemplate(nn.Module):
point_head_module
=
roi_heads
.
__all__
[
self
.
model_cfg
.
ROI_HEAD
.
NAME
](
model_cfg
=
self
.
model_cfg
.
ROI_HEAD
,
input_channels
=
model_info_dict
[
'num_point_features'
],
num_class
=
self
.
num_class
if
not
self
.
model_cfg
.
P
OI
NT
_HEAD
.
CLASS_AGNOSTIC
else
1
,
num_class
=
self
.
num_class
if
not
self
.
model_cfg
.
R
OI_HEAD
.
CLASS_AGNOSTIC
else
1
,
)
model_info_dict
[
'module_list'
].
append
(
point_head_module
)
...
...
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