mnist_corrupted
Stay organized with collections
Save and categorize content based on your preferences.
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
Split |
Examples |
'test' |
10,000 |
'train' |
60,000 |
FeaturesDict({
'image': Image(shape=(28, 28, 1), dtype=uint8),
'label': ClassLabel(shape=(), dtype=int64, num_classes=10),
})
Feature |
Class |
Shape |
Dtype |
Description |
|
FeaturesDict |
|
|
|
image |
Image |
(28, 28, 1) |
uint8 |
|
label |
ClassLabel |
|
int64 |
|
@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}
}
mnist_corrupted/identity (default config)

mnist_corrupted/shot_noise

mnist_corrupted/impulse_noise

mnist_corrupted/glass_blur

mnist_corrupted/motion_blur

mnist_corrupted/shear

mnist_corrupted/scale

mnist_corrupted/rotate

mnist_corrupted/brightness

mnist_corrupted/translate

mnist_corrupted/stripe

mnist_corrupted/fog

mnist_corrupted/spatter

mnist_corrupted/dotted_line

mnist_corrupted/zigzag

mnist_corrupted/canny_edges

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-06-01 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-06-01 UTC."],[],[],null,["# mnist_corrupted\n\n\u003cbr /\u003e\n\n- **Description**:\n\nMNISTCorrupted is a dataset generated by adding 15 corruptions to the test\nimages in the MNIST dataset. This dataset wraps the static, corrupted MNIST test\nimages uploaded by the original authors\n\n- **Additional Documentation** :\n [Explore on Papers With Code\n north_east](https://paperswithcode.com/dataset/mnist-c)\n\n- **Homepage** :\n \u003chttps://github.com/google-research/mnist-c\u003e\n\n- **Source code** :\n [`tfds.image_classification.MNISTCorrupted`](https://github.com/tensorflow/datasets/tree/master/tensorflow_datasets/image_classification/mnist_corrupted.py)\n\n- **Versions**:\n\n - **`1.0.0`** (default): New split API\n- **Download size** : `235.23 MiB`\n\n- **Auto-cached**\n ([documentation](https://www.tensorflow.org/datasets/performances#auto-caching)):\n Yes\n\n- **Splits**:\n\n| Split | Examples |\n|-----------|----------|\n| `'test'` | 10,000 |\n| `'train'` | 60,000 |\n\n- **Feature structure**:\n\n FeaturesDict({\n 'image': Image(shape=(28, 28, 1), dtype=uint8),\n 'label': ClassLabel(shape=(), dtype=int64, num_classes=10),\n })\n\n- **Feature documentation**:\n\n| Feature | Class | Shape | Dtype | Description |\n|---------|--------------|-------------|-------|-------------|\n| | FeaturesDict | | | |\n| image | Image | (28, 28, 1) | uint8 | |\n| label | ClassLabel | | int64 | |\n\n- **Supervised keys** (See\n [`as_supervised` doc](https://www.tensorflow.org/datasets/api_docs/python/tfds/load#args)):\n `('image', 'label')`\n\n- **Citation**:\n\n @article{mu2019mnist,\n title={MNIST-C: A Robustness Benchmark for Computer Vision},\n author={Mu, Norman and Gilmer, Justin},\n journal={arXiv preprint arXiv:1906.02337},\n year={2019}\n }\n\nmnist_corrupted/identity (default config)\n-----------------------------------------\n\n- **Config description**: Corruption method: identity\n\n- **Dataset size** : `21.00 MiB`\n\n- **Figure**\n ([tfds.show_examples](https://www.tensorflow.org/datasets/api_docs/python/tfds/visualization/show_examples)):\n\n- **Examples** ([tfds.as_dataframe](https://www.tensorflow.org/datasets/api_docs/python/tfds/as_dataframe)):\n\nDisplay examples... \n\nmnist_corrupted/shot_noise\n--------------------------\n\n- **Config description**: Corruption method: shot_noise\n\n- **Dataset size** : `15.05 MiB`\n\n- **Figure**\n ([tfds.show_examples](https://www.tensorflow.org/datasets/api_docs/python/tfds/visualization/show_examples)):\n\n- **Examples** ([tfds.as_dataframe](https://www.tensorflow.org/datasets/api_docs/python/tfds/as_dataframe)):\n\nDisplay examples... \n\nmnist_corrupted/impulse_noise\n-----------------------------\n\n- **Config description**: Corruption method: impulse_noise\n\n- **Dataset size** : `24.61 MiB`\n\n- **Figure**\n ([tfds.show_examples](https://www.tensorflow.org/datasets/api_docs/python/tfds/visualization/show_examples)):\n\n- **Examples** ([tfds.as_dataframe](https://www.tensorflow.org/datasets/api_docs/python/tfds/as_dataframe)):\n\nDisplay examples... \n\nmnist_corrupted/glass_blur\n--------------------------\n\n- **Config description**: Corruption method: glass_blur\n\n- **Dataset size** : `35.91 MiB`\n\n- **Figure**\n ([tfds.show_examples](https://www.tensorflow.org/datasets/api_docs/python/tfds/visualization/show_examples)):\n\n- **Examples** ([tfds.as_dataframe](https://www.tensorflow.org/datasets/api_docs/python/tfds/as_dataframe)):\n\nDisplay examples... \n\nmnist_corrupted/motion_blur\n---------------------------\n\n- **Config description**: Corruption method: motion_blur\n\n- **Dataset size** : `32.45 MiB`\n\n- **Figure**\n ([tfds.show_examples](https://www.tensorflow.org/datasets/api_docs/python/tfds/visualization/show_examples)):\n\n- **Examples** ([tfds.as_dataframe](https://www.tensorflow.org/datasets/api_docs/python/tfds/as_dataframe)):\n\nDisplay examples... \n\nmnist_corrupted/shear\n---------------------\n\n- **Config description**: Corruption method: shear\n\n- **Dataset size** : `27.73 MiB`\n\n- **Figure**\n ([tfds.show_examples](https://www.tensorflow.org/datasets/api_docs/python/tfds/visualization/show_examples)):\n\n- **Examples** ([tfds.as_dataframe](https://www.tensorflow.org/datasets/api_docs/python/tfds/as_dataframe)):\n\nDisplay examples... \n\nmnist_corrupted/scale\n---------------------\n\n- **Config description**: Corruption method: scale\n\n- **Dataset size** : `17.41 MiB`\n\n- **Figure**\n ([tfds.show_examples](https://www.tensorflow.org/datasets/api_docs/python/tfds/visualization/show_examples)):\n\n- **Examples** ([tfds.as_dataframe](https://www.tensorflow.org/datasets/api_docs/python/tfds/as_dataframe)):\n\nDisplay examples... \n\nmnist_corrupted/rotate\n----------------------\n\n- **Config description**: Corruption method: rotate\n\n- **Dataset size** : `27.09 MiB`\n\n- **Figure**\n ([tfds.show_examples](https://www.tensorflow.org/datasets/api_docs/python/tfds/visualization/show_examples)):\n\n- **Examples** ([tfds.as_dataframe](https://www.tensorflow.org/datasets/api_docs/python/tfds/as_dataframe)):\n\nDisplay examples... \n\nmnist_corrupted/brightness\n--------------------------\n\n- **Config description**: Corruption method: brightness\n\n- **Dataset size** : `20.52 MiB`\n\n- **Figure**\n ([tfds.show_examples](https://www.tensorflow.org/datasets/api_docs/python/tfds/visualization/show_examples)):\n\n- **Examples** ([tfds.as_dataframe](https://www.tensorflow.org/datasets/api_docs/python/tfds/as_dataframe)):\n\nDisplay examples... \n\nmnist_corrupted/translate\n-------------------------\n\n- **Config description**: Corruption method: translate\n\n- **Dataset size** : `20.88 MiB`\n\n- **Figure**\n ([tfds.show_examples](https://www.tensorflow.org/datasets/api_docs/python/tfds/visualization/show_examples)):\n\n- **Examples** ([tfds.as_dataframe](https://www.tensorflow.org/datasets/api_docs/python/tfds/as_dataframe)):\n\nDisplay examples... \n\nmnist_corrupted/stripe\n----------------------\n\n- **Config description**: Corruption method: stripe\n\n- **Dataset size** : `23.09 MiB`\n\n- **Figure**\n ([tfds.show_examples](https://www.tensorflow.org/datasets/api_docs/python/tfds/visualization/show_examples)):\n\n- **Examples** ([tfds.as_dataframe](https://www.tensorflow.org/datasets/api_docs/python/tfds/as_dataframe)):\n\nDisplay examples... \n\nmnist_corrupted/fog\n-------------------\n\n- **Config description**: Corruption method: fog\n\n- **Dataset size** : `35.76 MiB`\n\n- **Figure**\n ([tfds.show_examples](https://www.tensorflow.org/datasets/api_docs/python/tfds/visualization/show_examples)):\n\n- **Examples** ([tfds.as_dataframe](https://www.tensorflow.org/datasets/api_docs/python/tfds/as_dataframe)):\n\nDisplay examples... \n\nmnist_corrupted/spatter\n-----------------------\n\n- **Config description**: Corruption method: spatter\n\n- **Dataset size** : `29.67 MiB`\n\n- **Figure**\n ([tfds.show_examples](https://www.tensorflow.org/datasets/api_docs/python/tfds/visualization/show_examples)):\n\n- **Examples** ([tfds.as_dataframe](https://www.tensorflow.org/datasets/api_docs/python/tfds/as_dataframe)):\n\nDisplay examples... \n\nmnist_corrupted/dotted_line\n---------------------------\n\n- **Config description**: Corruption method: dotted_line\n\n- **Dataset size** : `24.45 MiB`\n\n- **Figure**\n ([tfds.show_examples](https://www.tensorflow.org/datasets/api_docs/python/tfds/visualization/show_examples)):\n\n- **Examples** ([tfds.as_dataframe](https://www.tensorflow.org/datasets/api_docs/python/tfds/as_dataframe)):\n\nDisplay examples... \n\nmnist_corrupted/zigzag\n----------------------\n\n- **Config description**: Corruption method: zigzag\n\n- **Dataset size** : `25.91 MiB`\n\n- **Figure**\n ([tfds.show_examples](https://www.tensorflow.org/datasets/api_docs/python/tfds/visualization/show_examples)):\n\n- **Examples** ([tfds.as_dataframe](https://www.tensorflow.org/datasets/api_docs/python/tfds/as_dataframe)):\n\nDisplay examples... \n\nmnist_corrupted/canny_edges\n---------------------------\n\n- **Config description**: Corruption method: canny_edges\n\n- **Dataset size** : `13.23 MiB`\n\n- **Figure**\n ([tfds.show_examples](https://www.tensorflow.org/datasets/api_docs/python/tfds/visualization/show_examples)):\n\n- **Examples** ([tfds.as_dataframe](https://www.tensorflow.org/datasets/api_docs/python/tfds/as_dataframe)):\n\nDisplay examples..."]]