{ "info": { "author": "Dan Hendrycks", "author_email": "hendrycks@berkeley.edu", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# ImageNet-C Corruption Functions\n\nWith this package, it is possible to corrupt an image with ImageNet-C corruptions.\nThese functions are exposed with the function ```corrupt```.\n\nTry\n```\nfrom imagenet_c import corrupt\n\ncorrupt(, corruption_number=0)\n```\n\nThe ```corrupt``` function looks like\n```\ndef corrupt(x, severity=1, corruption_name=None, corruption_number=-1):\n \"\"\"\n :param x: image to corrupt; a 224x224x3 numpy array in [0, 255]\n :param severity: strength with which to corrupt x; an integer in [0, 5]\n :param corruption_name: specifies which corruption function to call;\n must be one of 'gaussian_noise', 'shot_noise', 'impulse_noise', 'defocus_blur',\n 'glass_blur', 'motion_blur', 'zoom_blur', 'snow', 'frost', 'fog',\n 'brightness', 'contrast', 'elastic_transform', 'pixelate', 'jpeg_compression',\n 'speckle_noise', 'gaussian_blur', 'spatter', 'saturate';\n the last four are validation functions\n :param corruption_number: the position of the corruption_name in the above list;\n an integer in [0, 18]; useful for easy looping; 15, 16, 17, 18 are validation corruption numbers\n :return: the image x corrupted by a corruption function at the given severity; same shape as input\n \"\"\"\n ...\n\n```\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/hendrycks/robustness/tree/master/ImageNet-C/imagenet_c", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "imagenet-c", "package_url": "https://pypi.org/project/imagenet-c/", "platform": "", "project_url": "https://pypi.org/project/imagenet-c/", "project_urls": { "Homepage": "https://github.com/hendrycks/robustness/tree/master/ImageNet-C/imagenet_c" }, "release_url": "https://pypi.org/project/imagenet-c/0.0.3/", "requires_dist": [ "wand (~=0.4)", "opencv-python (~=3.4)" ], "requires_python": "", "summary": "Access to ImageNet-C corruption functions", "version": "0.0.3" }, "last_serial": 4346516, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "c761c84598f5c3af62b0715ffd25e8f5", "sha256": "a60435f4742ac3cb4d5dbbea587d295773ca9d00f0b54a6abd422ba61d6e3d19" }, "downloads": -1, "filename": "imagenet_c-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "c761c84598f5c3af62b0715ffd25e8f5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7261, "upload_time": "2018-10-04T19:10:39", "url": "https://files.pythonhosted.org/packages/de/d1/c1914f6d648fd73d830e034754cc20db788d1b607108c0b5a44c1e522f21/imagenet_c-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3142e38de815f52f9466b4c8fe7c816f", "sha256": "3aaee1789442625438a34cfabae1defc350045928bd22f20749b1ca4152acde4" }, "downloads": -1, "filename": "imagenet_c-0.0.1.tar.gz", "has_sig": false, "md5_digest": "3142e38de815f52f9466b4c8fe7c816f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2088079, "upload_time": "2018-10-04T19:10:42", "url": "https://files.pythonhosted.org/packages/5f/5a/2793effab2388d9d1a54ed201707ee0476511ae887df3f739b7e6d9145b1/imagenet_c-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "5b4f6d194be2b27842ea4b0abd4a4df6", "sha256": "f6832b635d05984a570893d9cbfcf16376a0c421d141e896aff760fc907d0ce7" }, "downloads": -1, "filename": "imagenet_c-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "5b4f6d194be2b27842ea4b0abd4a4df6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7261, "upload_time": "2018-10-04T23:16:36", "url": "https://files.pythonhosted.org/packages/85/b4/c63d8d1b7dbc6c0877d29e8c616e1f5525754b642dec0d674751df32bd93/imagenet_c-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2b303ea8f16c1a3e48a0b75e02c72366", "sha256": "25693d1f41ffb1c4481f9b9ba5016c9d5045ced767e4e9e151fdf9badfe657f5" }, "downloads": -1, "filename": "imagenet_c-0.0.2.tar.gz", "has_sig": false, "md5_digest": "2b303ea8f16c1a3e48a0b75e02c72366", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2088084, "upload_time": "2018-10-04T23:16:38", "url": "https://files.pythonhosted.org/packages/51/99/011ba6a91bd8b8ca79d8f5b99b44415bab5b1758faf799cb1d43b5260f81/imagenet_c-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "5a5a627b3d000ddce44760da2f015cc7", "sha256": "6ca49a99e05b9c75370353cb09625af4c70bcb361044776b3b5f51987b10f581" }, "downloads": -1, "filename": "imagenet_c-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "5a5a627b3d000ddce44760da2f015cc7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7260, "upload_time": "2018-10-06T03:47:44", "url": "https://files.pythonhosted.org/packages/cf/0f/127176179c8d403cb15a6418c0dfe1b163934517c3fa18a735bf2a24a729/imagenet_c-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "35e62c39bc96609b7f5730c45cb61d75", "sha256": "93f8ed69710615bdaf9e90805b01c2ba8790bba2095c91db874560eca79696f9" }, "downloads": -1, "filename": "imagenet_c-0.0.3.tar.gz", "has_sig": false, "md5_digest": "35e62c39bc96609b7f5730c45cb61d75", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2088257, "upload_time": "2018-10-06T03:47:45", "url": "https://files.pythonhosted.org/packages/1a/6d/d6ff956c71d055b9e8e65154653b5f2260ec528af56a0bf0fe7833529830/imagenet_c-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5a5a627b3d000ddce44760da2f015cc7", "sha256": "6ca49a99e05b9c75370353cb09625af4c70bcb361044776b3b5f51987b10f581" }, "downloads": -1, "filename": "imagenet_c-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "5a5a627b3d000ddce44760da2f015cc7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7260, "upload_time": "2018-10-06T03:47:44", "url": "https://files.pythonhosted.org/packages/cf/0f/127176179c8d403cb15a6418c0dfe1b163934517c3fa18a735bf2a24a729/imagenet_c-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "35e62c39bc96609b7f5730c45cb61d75", "sha256": "93f8ed69710615bdaf9e90805b01c2ba8790bba2095c91db874560eca79696f9" }, "downloads": -1, "filename": "imagenet_c-0.0.3.tar.gz", "has_sig": false, "md5_digest": "35e62c39bc96609b7f5730c45cb61d75", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2088257, "upload_time": "2018-10-06T03:47:45", "url": "https://files.pythonhosted.org/packages/1a/6d/d6ff956c71d055b9e8e65154653b5f2260ec528af56a0bf0fe7833529830/imagenet_c-0.0.3.tar.gz" } ] }