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
7b1bda2d
Commit
7b1bda2d
authored
Aug 27, 2021
by
Yezhen Cong
Committed by
Tai-Wang
Sep 24, 2021
Browse files
[Fix] Fix RegNet pretrained weight loading (#889)
* Fix regnet pretrained weight loading * Remove unused file
parent
7f61177e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mmdet3d/models/detectors/mvx_two_stage.py
mmdet3d/models/detectors/mvx_two_stage.py
+2
-2
No files found.
mmdet3d/models/detectors/mvx_two_stage.py
View file @
7b1bda2d
...
@@ -96,9 +96,9 @@ class MVXTwoStageDetector(Base3DDetector):
...
@@ -96,9 +96,9 @@ class MVXTwoStageDetector(Base3DDetector):
type
=
'Pretrained'
,
checkpoint
=
img_pretrained
)
type
=
'Pretrained'
,
checkpoint
=
img_pretrained
)
if
self
.
with_pts_backbone
:
if
self
.
with_pts_backbone
:
if
img
_pretrained
is
not
None
:
if
pts
_pretrained
is
not
None
:
warnings
.
warn
(
'DeprecationWarning: pretrained is a deprecated '
warnings
.
warn
(
'DeprecationWarning: pretrained is a deprecated '
'key, please consider using init_cfg
.
'
)
'key, please consider using init_cfg'
)
self
.
pts_backbone
.
init_cfg
=
dict
(
self
.
pts_backbone
.
init_cfg
=
dict
(
type
=
'Pretrained'
,
checkpoint
=
pts_pretrained
)
type
=
'Pretrained'
,
checkpoint
=
pts_pretrained
)
...
...
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