All Projects → bethgelab → Imagecorruptions

bethgelab / Imagecorruptions

Licence: apache-2.0
Python package to corrupt arbitrary images.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Imagecorruptions

Dda
Differentiable Data Augmentation Library
Stars: ✭ 65 (-58.86%)
Mutual labels:  data-augmentation
Cutmix
a Ready-to-use PyTorch Extension of Unofficial CutMix Implementations with more improved performance.
Stars: ✭ 99 (-37.34%)
Mutual labels:  data-augmentation
Unsupervised Data Augmentation
Unofficial PyTorch Implementation of Unsupervised Data Augmentation.
Stars: ✭ 127 (-19.62%)
Mutual labels:  data-augmentation
Pedestrian Synthesis Gan
Pedestrian-Synthesis-GAN: Generating Pedestrian Data in Real Scene and Beyond
Stars: ✭ 73 (-53.8%)
Mutual labels:  data-augmentation
Wb color augmenter
WB color augmenter improves the accuracy of image classification and image semantic segmentation methods by emulating different WB effects (ICCV 2019) [Python & Matlab].
Stars: ✭ 89 (-43.67%)
Mutual labels:  data-augmentation
What I Have Read
Paper Lists, Notes and Slides, Focus on NLP. For summarization, please refer to https://github.com/xcfcode/Summarization-Papers
Stars: ✭ 110 (-30.38%)
Mutual labels:  data-augmentation
Dips
NAACL 2019: Submodular optimization-based diverse paraphrasing and its effectiveness in data augmentation
Stars: ✭ 59 (-62.66%)
Mutual labels:  data-augmentation
Copy Paste Aug
Copy-paste augmentation for segmentation and detection tasks
Stars: ✭ 132 (-16.46%)
Mutual labels:  data-augmentation
Textattack
TextAttack 🐙 is a Python framework for adversarial attacks, data augmentation, and model training in NLP
Stars: ✭ 1,291 (+717.09%)
Mutual labels:  data-augmentation
Semsegpipeline
A simpler way of reading and augmenting image segmentation data into TensorFlow
Stars: ✭ 126 (-20.25%)
Mutual labels:  data-augmentation
Grand
Source code and dataset of the NeurIPS 2020 paper "Graph Random Neural Network for Semi-Supervised Learning on Graphs"
Stars: ✭ 75 (-52.53%)
Mutual labels:  data-augmentation
Synthetic Occlusion
Synthetic Occlusion Augmentation
Stars: ✭ 88 (-44.3%)
Mutual labels:  data-augmentation
All Conv Keras
All Convolutional Network: (https://arxiv.org/abs/1412.6806#) implementation in Keras
Stars: ✭ 115 (-27.22%)
Mutual labels:  data-augmentation
Data generator object detection 2d
A data generator for 2D object detection
Stars: ✭ 73 (-53.8%)
Mutual labels:  data-augmentation
Ghost Free Shadow Removal
[AAAI 2020] Towards Ghost-free Shadow Removal via Dual Hierarchical Aggregation Network and Shadow Matting GAN
Stars: ✭ 133 (-15.82%)
Mutual labels:  data-augmentation
Doccreator
DIAR software for synthetic document image and groundtruth generation, with various degradation models for data augmentation
Stars: ✭ 60 (-62.03%)
Mutual labels:  data-augmentation
Fcn train
The code includes all the file that you need in the training stage for FCN
Stars: ✭ 104 (-34.18%)
Mutual labels:  data-augmentation
Evoskeleton
Official project website for the CVPR 2020 paper (Oral Presentation) "Cascaded Deep Monocular 3D Human Pose Estimation With Evolutionary Training Data"
Stars: ✭ 154 (-2.53%)
Mutual labels:  data-augmentation
Torchsample
High-Level Training, Data Augmentation, and Utilities for Pytorch
Stars: ✭ 1,731 (+995.57%)
Mutual labels:  data-augmentation
Aaltd18
Data augmentation using synthetic data for time series classification with deep residual networks
Stars: ✭ 124 (-21.52%)
Mutual labels:  data-augmentation

imagecorruptions

This 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.

image corruptions

Installation and Usage

This package is pip installable via pip3 install imagecorruptions. An example of how to use the corruption function is given below:

from imagecorruptions import corrupt
...
corrupted_image = corrupt(image, corruption_name='gaussian_blur', severity=1)
...

Looping over all available corruptions can be done either by name or by index:

# via name
from imagecorruptions import get_corruption_names
for corruption in get_corruption_names():
    for severity in range(5):
        corrupted = corrupt(image, corruption_name=corruption, severity=severity+1)
        ...

# via number:
for i in range(15):
    for severity in range(5):
        corrupted = corrupt(image, corruption_number=i, severity=severity+1)
        ...

Note 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.

Citation

If you use our code or the imagecorruptions package, please consider citing:

@article{michaelis2019dragon,
  title={Benchmarking Robustness in Object Detection: 
    Autonomous Driving when Winter is Coming},
  author={Michaelis, Claudio and Mitzkus, Benjamin and 
    Geirhos, Robert and Rusak, Evgenia and 
    Bringmann, Oliver and Ecker, Alexander S. and 
    Bethge, Matthias and Brendel, Wieland},
  journal={arXiv preprint arXiv:1907.07484},
  year={2019}
}

Credit and Changelog

This package is an extension of the image corruption functions provided by Dan Hendrycks in the repository corruptions. 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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].