diff --git a/ppdet/data/transform/operators.py b/ppdet/data/transform/operators.py index 54f918c9bd46f..bd51db3691ca0 100644 --- a/ppdet/data/transform/operators.py +++ b/ppdet/data/transform/operators.py @@ -2015,12 +2015,12 @@ def apply(self, sample, context=None): @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 a10d53aeb03c2..919c3d3531a63 100644 --- a/ppdet/modeling/layers.py +++ b/ppdet/modeling/layers.py @@ -163,6 +163,8 @@ def __init__(self, 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.