diff --git a/PaddleCV/PaddleDetection/ppdet/modeling/backbones/resnet.py b/PaddleCV/PaddleDetection/ppdet/modeling/backbones/resnet.py index 4c798a9700ddc23dc010c321bb708ecee8ed4aa3..324a9a5b89b4a16d0d4270dcd9f437fe76deca8c 100644 --- a/PaddleCV/PaddleDetection/ppdet/modeling/backbones/resnet.py +++ b/PaddleCV/PaddleDetection/ppdet/modeling/backbones/resnet.py @@ -103,8 +103,10 @@ class ResNet(object): filter_size=filter_size, stride=stride, padding=padding, - param_attr=ParamAttr(initializer=Constant(0.0)), - bias_attr=ParamAttr(initializer=Constant(0.0)), + param_attr=ParamAttr( + initializer=Constant(0.0), name=name + ".w_0"), + bias_attr=ParamAttr( + initializer=Constant(0.0), name=name + ".b_0"), act=act, name=name) return out