- Description:
ImageNet-R is a set of images labelled with ImageNet labels that were obtained by collecting art, cartoons, deviantart, graffiti, embroidery, graphics, origami, paintings, patterns, plastic objects, plush objects, sculptures, sketches, tattoos, toys, and video game renditions of ImageNet classes. ImageNet-R has renditions of 200 ImageNet classes resulting in 30,000 images. by collecting new data and keeping only those images that ResNet-50 models fail to correctly classify. For more details please refer to the paper.
The label space is the same as that of ImageNet2012. Each example is represented as a dictionary with the following keys:
- 'image': The image, a (H, W, 3)-tensor.
- 'label': An integer in the range [0, 1000).
'file_name': A unique sting identifying the example within the dataset.
Additional Documentation: Explore on Papers With Code
Homepage: https://github.com/hendrycks/imagenet-r
Source code:
tfds.datasets.imagenet_r.Builder
Versions:
0.1.0
: No release notes.0.2.0
(default): Fix file_name, from absolute path to path relative to imagenet-r directory, ie: "imagenet_synset_id/filename.jpg".
Download size:
2.04 GiB
Dataset size:
2.02 GiB
Auto-cached (documentation): No
Splits:
Split | Examples |
---|---|
'test' |
30,000 |
- Feature structure:
FeaturesDict({
'file_name': Text(shape=(), dtype=string),
'image': Image(shape=(None, None, 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 | (None, None, 3) | uint8 | |
label | ClassLabel | int64 |
Supervised keys (See
as_supervised
doc):('image', 'label')
Figure (tfds.show_examples):
- Examples (tfds.as_dataframe):
- Citation:
@article{hendrycks2020many,
title={The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalization},
author={Dan Hendrycks and Steven Basart and Norman Mu and Saurav Kadavath and Frank Wang and Evan Dorundo and Rahul Desai and Tyler Zhu and Samyak Parajuli and Mike Guo and Dawn Song and Jacob Steinhardt and Justin Gilmer},
journal={arXiv preprint arXiv:2006.16241},
year={2020}
}