Skip to content

Commit

Permalink
Add EMNIST clarification on image orientation.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 265939107
  • Loading branch information
Conchylicultor authored and copybara-github committed Aug 28, 2019
1 parent e4b25f4 commit 7655395
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tensorflow_datasets/image/mnist.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 7655395

Please sign in to comment.