Note: The datasets documented here are from HEAD
and so not all are available
in the current tensorflow-datasets
package. They are all accessible in our
nightly package tfds-nightly
.
# Build the `tf.data.Dataset` pipeline.
ds, info = tfds.load('cifar10', split='train', shuffle_files=True, with_info=True)
ds = ds.shuffle(info.splits['train'].num_examples)
ds = ds.batch(32)
# `tfds.as_numpy` converts `tf.Tensor` -> `np.array`
for ex in tfds.as_numpy(ds):
# `int2str` returns the human readable label ('dog', 'car',...)
print(info.features['label'].int2str(ex['label']))
Audio
Image
abstract_reasoning
aflw2k3d
arc
beans
bigearthnet
binarized_mnist
binary_alpha_digits
caltech101
caltech_birds2010
caltech_birds2011
cars196
cassava
cats_vs_dogs
celeb_a
celeb_a_hq
cifar10
cifar100
cifar10_1
cifar10_corrupted
citrus_leaves
cityscapes
clevr
cmaterdb
coil100
colorectal_histology
colorectal_histology_large
curated_breast_imaging_ddsm
cycle_gan
deep_weeds
diabetic_retinopathy_detection
div2k
dmlab
downsampled_imagenet
dsprites
dtd
duke_ultrasound
emnist
eurosat
fashion_mnist
flic
food101
geirhos_conflict_stimuli
horses_or_humans
i_naturalist2017
image_label_folder
imagenet2012
imagenet2012_corrupted
imagenet2012_subset
imagenet_resized
imagenette
imagewang
kmnist
lfw
lost_and_found
lsun
malaria
mnist
mnist_corrupted
omniglot
oxford_flowers102
oxford_iiit_pet
patch_camelyon
pet_finder
places365_small
plant_leaves
plant_village
plantae_k
quickdraw_bitmap
resisc45
rock_paper_scissors
scene_parse150
shapes3d
smallnorb
so2sat
stanford_dogs
stanford_online_products
sun397
svhn_cropped
tf_flowers
the300w_lp
uc_merced
vgg_face2
visual_domain_decathlon
Object_detection
Structured
Summarization
Text
blimp
c4
cfq
civil_comments
cos_e
definite_pronoun_resolution
eraser_multi_rc
esnli
gap
glue
imdb_reviews
librispeech_lm
lm1b
math_dataset
movie_rationales
multi_nli
multi_nli_mismatch
natural_questions
qa4mre
scan
scicite
snli
squad
super_glue
tiny_shakespeare
trivia_qa
wiki40b
wikipedia
xnli
yelp_polarity_reviews
Translate
Video