Commit 7b1bda2d authored by Yezhen Cong's avatar Yezhen Cong Committed by Tai-Wang
Browse files

[Fix] Fix RegNet pretrained weight loading (#889)

* Fix regnet pretrained weight loading

* Remove unused file
parent 7f61177e
...@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment