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.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: randaugment-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 f1b1f795c99de07c3512088d98e63f21a459a7c69fdf3f276bf7e60a99ff1898
MD5 62ec66f5330a4c0bcc7cbc2e8e765a8d
BLAKE2b-256 c2afc4f1ce6dc6b54771530cac34b8099299b8a86f4a705f64b7c448eb4afdff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: randaugment-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e1ada72a7165b3a1b36f443d75ca7100605ca741c3b241ef40dd19d76eafde64
MD5 3dc8692e0add70a9fa0ed75784ae5ba7
BLAKE2b-256 5396b7f672c2b5fdabb37ff80a1d7ce6268171da09397831f63f31082d1bfcea

See more details on using hashes here.

Supported by

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