Skip to content

Commit 5a946fc

Browse files
prabhat00155facebook-github-bot
authored andcommitted
[fbsync] add prototype AugMix transform (#5492)
Summary: * add prototype AugMix transform * cleanup * refactor auto augment subclasses to only trnasform a single image * address review comments Reviewed By: datumbox Differential Revision: D34579510 fbshipit-source-id: b483642885913f844ffd72ef449de5a82467fc78
1 parent f705f68 commit 5a946fc

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)