|
17 | 17 | from . import functional as F
|
18 | 18 | from .functional import InterpolationMode, _interpolation_modes_from_int
|
19 | 19 |
|
20 |
| - |
21 | 20 | __all__ = [
|
22 | 21 | "Compose",
|
23 | 22 | "ToTensor",
|
@@ -298,7 +297,7 @@ class Resize(torch.nn.Module):
|
298 | 297 | :class:`torchvision.transforms.InterpolationMode`. Default is ``InterpolationMode.BILINEAR``.
|
299 | 298 | If input is Tensor, only ``InterpolationMode.NEAREST``, ``InterpolationMode.BILINEAR`` and
|
300 | 299 | ``InterpolationMode.BICUBIC`` are supported.
|
301 |
| - For backward compatibility integer values (e.g. ``PIL.Image.NEAREST``) are still acceptable. |
| 300 | + For backward compatibility integer values (e.g. ``PIL.Image[.Resampling].NEAREST``) are still acceptable. |
302 | 301 | max_size (int, optional): The maximum allowed for the longer edge of
|
303 | 302 | the resized image: if the longer edge of the image is greater
|
304 | 303 | than ``max_size`` after being resized according to ``size``, then
|
@@ -755,7 +754,7 @@ class RandomPerspective(torch.nn.Module):
|
755 | 754 | interpolation (InterpolationMode): Desired interpolation enum defined by
|
756 | 755 | :class:`torchvision.transforms.InterpolationMode`. Default is ``InterpolationMode.BILINEAR``.
|
757 | 756 | If input is Tensor, only ``InterpolationMode.NEAREST``, ``InterpolationMode.BILINEAR`` are supported.
|
758 |
| - For backward compatibility integer values (e.g. ``PIL.Image.NEAREST``) are still acceptable. |
| 757 | + For backward compatibility integer values (e.g. ``PIL.Image[.Resampling].NEAREST``) are still acceptable. |
759 | 758 | fill (sequence or number): Pixel fill value for the area outside the transformed
|
760 | 759 | image. Default is ``0``. If given a number, the value is used for all bands respectively.
|
761 | 760 | """
|
@@ -869,7 +868,7 @@ class RandomResizedCrop(torch.nn.Module):
|
869 | 868 | :class:`torchvision.transforms.InterpolationMode`. Default is ``InterpolationMode.BILINEAR``.
|
870 | 869 | If input is Tensor, only ``InterpolationMode.NEAREST``, ``InterpolationMode.BILINEAR`` and
|
871 | 870 | ``InterpolationMode.BICUBIC`` are supported.
|
872 |
| - For backward compatibility integer values (e.g. ``PIL.Image.NEAREST``) are still acceptable. |
| 871 | + For backward compatibility integer values (e.g. ``PIL.Image[.Resampling].NEAREST``) are still acceptable. |
873 | 872 |
|
874 | 873 | """
|
875 | 874 |
|
@@ -1268,7 +1267,7 @@ class RandomRotation(torch.nn.Module):
|
1268 | 1267 | interpolation (InterpolationMode): Desired interpolation enum defined by
|
1269 | 1268 | :class:`torchvision.transforms.InterpolationMode`. Default is ``InterpolationMode.NEAREST``.
|
1270 | 1269 | If input is Tensor, only ``InterpolationMode.NEAREST``, ``InterpolationMode.BILINEAR`` are supported.
|
1271 |
| - For backward compatibility integer values (e.g. ``PIL.Image.NEAREST``) are still acceptable. |
| 1270 | + For backward compatibility integer values (e.g. ``PIL.Image[.Resampling].NEAREST``) are still acceptable. |
1272 | 1271 | expand (bool, optional): Optional expansion flag.
|
1273 | 1272 | If true, expands the output to make it large enough to hold the entire rotated image.
|
1274 | 1273 | If false or omitted, make the output image the same size as the input image.
|
@@ -1389,7 +1388,7 @@ class RandomAffine(torch.nn.Module):
|
1389 | 1388 | interpolation (InterpolationMode): Desired interpolation enum defined by
|
1390 | 1389 | :class:`torchvision.transforms.InterpolationMode`. Default is ``InterpolationMode.NEAREST``.
|
1391 | 1390 | If input is Tensor, only ``InterpolationMode.NEAREST``, ``InterpolationMode.BILINEAR`` are supported.
|
1392 |
| - For backward compatibility integer values (e.g. ``PIL.Image.NEAREST``) are still acceptable. |
| 1391 | + For backward compatibility integer values (e.g. ``PIL.Image[.Resampling].NEAREST``) are still acceptable. |
1393 | 1392 | fill (sequence or number): Pixel fill value for the area outside the transformed
|
1394 | 1393 | image. Default is ``0``. If given a number, the value is used for all bands respectively.
|
1395 | 1394 | fillcolor (sequence or number, optional):
|
|
0 commit comments