Skip to content

Commit ecc598e

Browse files
committed
Changing the default severity value to get by default the same strength as RandAugment.
1 parent c722c02 commit ecc598e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torchvision/transforms/autoaugment.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ class AugMix(torch.nn.Module):
468468
If img is PIL Image, it is expected to be in mode "L" or "RGB".
469469
470470
Args:
471-
severity (int): The severity of base augmentation operators. Default is ``1``.
471+
severity (int): The severity of base augmentation operators. Default is ``3``.
472472
mixture_width (int): The number of augmentation chains. Default is ``3``.
473473
chain_depth (int): The depth of augmentation chains. A negative value denotes stochastic depth sampled from the interval [1, 3].
474474
Default is ``-1``.
@@ -483,7 +483,7 @@ class AugMix(torch.nn.Module):
483483

484484
def __init__(
485485
self,
486-
severity: int = 1,
486+
severity: int = 3,
487487
mixture_width: int = 3,
488488
chain_depth: int = -1,
489489
alpha: float = 1.0,

0 commit comments

Comments
 (0)