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
26a16123
Unverified
Commit
26a16123
authored
Jun 09, 2021
by
Shaoshuai Shi
Committed by
GitHub
Jun 09, 2021
Browse files
bugfixed: add **kwargs to each roi_head to support variable argument (#559)
parent
686cf446
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
6 deletions
+7
-6
pcdet/models/detectors/detector3d_template.py
pcdet/models/detectors/detector3d_template.py
+2
-1
pcdet/models/roi_heads/partA2_head.py
pcdet/models/roi_heads/partA2_head.py
+1
-1
pcdet/models/roi_heads/pointrcnn_head.py
pcdet/models/roi_heads/pointrcnn_head.py
+1
-1
pcdet/models/roi_heads/pvrcnn_head.py
pcdet/models/roi_heads/pvrcnn_head.py
+1
-1
pcdet/models/roi_heads/roi_head_template.py
pcdet/models/roi_heads/roi_head_template.py
+1
-1
pcdet/models/roi_heads/second_head.py
pcdet/models/roi_heads/second_head.py
+1
-1
No files found.
pcdet/models/detectors/detector3d_template.py
View file @
26a16123
...
...
@@ -77,7 +77,8 @@ class Detector3DTemplate(nn.Module):
)
model_info_dict
[
'module_list'
].
append
(
backbone_3d_module
)
model_info_dict
[
'num_point_features'
]
=
backbone_3d_module
.
num_point_features
model_info_dict
[
'backbone_channels'
]
=
backbone_3d_module
.
backbone_channels
model_info_dict
[
'backbone_channels'
]
=
backbone_3d_module
.
backbone_channels
\
if
hasattr
(
backbone_3d_module
,
'backbone_channels'
)
else
None
return
backbone_3d_module
,
model_info_dict
def
build_map_to_bev_module
(
self
,
model_info_dict
):
...
...
pcdet/models/roi_heads/partA2_head.py
View file @
26a16123
...
...
@@ -8,7 +8,7 @@ from .roi_head_template import RoIHeadTemplate
class
PartA2FCHead
(
RoIHeadTemplate
):
def
__init__
(
self
,
input_channels
,
model_cfg
,
num_class
=
1
):
def
__init__
(
self
,
input_channels
,
model_cfg
,
num_class
=
1
,
**
kwargs
):
super
().
__init__
(
num_class
=
num_class
,
model_cfg
=
model_cfg
)
self
.
model_cfg
=
model_cfg
...
...
pcdet/models/roi_heads/pointrcnn_head.py
View file @
26a16123
...
...
@@ -8,7 +8,7 @@ from .roi_head_template import RoIHeadTemplate
class
PointRCNNHead
(
RoIHeadTemplate
):
def
__init__
(
self
,
input_channels
,
model_cfg
,
num_class
=
1
):
def
__init__
(
self
,
input_channels
,
model_cfg
,
num_class
=
1
,
**
kwargs
):
super
().
__init__
(
num_class
=
num_class
,
model_cfg
=
model_cfg
)
self
.
model_cfg
=
model_cfg
use_bn
=
self
.
model_cfg
.
USE_BN
...
...
pcdet/models/roi_heads/pvrcnn_head.py
View file @
26a16123
...
...
@@ -6,7 +6,7 @@ from .roi_head_template import RoIHeadTemplate
class
PVRCNNHead
(
RoIHeadTemplate
):
def
__init__
(
self
,
input_channels
,
model_cfg
,
num_class
=
1
):
def
__init__
(
self
,
input_channels
,
model_cfg
,
num_class
=
1
,
**
kwargs
):
super
().
__init__
(
num_class
=
num_class
,
model_cfg
=
model_cfg
)
self
.
model_cfg
=
model_cfg
...
...
pcdet/models/roi_heads/roi_head_template.py
View file @
26a16123
...
...
@@ -9,7 +9,7 @@ from .target_assigner.proposal_target_layer import ProposalTargetLayer
class
RoIHeadTemplate
(
nn
.
Module
):
def
__init__
(
self
,
num_class
,
model_cfg
):
def
__init__
(
self
,
num_class
,
model_cfg
,
**
kwargs
):
super
().
__init__
()
self
.
model_cfg
=
model_cfg
self
.
num_class
=
num_class
...
...
pcdet/models/roi_heads/second_head.py
View file @
26a16123
...
...
@@ -5,7 +5,7 @@ from ...utils import common_utils, loss_utils
class
SECONDHead
(
RoIHeadTemplate
):
def
__init__
(
self
,
input_channels
,
model_cfg
,
num_class
=
1
):
def
__init__
(
self
,
input_channels
,
model_cfg
,
num_class
=
1
,
**
kwargs
):
super
().
__init__
(
num_class
=
num_class
,
model_cfg
=
model_cfg
)
self
.
model_cfg
=
model_cfg
...
...
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