diff --git a/mmseg/models/backbones/resnet.py b/mmseg/models/backbones/resnet.py index e52e9122d7..0ff1fe9de9 100644 --- a/mmseg/models/backbones/resnet.py +++ b/mmseg/models/backbones/resnet.py @@ -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')