imagenet2012_corrupted

  • Description:

Imagenet2012Corrupted is a dataset generated by adding common corruptions to the images in the ImageNet dataset. In the original paper, there are 15 + 4 different corruptions, and each has 5 levels of severity. We also implement the 4 extra corruptions gaussian blur, saturate, spatter, and speckle noise. The randomness is fixed so that regeneration is deterministic.

  • Homepage: https://openreview.net/forum?id=HJz6tiCqYm

  • Source code: tfds.datasets.imagenet2012_corrupted.Builder

  • Versions:

    • 0.0.1: Initial dataset
    • 3.1.0 (default): Implement missing corruptions. Fix crop/resize ordering, file encoding
    • 5.0.0: No release notes.
  • Download size: 1.98 MiB

  • Dataset size: Unknown size

  • Manual download instructions: This dataset requires you to download the source data manually into download_config.manual_dir (defaults to ~/tensorflow_datasets/downloads/manual/):
    manual_dir should contain two files: ILSVRC2012_img_train.tar and ILSVRC2012_img_val.tar. You need to register on https://image-net.org/download-images in order to get the link to download the dataset.

  • Auto-cached (documentation): Unknown

  • Splits:

Split Examples
'validation' 50,000
  • Feature structure:
FeaturesDict({
    'file_name': Text(shape=(), dtype=string),
    'image': Image(shape=(224, 224, 3), dtype=uint8),
    'label': ClassLabel(shape=(), dtype=int64, num_classes=1000),
})
  • Feature documentation:
Feature Class Shape Dtype Description
FeaturesDict
file_name Text string
image Image (224, 224, 3) uint8
label ClassLabel int64
@inproceedings{
  hendrycks2018benchmarking,
  title={Benchmarking Neural Network Robustness to Common Corruptions and Perturbations},
  author={Dan Hendrycks and Thomas Dietterich},
  booktitle={International Conference on Learning Representations},
  year={2019},
  url={https://openreview.net/forum?id=HJz6tiCqYm},
}

imagenet2012_corrupted/gaussian_noise_1 (default config)

  • Config description: corruption type = gaussian_noise, severity = 1

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/gaussian_noise_2

  • Config description: corruption type = gaussian_noise, severity = 2

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/gaussian_noise_3

  • Config description: corruption type = gaussian_noise, severity = 3

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/gaussian_noise_4

  • Config description: corruption type = gaussian_noise, severity = 4

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/gaussian_noise_5

  • Config description: corruption type = gaussian_noise, severity = 5

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/shot_noise_1

  • Config description: corruption type = shot_noise, severity = 1

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/shot_noise_2

  • Config description: corruption type = shot_noise, severity = 2

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/shot_noise_3

  • Config description: corruption type = shot_noise, severity = 3

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/shot_noise_4

  • Config description: corruption type = shot_noise, severity = 4

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/shot_noise_5

  • Config description: corruption type = shot_noise, severity = 5

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/impulse_noise_1

  • Config description: corruption type = impulse_noise, severity = 1

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/impulse_noise_2

  • Config description: corruption type = impulse_noise, severity = 2

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/impulse_noise_3

  • Config description: corruption type = impulse_noise, severity = 3

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/impulse_noise_4

  • Config description: corruption type = impulse_noise, severity = 4

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/impulse_noise_5

  • Config description: corruption type = impulse_noise, severity = 5

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/defocus_blur_1

  • Config description: corruption type = defocus_blur, severity = 1

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/defocus_blur_2

  • Config description: corruption type = defocus_blur, severity = 2

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/defocus_blur_3

  • Config description: corruption type = defocus_blur, severity = 3

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/defocus_blur_4

  • Config description: corruption type = defocus_blur, severity = 4

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/defocus_blur_5

  • Config description: corruption type = defocus_blur, severity = 5

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/glass_blur_1

  • Config description: corruption type = glass_blur, severity = 1

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/glass_blur_2

  • Config description: corruption type = glass_blur, severity = 2

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/glass_blur_3

  • Config description: corruption type = glass_blur, severity = 3

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/glass_blur_4

  • Config description: corruption type = glass_blur, severity = 4

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/glass_blur_5

  • Config description: corruption type = glass_blur, severity = 5

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/motion_blur_1

  • Config description: corruption type = motion_blur, severity = 1

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/motion_blur_2

  • Config description: corruption type = motion_blur, severity = 2

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/motion_blur_3

  • Config description: corruption type = motion_blur, severity = 3

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/motion_blur_4

  • Config description: corruption type = motion_blur, severity = 4

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/motion_blur_5

  • Config description: corruption type = motion_blur, severity = 5

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/zoom_blur_1

  • Config description: corruption type = zoom_blur, severity = 1

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/zoom_blur_2

  • Config description: corruption type = zoom_blur, severity = 2

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/zoom_blur_3

  • Config description: corruption type = zoom_blur, severity = 3

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/zoom_blur_4

  • Config description: corruption type = zoom_blur, severity = 4

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/zoom_blur_5

  • Config description: corruption type = zoom_blur, severity = 5

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/snow_1

Visualization

imagenet2012_corrupted/snow_2

Visualization

imagenet2012_corrupted/snow_3

Visualization

imagenet2012_corrupted/snow_4

Visualization

imagenet2012_corrupted/snow_5

Visualization

imagenet2012_corrupted/frost_1

Visualization

imagenet2012_corrupted/frost_2

Visualization

imagenet2012_corrupted/frost_3

Visualization

imagenet2012_corrupted/frost_4

Visualization

imagenet2012_corrupted/frost_5

Visualization

imagenet2012_corrupted/fog_1

Visualization

imagenet2012_corrupted/fog_2

Visualization

imagenet2012_corrupted/fog_3

Visualization

imagenet2012_corrupted/fog_4

Visualization

imagenet2012_corrupted/fog_5

Visualization

imagenet2012_corrupted/brightness_1

  • Config description: corruption type = brightness, severity = 1

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/brightness_2

  • Config description: corruption type = brightness, severity = 2

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/brightness_3

  • Config description: corruption type = brightness, severity = 3

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/brightness_4

  • Config description: corruption type = brightness, severity = 4

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/brightness_5

  • Config description: corruption type = brightness, severity = 5

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/contrast_1

  • Config description: corruption type = contrast, severity = 1

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/contrast_2

  • Config description: corruption type = contrast, severity = 2

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/contrast_3

  • Config description: corruption type = contrast, severity = 3

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/contrast_4

  • Config description: corruption type = contrast, severity = 4

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/contrast_5

  • Config description: corruption type = contrast, severity = 5

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/elastic_transform_1

  • Config description: corruption type = elastic_transform, severity = 1

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/elastic_transform_2

  • Config description: corruption type = elastic_transform, severity = 2

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/elastic_transform_3

  • Config description: corruption type = elastic_transform, severity = 3

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/elastic_transform_4

  • Config description: corruption type = elastic_transform, severity = 4

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/elastic_transform_5

  • Config description: corruption type = elastic_transform, severity = 5

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/pixelate_1

  • Config description: corruption type = pixelate, severity = 1

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/pixelate_2

  • Config description: corruption type = pixelate, severity = 2

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/pixelate_3

  • Config description: corruption type = pixelate, severity = 3

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/pixelate_4

  • Config description: corruption type = pixelate, severity = 4

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/pixelate_5

  • Config description: corruption type = pixelate, severity = 5

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/jpeg_compression_1

  • Config description: corruption type = jpeg_compression, severity = 1

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/jpeg_compression_2

  • Config description: corruption type = jpeg_compression, severity = 2

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/jpeg_compression_3

  • Config description: corruption type = jpeg_compression, severity = 3

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/jpeg_compression_4

  • Config description: corruption type = jpeg_compression, severity = 4

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/jpeg_compression_5

  • Config description: corruption type = jpeg_compression, severity = 5

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/gaussian_blur_1

  • Config description: corruption type = gaussian_blur, severity = 1

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/gaussian_blur_2

  • Config description: corruption type = gaussian_blur, severity = 2

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/gaussian_blur_3

  • Config description: corruption type = gaussian_blur, severity = 3

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/gaussian_blur_4

  • Config description: corruption type = gaussian_blur, severity = 4

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/gaussian_blur_5

  • Config description: corruption type = gaussian_blur, severity = 5

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/saturate_1

  • Config description: corruption type = saturate, severity = 1

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/saturate_2

  • Config description: corruption type = saturate, severity = 2

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/saturate_3

  • Config description: corruption type = saturate, severity = 3

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/saturate_4

  • Config description: corruption type = saturate, severity = 4

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/saturate_5

  • Config description: corruption type = saturate, severity = 5

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/spatter_1

  • Config description: corruption type = spatter, severity = 1

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/spatter_2

  • Config description: corruption type = spatter, severity = 2

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/spatter_3

  • Config description: corruption type = spatter, severity = 3

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/spatter_4

  • Config description: corruption type = spatter, severity = 4

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/spatter_5

  • Config description: corruption type = spatter, severity = 5

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/speckle_noise_1

  • Config description: corruption type = speckle_noise, severity = 1

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/speckle_noise_2

  • Config description: corruption type = speckle_noise, severity = 2

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/speckle_noise_3

  • Config description: corruption type = speckle_noise, severity = 3

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/speckle_noise_4

  • Config description: corruption type = speckle_noise, severity = 4

  • Figure (tfds.show_examples):

Visualization

imagenet2012_corrupted/speckle_noise_5

  • Config description: corruption type = speckle_noise, severity = 5

  • Figure (tfds.show_examples):

Visualization