Skip to content

Commit

Permalink
Fix init_cfg in resnet backbone
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Rubachev committed Jul 12, 2021
1 parent f5be6e2 commit 44a44cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmseg/models/backbones/resnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ def __init__(self,
zero_init_residual=True,
pretrained=None,
init_cfg=None):
super(ResNet, self).__init__()
super(ResNet, self).__init__(init_cfg)
if depth not in self.arch_settings:
raise KeyError(f'invalid depth {depth} for resnet')

Expand Down

0 comments on commit 44a44cf

Please sign in to comment.