mnist_corrupted

MNISTCorrupted is a dataset generated by adding 15 corruptions to the test images in the MNIST dataset. This dataset wraps the static, corrupted MNIST test images uploaded by the original authors

mnist_corrupted is configured with tfds.image.mnist_corrupted.MNISTCorruptedConfig and has the following configurations predefined (defaults to the first one):

  • identity (v0.0.1) (Size: 235.23 MiB): Corruption method: identity

  • shot_noise (v0.0.1) (Size: 235.23 MiB): Corruption method: shot_noise

  • impulse_noise (v0.0.1) (Size: 235.23 MiB): Corruption method: impulse_noise

  • glass_blur (v0.0.1) (Size: 235.23 MiB): Corruption method: glass_blur

  • motion_blur (v0.0.1) (Size: 235.23 MiB): Corruption method: motion_blur

  • shear (v0.0.1) (Size: 235.23 MiB): Corruption method: shear

  • scale (v0.0.1) (Size: 235.23 MiB): Corruption method: scale

  • rotate (v0.0.1) (Size: 235.23 MiB): Corruption method: rotate

  • brightness (v0.0.1) (Size: 235.23 MiB): Corruption method: brightness

  • translate (v0.0.1) (Size: 235.23 MiB): Corruption method: translate

  • stripe (v0.0.1) (Size: 235.23 MiB): Corruption method: stripe

  • fog (v0.0.1) (Size: 235.23 MiB): Corruption method: fog

  • spatter (v0.0.1) (Size: 235.23 MiB): Corruption method: spatter

  • dotted_line (v0.0.1) (Size: 235.23 MiB): Corruption method: dotted_line

  • zigzag (v0.0.1) (Size: 235.23 MiB): Corruption method: zigzag

  • canny_edges (v0.0.1) (Size: 235.23 MiB): Corruption method: canny_edges

mnist_corrupted/identity

Corruption method: identity

Versions:

  • 0.0.1 (default):
  • 1.0.0: New split API (https://tensorflow.org/datasets/splits)

Statistics

Split Examples
ALL 70,000
TRAIN 60,000
TEST 10,000

Features

FeaturesDict({
    'image': Image(shape=(28, 28, 1), dtype=tf.uint8),
    'label': ClassLabel(shape=(), dtype=tf.int64, num_classes=10),
})

Homepage

Supervised keys (for as_supervised=True)

(u'image', u'label')

mnist_corrupted/shot_noise

Corruption method: shot_noise

Versions:

  • 0.0.1 (default):
  • 1.0.0: New split API (https://tensorflow.org/datasets/splits)

Statistics

Split Examples
ALL 70,000
TRAIN 60,000
TEST 10,000

Features

FeaturesDict({
    'image': Image(shape=(28, 28, 1), dtype=tf.uint8),
    'label': ClassLabel(shape=(), dtype=tf.int64, num_classes=10),
})

Homepage

Supervised keys (for as_supervised=True)

(u'image', u'label')

mnist_corrupted/impulse_noise

Corruption method: impulse_noise

Versions:

  • 0.0.1 (default):
  • 1.0.0: New split API (https://tensorflow.org/datasets/splits)

Statistics

Split Examples
ALL 70,000
TRAIN 60,000
TEST 10,000

Features

FeaturesDict({
    'image': Image(shape=(28, 28, 1), dtype=tf.uint8),
    'label': ClassLabel(shape=(), dtype=tf.int64, num_classes=10),
})

Homepage

Supervised keys (for as_supervised=True)

(u'image', u'label')

mnist_corrupted/glass_blur

Corruption method: glass_blur

Versions:

  • 0.0.1 (default):
  • 1.0.0: New split API (https://tensorflow.org/datasets/splits)

Statistics

Split Examples
ALL 70,000
TRAIN 60,000
TEST 10,000

Features

FeaturesDict({
    'image': Image(shape=(28, 28, 1), dtype=tf.uint8),
    'label': ClassLabel(shape=(), dtype=tf.int64, num_classes=10),
})

Homepage

Supervised keys (for as_supervised=True)

(u'image', u'label')

mnist_corrupted/motion_blur

Corruption method: motion_blur

Versions:

  • 0.0.1 (default):
  • 1.0.0: New split API (https://tensorflow.org/datasets/splits)

Statistics

Split Examples
ALL 70,000
TRAIN 60,000
TEST 10,000

Features

FeaturesDict({
    'image': Image(shape=(28, 28, 1), dtype=tf.uint8),
    'label': ClassLabel(shape=(), dtype=tf.int64, num_classes=10),
})

Homepage

Supervised keys (for as_supervised=True)

(u'image', u'label')

mnist_corrupted/shear

Corruption method: shear

Versions:

  • 0.0.1 (default):
  • 1.0.0: New split API (https://tensorflow.org/datasets/splits)

Statistics

Split Examples
ALL 70,000
TRAIN 60,000
TEST 10,000

Features

FeaturesDict({
    'image': Image(shape=(28, 28, 1), dtype=tf.uint8),
    'label': ClassLabel(shape=(), dtype=tf.int64, num_classes=10),
})

Homepage

Supervised keys (for as_supervised=True)

(u'image', u'label')

mnist_corrupted/scale

Corruption method: scale

Versions:

  • 0.0.1 (default):
  • 1.0.0: New split API (https://tensorflow.org/datasets/splits)

Statistics

Split Examples
ALL 70,000
TRAIN 60,000
TEST 10,000

Features

FeaturesDict({
    'image': Image(shape=(28, 28, 1), dtype=tf.uint8),
    'label': ClassLabel(shape=(), dtype=tf.int64, num_classes=10),
})

Homepage

Supervised keys (for as_supervised=True)

(u'image', u'label')

mnist_corrupted/rotate

Corruption method: rotate

Versions:

  • 0.0.1 (default):
  • 1.0.0: New split API (https://tensorflow.org/datasets/splits)

Statistics

Split Examples
ALL 70,000
TRAIN 60,000
TEST 10,000

Features

FeaturesDict({
    'image': Image(shape=(28, 28, 1), dtype=tf.uint8),
    'label': ClassLabel(shape=(), dtype=tf.int64, num_classes=10),
})

Homepage

Supervised keys (for as_supervised=True)

(u'image', u'label')

mnist_corrupted/brightness

Corruption method: brightness

Versions:

  • 0.0.1 (default):
  • 1.0.0: New split API (https://tensorflow.org/datasets/splits)

Statistics

Split Examples
ALL 70,000
TRAIN 60,000
TEST 10,000

Features

FeaturesDict({
    'image': Image(shape=(28, 28, 1), dtype=tf.uint8),
    'label': ClassLabel(shape=(), dtype=tf.int64, num_classes=10),
})

Homepage

Supervised keys (for as_supervised=True)

(u'image', u'label')

mnist_corrupted/translate

Corruption method: translate

Versions:

  • 0.0.1 (default):
  • 1.0.0: New split API (https://tensorflow.org/datasets/splits)

Statistics

Split Examples
ALL 70,000
TRAIN 60,000
TEST 10,000

Features

FeaturesDict({
    'image': Image(shape=(28, 28, 1), dtype=tf.uint8),
    'label': ClassLabel(shape=(), dtype=tf.int64, num_classes=10),
})

Homepage

Supervised keys (for as_supervised=True)

(u'image', u'label')

mnist_corrupted/stripe

Corruption method: stripe

Versions:

  • 0.0.1 (default):
  • 1.0.0: New split API (https://tensorflow.org/datasets/splits)

Statistics

Split Examples
ALL 70,000
TRAIN 60,000
TEST 10,000

Features

FeaturesDict({
    'image': Image(shape=(28, 28, 1), dtype=tf.uint8),
    'label': ClassLabel(shape=(), dtype=tf.int64, num_classes=10),
})

Homepage

Supervised keys (for as_supervised=True)

(u'image', u'label')

mnist_corrupted/fog

Corruption method: fog

Versions:

  • 0.0.1 (default):
  • 1.0.0: New split API (https://tensorflow.org/datasets/splits)

Statistics

Split Examples
ALL 70,000
TRAIN 60,000
TEST 10,000

Features

FeaturesDict({
    'image': Image(shape=(28, 28, 1), dtype=tf.uint8),
    'label': ClassLabel(shape=(), dtype=tf.int64, num_classes=10),
})

Homepage

Supervised keys (for as_supervised=True)

(u'image', u'label')

mnist_corrupted/spatter

Corruption method: spatter

Versions:

  • 0.0.1 (default):
  • 1.0.0: New split API (https://tensorflow.org/datasets/splits)

Statistics

Split Examples
ALL 70,000
TRAIN 60,000
TEST 10,000

Features

FeaturesDict({
    'image': Image(shape=(28, 28, 1), dtype=tf.uint8),
    'label': ClassLabel(shape=(), dtype=tf.int64, num_classes=10),
})

Homepage

Supervised keys (for as_supervised=True)

(u'image', u'label')

mnist_corrupted/dotted_line

Corruption method: dotted_line

Versions:

  • 0.0.1 (default):
  • 1.0.0: New split API (https://tensorflow.org/datasets/splits)

Statistics

Split Examples
ALL 70,000
TRAIN 60,000
TEST 10,000

Features

FeaturesDict({
    'image': Image(shape=(28, 28, 1), dtype=tf.uint8),
    'label': ClassLabel(shape=(), dtype=tf.int64, num_classes=10),
})

Homepage

Supervised keys (for as_supervised=True)

(u'image', u'label')

mnist_corrupted/zigzag

Corruption method: zigzag

Versions:

  • 0.0.1 (default):
  • 1.0.0: New split API (https://tensorflow.org/datasets/splits)

Statistics

Split Examples
ALL 70,000
TRAIN 60,000
TEST 10,000

Features

FeaturesDict({
    'image': Image(shape=(28, 28, 1), dtype=tf.uint8),
    'label': ClassLabel(shape=(), dtype=tf.int64, num_classes=10),
})

Homepage

Supervised keys (for as_supervised=True)

(u'image', u'label')

mnist_corrupted/canny_edges

Corruption method: canny_edges

Versions:

  • 0.0.1 (default):
  • 1.0.0: New split API (https://tensorflow.org/datasets/splits)

Statistics

Split Examples
ALL 70,000
TRAIN 60,000
TEST 10,000

Features

FeaturesDict({
    'image': Image(shape=(28, 28, 1), dtype=tf.uint8),
    'label': ClassLabel(shape=(), dtype=tf.int64, num_classes=10),
})

Homepage

Supervised keys (for as_supervised=True)

(u'image', u'label')

Citation

@article{mu2019mnist,
  title={MNIST-C: A Robustness Benchmark for Computer Vision},
  author={Mu, Norman and Gilmer, Justin},
  journal={arXiv preprint arXiv:1906.02337},
  year={2019}
}