From 4d80a21fe42c9da161a16af281a35f4dc436e241 Mon Sep 17 00:00:00 2001 From: xuefei Niu <32755055+MciaR@users.noreply.github.com> Date: Fri, 14 Oct 2022 10:31:07 +0800 Subject: [PATCH] Add RandomDistort Prob Notes (#7116) --- ppdet/data/transform/operators.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ppdet/data/transform/operators.py b/ppdet/data/transform/operators.py index 01af29ffc..c88ca8969 100644 --- a/ppdet/data/transform/operators.py +++ b/ppdet/data/transform/operators.py @@ -457,6 +457,10 @@ class GridMask(BaseOperator): @register_op class RandomDistort(BaseOperator): """Random color distortion. + Note: + The 'probability' in [lower, upper, probability] is the probability of not using this transformation, + not the probability of using this transformation. And this only applies in this operator(RandomDistort), + 'probability' in other BaseOperator means the probability of using that transformation. Args: hue (list): hue settings. in [lower, upper, probability] format. saturation (list): saturation settings. in [lower, upper, probability] format. -- GitLab