Forráskód Böngészése

correct docstring of RandomExpand transform

will-jl944 4 éve
szülő
commit
a666637f0b
1 módosított fájl, 4 hozzáadás és 1 törlés
  1. 4 1
      dygraph/paddlex/cv/transforms/operators.py

+ 4 - 1
dygraph/paddlex/cv/transforms/operators.py

@@ -867,13 +867,16 @@ class RandomCrop(Transform):
 
 class RandomExpand(Transform):
     """
-    Randomly expand the input by padding to the lower right side of the image(s) in input.
+    Randomly expand the input by padding according to random offsets.
 
     Args:
         upper_ratio(float, optional): The maximum ratio to which the original image is expanded. Defaults to 4..
         prob(float, optional): The probability of apply expanding. Defaults to .5.
         im_padding_value(List[float] or Tuple[float], optional): RGB filling value for the image. Defaults to (127.5, 127.5, 127.5).
         label_padding_value(int, optional): Filling value for the mask. Defaults to 255.
+
+    See Also:
+        paddlex.transforms.Padding
     """
 
     def __init__(self,