randaugment


Namerandaugment JSON
Version 1.0.2 PyPI version JSON
download
home_pagehttps://github.com/jizongFox/pytorch-randaugment
Summary
upload_time2019-12-04 04:10:57
maintainer
docs_urlNone
authorJizong Peng
requires_python
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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:
```bash
pip install randaugment
```
---

## How to use:
```python
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, ...)
```





            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/jizongFox/pytorch-randaugment",
    "name": "randaugment",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Jizong Peng",
    "author_email": "jizong.peng.1@etsmtl.net",
    "download_url": "https://files.pythonhosted.org/packages/ac/a3/0d76507a2048b38fe9cc77f85b8ac008543b0c2c237feb5a1a1a882d46aa/randaugment-1.0.2.tar.gz",
    "platform": "",
    "description": "# pytorch-randaugment\nUnofficial PyTorch Reimplementation of AutoAugment and RandAugment.\n\nCode taken from https://github.com/DeepVoltaire/AutoAugment and https://github.com/jizongFox/uda\n## How to install:\n```bash\npip install randaugment\n```\n---\n\n## How to use:\n```python\nfrom autoaugment import RandAugment, ImageNetPolicy\ndata = ImageFolder(rootdir, transform=transforms.Compose(\n                        [\n                            transforms.RandomCrop(32, padding=4, fill=128), # fill parameter needs torchvision installed from source\n                            transforms.RandomHorizontalFlip(), \n                            RandAugment(),\n                            #ImageNetPolicy(),\n                            transforms.ToTensor(), \n                            Cutout(size=16), # (https://github.com/uoguelph-mlrg/Cutout/blob/master/util/cutout.py)\n                            transforms.Normalize(...)\n                        ])\n)\nloader = DataLoader(data, ...)\n```\n\n\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "",
    "version": "1.0.2",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "d4d0eb3403b22db4b0a85f35f145b7fe",
                "sha256": "d499cfdd4ea5443609df72eeac3a817146cc70f6544c6304ae1078dadaf99b98"
            },
            "downloads": -1,
            "filename": "randaugment-1.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d4d0eb3403b22db4b0a85f35f145b7fe",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 6769,
            "upload_time": "2019-12-04T04:10:55",
            "upload_time_iso_8601": "2019-12-04T04:10:55.809974Z",
            "url": "https://files.pythonhosted.org/packages/fb/ea/e24549f459800dc3bed21cd4e9c0d49d5b8deed65214b2444bd3e5a49f30/randaugment-1.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "dd7106ba907eb0ad2b239e240d4e97c9",
                "sha256": "7f2dda16f9daef2d5d76d376b63a31154a7e4d7d5a562e552ce1fbf4a8409566"
            },
            "downloads": -1,
            "filename": "randaugment-1.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "dd7106ba907eb0ad2b239e240d4e97c9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5387,
            "upload_time": "2019-12-04T04:10:57",
            "upload_time_iso_8601": "2019-12-04T04:10:57.263966Z",
            "url": "https://files.pythonhosted.org/packages/ac/a3/0d76507a2048b38fe9cc77f85b8ac008543b0c2c237feb5a1a1a882d46aa/randaugment-1.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2019-12-04 04:10:57",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "jizongFox",
    "github_project": "pytorch-randaugment",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "randaugment"
}
        
Elapsed time: 0.12479s