@@ -167,14 +167,16 @@ class AutoAugment(_AutoAugmentBase):
167
167
168
168
.. betastatus:: AutoAugment transform
169
169
170
- If the image is torch Tensor, it should be of type torch.uint8, and it is expected
170
+ This transformation works on images and videos only.
171
+
172
+ If the input is :class:`torch.Tensor`, it should be of type ``torch.uint8``, and it is expected
171
173
to have [..., 1 or 3, H, W] shape, where ... means an arbitrary number of leading dimensions.
172
174
If img is PIL Image, it is expected to be in mode "L" or "RGB".
173
175
174
176
Args:
175
- policy (AutoAugmentPolicy): Desired policy enum defined by
177
+ policy (AutoAugmentPolicy, optional ): Desired policy enum defined by
176
178
:class:`torchvision.transforms.autoaugment.AutoAugmentPolicy`. Default is ``AutoAugmentPolicy.IMAGENET``.
177
- interpolation (InterpolationMode): Desired interpolation enum defined by
179
+ interpolation (InterpolationMode, optional ): Desired interpolation enum defined by
178
180
:class:`torchvision.transforms.InterpolationMode`. Default is ``InterpolationMode.NEAREST``.
179
181
If input is Tensor, only ``InterpolationMode.NEAREST``, ``InterpolationMode.BILINEAR`` are supported.
180
182
fill (sequence or number, optional): Pixel fill value for the area outside the transformed
@@ -342,15 +344,17 @@ class RandAugment(_AutoAugmentBase):
342
344
343
345
.. betastatus:: RandAugment transform
344
346
345
- If the image is torch Tensor, it should be of type torch.uint8, and it is expected
347
+ This transformation works on images and videos only.
348
+
349
+ If the input is :class:`torch.Tensor`, it should be of type ``torch.uint8``, and it is expected
346
350
to have [..., 1 or 3, H, W] shape, where ... means an arbitrary number of leading dimensions.
347
351
If img is PIL Image, it is expected to be in mode "L" or "RGB".
348
352
349
353
Args:
350
- num_ops (int): Number of augmentation transformations to apply sequentially.
351
- magnitude (int): Magnitude for all the transformations.
352
- num_magnitude_bins (int): The number of different magnitude values.
353
- interpolation (InterpolationMode): Desired interpolation enum defined by
354
+ num_ops (int, optional ): Number of augmentation transformations to apply sequentially.
355
+ magnitude (int, optional ): Magnitude for all the transformations.
356
+ num_magnitude_bins (int, optional ): The number of different magnitude values.
357
+ interpolation (InterpolationMode, optional ): Desired interpolation enum defined by
354
358
:class:`torchvision.transforms.InterpolationMode`. Default is ``InterpolationMode.NEAREST``.
355
359
If input is Tensor, only ``InterpolationMode.NEAREST``, ``InterpolationMode.BILINEAR`` are supported.
356
360
fill (sequence or number, optional): Pixel fill value for the area outside the transformed
@@ -423,13 +427,15 @@ class TrivialAugmentWide(_AutoAugmentBase):
423
427
424
428
.. betastatus:: TrivialAugmentWide transform
425
429
426
- If the image is torch Tensor, it should be of type torch.uint8, and it is expected
430
+ This transformation works on images and videos only.
431
+
432
+ If the input is :class:`torch.Tensor`, it should be of type ``torch.uint8``, and it is expected
427
433
to have [..., 1 or 3, H, W] shape, where ... means an arbitrary number of leading dimensions.
428
434
If img is PIL Image, it is expected to be in mode "L" or "RGB".
429
435
430
436
Args:
431
- num_magnitude_bins (int): The number of different magnitude values.
432
- interpolation (InterpolationMode): Desired interpolation enum defined by
437
+ num_magnitude_bins (int, optional ): The number of different magnitude values.
438
+ interpolation (InterpolationMode, optional ): Desired interpolation enum defined by
433
439
:class:`torchvision.transforms.InterpolationMode`. Default is ``InterpolationMode.NEAREST``.
434
440
If input is Tensor, only ``InterpolationMode.NEAREST``, ``InterpolationMode.BILINEAR`` are supported.
435
441
fill (sequence or number, optional): Pixel fill value for the area outside the transformed
@@ -492,18 +498,20 @@ class AugMix(_AutoAugmentBase):
492
498
493
499
.. betastatus:: AugMix transform
494
500
495
- If the image is torch Tensor, it should be of type torch.uint8, and it is expected
501
+ This transformation works on images and videos only.
502
+
503
+ If the input is :class:`torch.Tensor`, it should be of type ``torch.uint8``, and it is expected
496
504
to have [..., 1 or 3, H, W] shape, where ... means an arbitrary number of leading dimensions.
497
505
If img is PIL Image, it is expected to be in mode "L" or "RGB".
498
506
499
507
Args:
500
- severity (int): The severity of base augmentation operators. Default is ``3``.
501
- mixture_width (int): The number of augmentation chains. Default is ``3``.
502
- chain_depth (int): The depth of augmentation chains. A negative value denotes stochastic depth sampled from the interval [1, 3].
508
+ severity (int, optional ): The severity of base augmentation operators. Default is ``3``.
509
+ mixture_width (int, optional ): The number of augmentation chains. Default is ``3``.
510
+ chain_depth (int, optional ): The depth of augmentation chains. A negative value denotes stochastic depth sampled from the interval [1, 3].
503
511
Default is ``-1``.
504
- alpha (float): The hyperparameter for the probability distributions. Default is ``1.0``.
505
- all_ops (bool): Use all operations (including brightness, contrast, color and sharpness). Default is ``True``.
506
- interpolation (InterpolationMode): Desired interpolation enum defined by
512
+ alpha (float, optional ): The hyperparameter for the probability distributions. Default is ``1.0``.
513
+ all_ops (bool, optional ): Use all operations (including brightness, contrast, color and sharpness). Default is ``True``.
514
+ interpolation (InterpolationMode, optional ): Desired interpolation enum defined by
507
515
:class:`torchvision.transforms.InterpolationMode`. Default is ``InterpolationMode.NEAREST``.
508
516
If input is Tensor, only ``InterpolationMode.NEAREST``, ``InterpolationMode.BILINEAR`` are supported.
509
517
fill (sequence or number, optional): Pixel fill value for the area outside the transformed
0 commit comments