From 77716bf059dc9faa0ffdf99ee570f049a35a4360 Mon Sep 17 00:00:00 2001 From: wangguanzhong Date: Mon, 26 Aug 2019 15:24:05 +0800 Subject: [PATCH] refine name define in deformable conv (#3189) --- PaddleCV/PaddleDetection/ppdet/modeling/backbones/resnet.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/PaddleCV/PaddleDetection/ppdet/modeling/backbones/resnet.py b/PaddleCV/PaddleDetection/ppdet/modeling/backbones/resnet.py index 4c798a97..324a9a5b 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 -- GitLab