diff --git a/ppdet/modeling/backbone/darknet.py b/ppdet/modeling/backbone/darknet.py index cb5b410027459794ee2af897079252be51704842..b1e386caebe2926ea191e15a1887cb74b3dc334d 100755 --- a/ppdet/modeling/backbone/darknet.py +++ b/ppdet/modeling/backbone/darknet.py @@ -30,7 +30,7 @@ class ConvBNLayer(nn.Layer): weight_attr=ParamAttr(name=name + '.conv.weights'), bias_attr=False) bn_name = name + '.bn' - self.batch_norm = nn.BatchNorm2d( + self.batch_norm = nn.BatchNorm2D( ch_out, weight_attr=ParamAttr( name=bn_name + '.scale', regularizer=L2Decay(0.)),