Skip to content

Commit df728c3

Browse files
committed
Reverted PIL.Image -> PIL Image
1 parent 3bce17d commit df728c3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

torchvision/transforms/v2/_auto_augment.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ class AutoAugment(_AutoAugmentBase):
171171
172172
If the input is :class:`torch.Tensor`, it should be of type ``torch.uint8``, and it is expected
173173
to have [..., 1 or 3, H, W] shape, where ... means an arbitrary number of leading dimensions.
174-
If img is ``PIL.Image``, it is expected to be in mode "L" or "RGB".
174+
If img is PIL Image, it is expected to be in mode "L" or "RGB".
175175
176176
Args:
177177
policy (AutoAugmentPolicy, optional): Desired policy enum defined by
@@ -348,7 +348,7 @@ class RandAugment(_AutoAugmentBase):
348348
349349
If the input is :class:`torch.Tensor`, it should be of type ``torch.uint8``, and it is expected
350350
to have [..., 1 or 3, H, W] shape, where ... means an arbitrary number of leading dimensions.
351-
If img is ``PIL.Image``, it is expected to be in mode "L" or "RGB".
351+
If img is PIL Image, it is expected to be in mode "L" or "RGB".
352352
353353
Args:
354354
num_ops (int, optional): Number of augmentation transformations to apply sequentially.
@@ -431,7 +431,7 @@ class TrivialAugmentWide(_AutoAugmentBase):
431431
432432
If the input is :class:`torch.Tensor`, it should be of type ``torch.uint8``, and it is expected
433433
to have [..., 1 or 3, H, W] shape, where ... means an arbitrary number of leading dimensions.
434-
If img is ``PIL.Image``, it is expected to be in mode "L" or "RGB".
434+
If img is PIL Image, it is expected to be in mode "L" or "RGB".
435435
436436
Args:
437437
num_magnitude_bins (int, optional): The number of different magnitude values.
@@ -502,7 +502,7 @@ class AugMix(_AutoAugmentBase):
502502
503503
If the input is :class:`torch.Tensor`, it should be of type ``torch.uint8``, and it is expected
504504
to have [..., 1 or 3, H, W] shape, where ... means an arbitrary number of leading dimensions.
505-
If img is ``PIL.Image``, it is expected to be in mode "L" or "RGB".
505+
If img is PIL Image, it is expected to be in mode "L" or "RGB".
506506
507507
Args:
508508
severity (int, optional): The severity of base augmentation operators. Default is ``3``.

0 commit comments

Comments
 (0)