Skip to main content

No project description provided

Project description

pytorch-randaugment

Unofficial PyTorch Reimplementation of AutoAugment and RandAugment.

Code taken from https://github.com/DeepVoltaire/AutoAugment and https://github.com/jizongFox/uda

How to install:

pip install randaugment

How to use:

from autoaugment import RandAugment, ImageNetPolicy
data = ImageFolder(rootdir, transform=transforms.Compose(
                        [
                            transforms.RandomCrop(32, padding=4, fill=128), # fill parameter needs torchvision installed from source
                            transforms.RandomHorizontalFlip(), 
                            RandAugment(),
                            #ImageNetPolicy(),
                            transforms.ToTensor(), 
                            Cutout(size=16), # (https://github.com/uoguelph-mlrg/Cutout/blob/master/util/cutout.py)
                            transforms.Normalize(...)
                        ])
)
loader = DataLoader(data, ...)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

randaugment-1.0.2.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

randaugment-1.0.2-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file randaugment-1.0.2.tar.gz.

File metadata

  • Download URL: randaugment-1.0.2.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for randaugment-1.0.2.tar.gz
Algorithm Hash digest
SHA256 7f2dda16f9daef2d5d76d376b63a31154a7e4d7d5a562e552ce1fbf4a8409566
MD5 dd7106ba907eb0ad2b239e240d4e97c9
BLAKE2b-256 aca30d76507a2048b38fe9cc77f85b8ac008543b0c2c237feb5a1a1a882d46aa

See more details on using hashes here.

File details

Details for the file randaugment-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: randaugment-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for randaugment-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d499cfdd4ea5443609df72eeac3a817146cc70f6544c6304ae1078dadaf99b98
MD5 d4d0eb3403b22db4b0a85f35f145b7fe
BLAKE2b-256 fbeae24549f459800dc3bed21cd4e9c0d49d5b8deed65214b2444bd3e5a49f30

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page