You need to sign in or sign up before continuing.
Commit 8257aff5 authored by ekka's avatar ekka Committed by Francisco Massa
Browse files

Update transform doc with random offset of padding due to pad_if_needed (#791)

* Update transform doc with random offset of padding due to pad_if_needed

Updating transform docs with the random offset of padding when pad_if_needed is set to True.

* Update docs
parent 138b5c25
...@@ -397,7 +397,8 @@ class RandomCrop(object): ...@@ -397,7 +397,8 @@ class RandomCrop(object):
respectively. If a sequence of length 2 is provided, it is used to respectively. If a sequence of length 2 is provided, it is used to
pad left/right, top/bottom borders, respectively. pad left/right, top/bottom borders, respectively.
pad_if_needed (boolean): It will pad the image if smaller than the pad_if_needed (boolean): It will pad the image if smaller than the
desired size to avoid raising an exception. desired size to avoid raising an exception. Since cropping is done
after padding, the padding seems to be done at a random offset.
fill: Pixel fill value for constant fill. Default is 0. If a tuple of fill: Pixel fill value for constant fill. Default is 0. If a tuple of
length 3, it is used to fill R, G, B channels respectively. length 3, it is used to fill R, G, B channels respectively.
This value is only used when the padding_mode is constant This value is only used when the padding_mode is constant
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment