diff --git a/PaddleCV/PaddleDetection/ppdet/modeling/backbones/resnet.py b/PaddleCV/PaddleDetection/ppdet/modeling/backbones/resnet.py index 635dee75ff83355756c11b389e5e794ca98bb423..496f5e76cbec09639c63b3b5d6499ee0d6f32598 100644 --- a/PaddleCV/PaddleDetection/ppdet/modeling/backbones/resnet.py +++ b/PaddleCV/PaddleDetection/ppdet/modeling/backbones/resnet.py @@ -424,7 +424,8 @@ class ResNetC5(ResNet): freeze_norm=True, norm_decay=0., variant='b', - feature_maps=[5]): + feature_maps=[5], + weight_prefix_name=''): super(ResNetC5, self).__init__(depth, freeze_at, norm_type, freeze_norm, norm_decay, variant, feature_maps) self.severed_head = True diff --git a/PaddleCV/PaddleDetection/ppdet/modeling/backbones/resnext.py b/PaddleCV/PaddleDetection/ppdet/modeling/backbones/resnext.py index d9d49e76152b59d2b39098f03232a15cf7719b0c..5452511376de21ccca731b0f4e08b38552fb4e9d 100644 --- a/PaddleCV/PaddleDetection/ppdet/modeling/backbones/resnext.py +++ b/PaddleCV/PaddleDetection/ppdet/modeling/backbones/resnext.py @@ -50,7 +50,8 @@ class ResNeXt(ResNet): norm_decay=True, variant='a', feature_maps=[2, 3, 4, 5], - dcn_v2_stages=[]): + dcn_v2_stages=[], + weight_prefix_name=''): assert depth in [50, 101, 152], "depth {} should be 50, 101 or 152" super(ResNeXt, self).__init__(depth, freeze_at, norm_type, freeze_norm, norm_decay, variant, feature_maps) @@ -80,7 +81,8 @@ class ResNeXtC5(ResNeXt): freeze_norm=True, norm_decay=True, variant='a', - feature_maps=[5]): + feature_maps=[5], + weight_prefix_name=''): super(ResNeXtC5, self).__init__(depth, groups, group_width, freeze_at, norm_type, freeze_norm, norm_decay, variant, feature_maps) diff --git a/PaddleCV/PaddleDetection/ppdet/modeling/backbones/senet.py b/PaddleCV/PaddleDetection/ppdet/modeling/backbones/senet.py index f92d5eaef9eb39632c6e62c62de54f9e57868469..09c69ff199f03837b979127664d7e752db7e587a 100644 --- a/PaddleCV/PaddleDetection/ppdet/modeling/backbones/senet.py +++ b/PaddleCV/PaddleDetection/ppdet/modeling/backbones/senet.py @@ -56,7 +56,8 @@ class SENet(ResNeXt): variant='d', feature_maps=[2, 3, 4, 5], dcn_v2_stages=[], - std_senet=False): + std_senet=False, + weight_prefix_name=''): super(SENet, self).__init__(depth, groups, group_width, freeze_at, norm_type, freeze_norm, norm_decay, variant, feature_maps) @@ -113,7 +114,8 @@ class SENetC5(SENet): freeze_norm=True, norm_decay=0., variant='d', - feature_maps=[5]): + feature_maps=[5], + weight_prefix_name=''): super(SENetC5, self).__init__(depth, groups, group_width, freeze_at, norm_type, freeze_norm, norm_decay, variant, feature_maps)