Fix init_cfg in resnet backbone (#697)

This commit is contained in:
Ivan Rubachev 2021-07-15 06:45:14 +03:00 committed by GitHub
parent 00defd6b7f
commit 55085a85c3

View File

@ -400,7 +400,7 @@ class ResNet(BaseModule):
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')