set default value of norm_eval and zero_init_residual to False
parent
c18d017180
commit
7ec1429e1b
|
@ -341,9 +341,9 @@ class ResNet(BaseBackbone):
|
||||||
frozen_stages=-1,
|
frozen_stages=-1,
|
||||||
conv_cfg=None,
|
conv_cfg=None,
|
||||||
norm_cfg=dict(type='BN', requires_grad=True),
|
norm_cfg=dict(type='BN', requires_grad=True),
|
||||||
norm_eval=True,
|
norm_eval=False,
|
||||||
with_cp=False,
|
with_cp=False,
|
||||||
zero_init_residual=True):
|
zero_init_residual=False):
|
||||||
super(ResNet, self).__init__()
|
super(ResNet, self).__init__()
|
||||||
if depth not in self.arch_settings:
|
if depth not in self.arch_settings:
|
||||||
raise KeyError(f'invalid depth {depth} for resnet')
|
raise KeyError(f'invalid depth {depth} for resnet')
|
||||||
|
|
Loading…
Reference in New Issue