diff --git a/ppdet/data/transform/operators.py b/ppdet/data/transform/operators.py index 54f918c9bd46f8283c3be9ef57e4589f09481b51..bd51db3691ca09dd4e10e0469bb1daced6a4502a 100644 --- a/ppdet/data/transform/operators.py +++ b/ppdet/data/transform/operators.py @@ -2015,12 +2015,12 @@ class Rbox2Poly(BaseOperator): @register_op class AugmentHSV(BaseOperator): - def __init__(self, fraction=0.50, is_bgr=False): + def __init__(self, fraction=0.50, is_bgr=True): """ Augment the SV channel of image data. Args: - fraction (float): the fraction for augment - is_bgr (bool): whether the image is BGR mode + fraction (float): the fraction for augment. Default: 0.5. + is_bgr (bool): whether the image is BGR mode. Default: True. """ super(AugmentHSV, self).__init__() self.fraction = fraction diff --git a/ppdet/modeling/layers.py b/ppdet/modeling/layers.py index a10d53aeb03c270a70ccdd27c563c3564e31548b..919c3d3531a630c02d5779862cb25a0ffb742209 100644 --- a/ppdet/modeling/layers.py +++ b/ppdet/modeling/layers.py @@ -163,6 +163,8 @@ class ConvNormLayer(nn.Layer): bias_attr=True, lr_scale=dcn_lr_scale, regularizer=dcn_regularizer, + dcn_bias_regularizer=dcn_regularizer, + dcn_bias_lr_scale=dcn_lr_scale, skip_quant=skip_quant) norm_lr = 0. if freeze_norm else 1.