From 76553955ca0d56a50170374c3e28f1a4b9720601 Mon Sep 17 00:00:00 2001 From: Etienne Pot Date: Wed, 28 Aug 2019 10:27:50 -0700 Subject: [PATCH] Add EMNIST clarification on image orientation. PiperOrigin-RevId: 265939107 --- tensorflow_datasets/image/mnist.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tensorflow_datasets/image/mnist.py b/tensorflow_datasets/image/mnist.py index 46ce197d716..3b1080de00e 100644 --- a/tensorflow_datasets/image/mnist.py +++ b/tensorflow_datasets/image/mnist.py @@ -317,7 +317,11 @@ def _info(self): "The EMNIST dataset is a set of handwritten character digits " "derived from the NIST Special Database 19 and converted to " "a 28x28 pixel image format and dataset structure that directly " - "matches the MNIST dataset."), + "matches the MNIST dataset.\n\n" + "Note: Like the original EMNIST data, images provided here are " + "inverted horizontally and rotated 90 anti-clockwise. You can use " + "`tf.transpose` within `ds.map` to convert the images to a " + "human-friendlier format."), features=tfds.features.FeaturesDict({ "image": tfds.features.Image(shape=MNIST_IMAGE_SHAPE),