diff --git a/dev/news/index.html b/dev/news/index.html index 6cdfa9c..e5841fc 100644 --- a/dev/news/index.html +++ b/dev/news/index.html @@ -80,7 +80,8 @@

Changelog

-
diff --git a/dev/pkgdown.yml b/dev/pkgdown.yml index d421acf..8ddcaca 100644 --- a/dev/pkgdown.yml +++ b/dev/pkgdown.yml @@ -8,4 +8,4 @@ articles: examples/style-transfer: examples/style-transfer.html examples/texture-nca: examples/texture-nca.html examples/tinyimagenet-alexnet: examples/tinyimagenet-alexnet.html -last_built: 2024-09-17T13:51Z +last_built: 2024-09-17T13:54Z diff --git a/dev/reference/transform_affine.html b/dev/reference/transform_affine.html index bedb565..01033a5 100644 --- a/dev/reference/transform_affine.html +++ b/dev/reference/transform_affine.html @@ -109,28 +109,19 @@

Arguments

translate
-

(tuple, optional): tuple of maximum absolute fraction for -horizontal and vertical translations. For example translate=c(a, b), then -horizontal shift is randomly sampled in the range --img_width * a < dx < img_width * a and vertical shift is randomly sampled -in the range -img_height * b < dy < img_height * b. Will not translate by -default.

+

(sequence of int) – horizontal and vertical translations +(post-rotation translation)

scale
-

(tuple, optional): scaling factor interval, e.g c(a, b), then -scale is randomly sampled from the range a <= scale <= b. Will keep -original scale by default.

+

(float) – overall scale

shear
-

(sequence or float or int, optional): Range of degrees to select -from. If shear is a number, a shear parallel to the x axis in the range -(-shear, +shear) will be applied. Else if shear is a tuple or list of 2 -values a shear parallel to the x axis in the range (shear[1], shear[2]) -will be applied. Else if shear is a tuple or list of 4 values, a x-axis -shear in (shear[1], shear[2]) and y-axis shear in (shear[3], shear[4]) -will be applied. Will not apply shear by default.

+

(float or sequence) – shear angle value in degrees between -180 to 180, +clockwise direction. If a sequence is specified, the first value corresponds +to a shear parallel to the x-axis, while the second value corresponds to a +shear parallel to the y-axis.

resample