@@ -65,9 +65,9 @@ class Resizing(base_layer.Layer):
65
65
height: Integer, the height of the output shape.
66
66
width: Integer, the width of the output shape.
67
67
interpolation: String, the interpolation method.
68
- Defaults to `"bilinear"`.
69
68
Supports `"bilinear"`, `"nearest"`, `"bicubic"`, `"area"`,
70
69
`"lanczos3"`, `"lanczos5"`, `"gaussian"`, `"mitchellcubic"`.
70
+ Defaults to `"bilinear"`.
71
71
crop_to_aspect_ratio: If True, resize the images without aspect
72
72
ratio distortion. When the original aspect ratio differs
73
73
from the target aspect ratio, the output image will be
@@ -420,9 +420,9 @@ class RandomFlip(base_layer.BaseRandomLayer):
420
420
421
421
Args:
422
422
mode: String indicating which flip mode to use. Can be `"horizontal"`,
423
- `"vertical"`, or `"horizontal_and_vertical"`. Defaults to
424
- `"horizontal_and_vertical"`. `"horizontal "` is a left-right flip and
425
- `"vertical"` is a top-bottom flip.
423
+ `"vertical"`, or `"horizontal_and_vertical"`. `"horizontal"` is a
424
+ left-right flip and `"vertical "` is a top-bottom flip. Defaults to
425
+ `"horizontal_and_vertical"`
426
426
seed: Integer. Used to create a random seed.
427
427
"""
428
428
@@ -1055,9 +1055,9 @@ class RandomZoom(base_layer.BaseRandomLayer):
1055
1055
result in an output
1056
1056
zooming out between 20% to 30%.
1057
1057
`width_factor=(-0.3, -0.2)` result in an
1058
- output zooming in between 20% to 30%. Defaults to `None`,
1058
+ output zooming in between 20% to 30%. `None` means
1059
1059
i.e., zooming vertical and horizontal directions
1060
- by preserving the aspect ratio.
1060
+ by preserving the aspect ratio. Defaults to `None`.
1061
1061
fill_mode: Points outside the boundaries of the input are
1062
1062
filled according to the given mode
1063
1063
(one of `{"constant", "reflect", "wrap", "nearest"}`).
@@ -1377,9 +1377,9 @@ class RandomBrightness(base_layer.BaseRandomLayer):
1377
1377
will be used for upper bound.
1378
1378
value_range: Optional list/tuple of 2 floats
1379
1379
for the lower and upper limit
1380
- of the values of the input data. Defaults to [0.0, 255.0].
1381
- Can be changed to e.g. [0.0, 1.0] if the image input
1382
- has been scaled before this layer.
1380
+ of the values of the input data.
1381
+ To make no change, use [0.0, 1.0], e.g., if the image input
1382
+ has been scaled before this layer. Defaults to [0.0, 255.0].
1383
1383
The brightness adjustment will be scaled to this range, and the
1384
1384
output values will be clipped to this range.
1385
1385
seed: optional integer, for fixed RNG behavior.
@@ -1539,9 +1539,9 @@ class RandomHeight(base_layer.BaseRandomLayer):
1539
1539
`factor=0.2` results in an output with
1540
1540
height changed by a random amount in the range `[-20%, +20%]`.
1541
1541
interpolation: String, the interpolation method.
1542
- Defaults to `"bilinear"`.
1543
1542
Supports `"bilinear"`, `"nearest"`, `"bicubic"`, `"area"`,
1544
1543
`"lanczos3"`, `"lanczos5"`, `"gaussian"`, `"mitchellcubic"`.
1544
+ Defaults to `"bilinear"`.
1545
1545
seed: Integer. Used to create a random seed.
1546
1546
1547
1547
Input shape:
@@ -1661,9 +1661,9 @@ class RandomWidth(base_layer.BaseRandomLayer):
1661
1661
`factor=0.2` results in an output with width changed
1662
1662
by a random amount in the range `[-20%, +20%]`.
1663
1663
interpolation: String, the interpolation method.
1664
- Defaults to `bilinear`.
1665
1664
Supports `"bilinear"`, `"nearest"`, `"bicubic"`, `"area"`,
1666
1665
`"lanczos3"`, `"lanczos5"`, `"gaussian"`, `"mitchellcubic"`.
1666
+ Defaults to `bilinear`.
1667
1667
seed: Integer. Used to create a random seed.
1668
1668
1669
1669
Input shape:
0 commit comments