{ "info": { "author": "Evgenia Rusak, Benjamin Mitzkus", "author_email": "evgenia.rusak@bethgelab.org, benjamin.mitzkus@bethgelab.org", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# imagecorruptions\nThis package provides a set of corruptions that can be applied to images in order to benchmark the robustness of neural networks. These corruptions are not meant to be used as training data augmentation but rather to test the networks against unseen perturbations. For more information have a look at the paper on the original corruption package by Hendrycks and Dietterich: [Benchmarking Neural Network Robustness to Common Corruptions and Surface Variations](https://arxiv.org/abs/1807.01697).\n\n![image corruptions](https://raw.githubusercontent.com/bethgelab/imagecorruptions/master/assets/corruptions_sev_3.png?token=ACY4L7YQWNOLTMRRO53U6FS5G3UF6)\n\n## Installation and Usage\nThis package is pip installable via `pip3 install imagecorruptions`. An example of how to use the corruption function is given below:\n```python\nfrom imagecorruptions import corrupt\n...\ncorrupted_image = corrupt(image, corruption_name='gaussian_blur', severity=1)\n...\n```\nLooping over all available corruptions can be done either by name or by index:\n```python\n# via name\nfrom imagecorruptions import get_corruption_names\nfor corruption in get_corruption_names():\n for severity in range(5):\n corrupted = corrupt(image, corruption_name=corruption, severity=severity+1)\n ...\n\n# via number:\nfor i in range(15):\n for severity in range(5):\n corrupted = corrupt(image, corruption_number=i, severity=severity+1)\n ...\n```\n\nNote that the first 15 image corruptions are the common corruptions (the ones you get via `get_corruption_names()`). If you really wish to use these as data augmentation, there exist four additional validation corruptions which can be accessed via `get_corruption_names('validation')` which should then be used to test the corruption robustness of the trained model.\n\n## Citation\n\nIf you use our code or the imagecorruptions package, please consider citing:\n```\n@article{michaelis2019dragon,\n title={Benchmarking Robustness in Object Detection: \n Autonomous Driving when Winter is Coming},\n author={Michaelis, Claudio and Mitzkus, Benjamin and \n Geirhos, Robert and Rusak, Evgenia and \n Bringmann, Oliver and Ecker, Alexander S. and \n Bethge, Matthias and Brendel, Wieland},\n journal={arXiv preprint arXiv:1907.07484},\n year={2019}\n}\n```\n\n## Credit and Changelog\nThis package is an extension of the image corruption functions provided by Dan Hendrycks in the repository [corruptions](https://github.com/hendrycks/robustness). The image corruptions implemented by Hendrycks are generalized to work on images with arbitrary image dimensions and aspect ratios aswell as on grayscale images. We furthermore removed the dependency to `libmagickwand` and the python api `Wand` and reimplemented the `motion_blur` in python.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/bethgelab/imagecorruptions", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "imagecorruptions", "package_url": "https://pypi.org/project/imagecorruptions/", "platform": "", "project_url": "https://pypi.org/project/imagecorruptions/", "project_urls": { "Homepage": "https://github.com/bethgelab/imagecorruptions" }, "release_url": "https://pypi.org/project/imagecorruptions/1.1.2/", "requires_dist": [ "Pillow (>=5.4.1)", "numpy (>=1.16)", "opencv-python (>=3.4.5)", "scikit-image (>=0.15)", "scipy (>=1.2.1)" ], "requires_python": "", "summary": "This package provides a set of image corruptions.", "version": "1.1.2", "yanked": false, "yanked_reason": null }, "last_serial": 8810886, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "2cefe0a21f5e55fe76efe06d1c535bfa", "sha256": "3cf4f02330f6df695a2c5f5def74187b689b4d7072459721449c783a1aa56274" }, "downloads": -1, "filename": "imagecorruptions-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "2cefe0a21f5e55fe76efe06d1c535bfa", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2093272, "upload_time": "2019-07-15T12:35:16", "upload_time_iso_8601": "2019-07-15T12:35:16.732327Z", "url": "https://files.pythonhosted.org/packages/1c/ca/968f8836fb987ecc47331ac878d322ebb4db86e2431beef47344e3a192a2/imagecorruptions-0.1.0-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "e07c81856d8a6e071cf7ccfb9b9be997", "sha256": "ae9ab51320f56badfe9e1cc0d0ea504dab5dcff808bbdaac543b3c73904fc2da" }, "downloads": -1, "filename": "imagecorruptions-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e07c81856d8a6e071cf7ccfb9b9be997", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2090013, "upload_time": "2019-07-15T12:35:22", "upload_time_iso_8601": "2019-07-15T12:35:22.227969Z", "url": "https://files.pythonhosted.org/packages/be/45/73c4590d3eeeeba12fd1bf83cfbedc620e2cf5d6753a6be825d2bf44f275/imagecorruptions-0.1.0.tar.gz", "yanked": false, "yanked_reason": null } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "45b09d494ab4c1c493c2fbf21291a268", "sha256": "c9b8be445c59964cee2ba377c2740d008ebd461317b031c302de71061d06e430" }, "downloads": -1, "filename": "imagecorruptions-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "45b09d494ab4c1c493c2fbf21291a268", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2093322, "upload_time": "2019-07-16T11:01:29", "upload_time_iso_8601": "2019-07-16T11:01:29.240095Z", "url": "https://files.pythonhosted.org/packages/c5/e9/ebad9d8143e012b9db8b73a17100ddedf8e07c1331b5bb59555a61d7106c/imagecorruptions-0.1.1-py3-none-any.whl", "yanked": false, "yanked_reason": null } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "6be421ba7780f76a1e73c86d2d3fe855", "sha256": "536fb846a81529c9a42b55efb874a57f37abe65db8f80afe390c8f1dcb1f8cad" }, "downloads": -1, "filename": "imagecorruptions-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "6be421ba7780f76a1e73c86d2d3fe855", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2093324, "upload_time": "2019-07-25T12:06:21", "upload_time_iso_8601": "2019-07-25T12:06:21.531419Z", "url": "https://files.pythonhosted.org/packages/89/d5/d946c6442cdb3eedd65394c4395c195f048f365ac5441c0f6a1cb484558c/imagecorruptions-1.0.0-py3-none-any.whl", "yanked": false, "yanked_reason": null } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "1f4fe6d1fbe07860692ab37c438ffed7", "sha256": "67e904da27f631c5badf645453e814821101e6602a90a7974d393dbaa0a2cad6" }, "downloads": -1, "filename": "imagecorruptions-1.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "1f4fe6d1fbe07860692ab37c438ffed7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2094034, "upload_time": "2019-10-30T15:44:13", "upload_time_iso_8601": "2019-10-30T15:44:13.622531Z", "url": "https://files.pythonhosted.org/packages/17/d6/40658d25e6ad2c48c98bbf813b53ec47617337c7c5063ecd881572d59e92/imagecorruptions-1.1.0-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "8e2f23593d7fefae997180c277004ee5", "sha256": "f57d51503ba7b401bb78eff87e7145c6a953b127d04bbd8e37367bdb95e94892" }, "downloads": -1, "filename": "imagecorruptions-1.1.0.tar.gz", "has_sig": false, "md5_digest": "8e2f23593d7fefae997180c277004ee5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2091997, "upload_time": "2019-10-30T15:44:16", "upload_time_iso_8601": "2019-10-30T15:44:16.625589Z", "url": "https://files.pythonhosted.org/packages/31/af/b98a732854ac2aeccdf5db2f32d735c3b1bbe554ebb24e33d3f0c5e8c6ef/imagecorruptions-1.1.0.tar.gz", "yanked": false, "yanked_reason": null } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "0d014cbad7d891607184c2b5b3d2f31d", "sha256": "41da1e4c08accbf64a457c9ab8a4d2a5bdde7a2e1e2f7f2e388e2b219ec00f15" }, "downloads": -1, "filename": "imagecorruptions-1.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "0d014cbad7d891607184c2b5b3d2f31d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2094010, "upload_time": "2020-11-25T13:54:04", "upload_time_iso_8601": "2020-11-25T13:54:04.427120Z", "url": "https://files.pythonhosted.org/packages/a7/68/03b5185991a945cf0c0a9b63f2939777e9510f63e14d39daa89d141bac12/imagecorruptions-1.1.1-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "a1bf9dac653a2f7dbf31fbc7be692a59", "sha256": "011e7c84a01f3e41465e5ad1ee48291cd6fd8032f45c836c5ddaad6e09fe0ae2" }, "downloads": -1, "filename": "imagecorruptions-1.1.1.tar.gz", "has_sig": false, "md5_digest": "a1bf9dac653a2f7dbf31fbc7be692a59", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2092805, "upload_time": "2020-11-25T13:54:09", "upload_time_iso_8601": "2020-11-25T13:54:09.098625Z", "url": "https://files.pythonhosted.org/packages/99/c0/509e5d8b35c0f4fdd695b9fa55717b1da5d5ea1d2ca6ce3ac2f968875dec/imagecorruptions-1.1.1.tar.gz", "yanked": false, "yanked_reason": null } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "9311416fb21be0bf95ef30207c3905d7", "sha256": "d0e4bf529ba6fbb27d8aba1bde7c5db43bf2b969b2c767c11419e939e3e365b8" }, "downloads": -1, "filename": "imagecorruptions-1.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "9311416fb21be0bf95ef30207c3905d7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2094054, "upload_time": "2020-12-03T12:26:17", "upload_time_iso_8601": "2020-12-03T12:26:17.900357Z", "url": "https://files.pythonhosted.org/packages/3e/40/ff4a79ad7ab6463fe2fde7912b71084a6606e33676078a50b40a3377112b/imagecorruptions-1.1.2-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "f8b0c29ec4f791b8857f84f25a13019f", "sha256": "044e173f24d5934899bdbf3596bfbec917e8083e507eed583ab217abebbe084d" }, "downloads": -1, "filename": "imagecorruptions-1.1.2.tar.gz", "has_sig": false, "md5_digest": "f8b0c29ec4f791b8857f84f25a13019f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2092862, "upload_time": "2020-12-03T12:26:23", "upload_time_iso_8601": "2020-12-03T12:26:23.267240Z", "url": "https://files.pythonhosted.org/packages/22/81/0e89d4524064b683cb3b0b5c5874e41307d730c473673051d3c68d52605f/imagecorruptions-1.1.2.tar.gz", "yanked": false, "yanked_reason": null } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9311416fb21be0bf95ef30207c3905d7", "sha256": "d0e4bf529ba6fbb27d8aba1bde7c5db43bf2b969b2c767c11419e939e3e365b8" }, "downloads": -1, "filename": "imagecorruptions-1.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "9311416fb21be0bf95ef30207c3905d7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2094054, "upload_time": "2020-12-03T12:26:17", "upload_time_iso_8601": "2020-12-03T12:26:17.900357Z", "url": "https://files.pythonhosted.org/packages/3e/40/ff4a79ad7ab6463fe2fde7912b71084a6606e33676078a50b40a3377112b/imagecorruptions-1.1.2-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "f8b0c29ec4f791b8857f84f25a13019f", "sha256": "044e173f24d5934899bdbf3596bfbec917e8083e507eed583ab217abebbe084d" }, "downloads": -1, "filename": "imagecorruptions-1.1.2.tar.gz", "has_sig": false, "md5_digest": "f8b0c29ec4f791b8857f84f25a13019f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2092862, "upload_time": "2020-12-03T12:26:23", "upload_time_iso_8601": "2020-12-03T12:26:23.267240Z", "url": "https://files.pythonhosted.org/packages/22/81/0e89d4524064b683cb3b0b5c5874e41307d730c473673051d3c68d52605f/imagecorruptions-1.1.2.tar.gz", "yanked": false, "yanked_reason": null } ], "vulnerabilities": [] }