Skip to content

Commit

Permalink
[Fix] Fix RegNet pretrained weight loading (#889)
Browse files Browse the repository at this point in the history
* Fix regnet pretrained weight loading

* Remove unused file
  • Loading branch information
yezhen17 authored and Tai-Wang committed Sep 24, 2021
1 parent 7f61177 commit 7b1bda2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mmdet3d/models/detectors/mvx_two_stage.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ def __init__(self,
type='Pretrained', checkpoint=img_pretrained)

if self.with_pts_backbone:
if img_pretrained is not None:
if pts_pretrained is not None:
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(
type='Pretrained', checkpoint=pts_pretrained)

Expand Down

0 comments on commit 7b1bda2

Please sign in to comment.