Skip to content

Commit 95d4189

Browse files
authored
add prototype AugMix transform (#5492)
* add prototype AugMix transform * cleanup * refactor auto augment subclasses to only trnasform a single image * address review comments
1 parent 7767f12 commit 95d4189

File tree

5 files changed

+308
-147
lines changed

5 files changed

+308
-147
lines changed

test/test_prototype_transforms.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ def test_mixup_cutmix(self, transform, input):
114114
transforms.RandAugment(),
115115
transforms.TrivialAugmentWide(),
116116
transforms.AutoAugment(),
117+
transforms.AugMix(),
117118
)
118119
]
119120
)

torchvision/prototype/transforms/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from ._transform import Transform # usort: skip
66

77
from ._augment import RandomErasing, RandomMixup, RandomCutmix
8-
from ._auto_augment import RandAugment, TrivialAugmentWide, AutoAugment
8+
from ._auto_augment import RandAugment, TrivialAugmentWide, AutoAugment, AugMix
99
from ._container import Compose, RandomApply, RandomChoice, RandomOrder
1010
from ._geometry import HorizontalFlip, Resize, CenterCrop, RandomResizedCrop
1111
from ._meta import ConvertBoundingBoxFormat, ConvertImageDtype, ConvertImageColorSpace

0 commit comments

Comments
 (0)