Questions tagged [mnist]

MNIST is a database of handwritten digits collected by Yann Lecun and widely used in machine learning research.

MNIST is a database of handwritten digits collected by Yann Lecun, a famous computer scientist, when he was working at AT&T-Bell Labs on the problem of automation of check readings for banks. The data set is a benchmark widely used in machine learning research. Due to its small size it is also widely used for educational purposes.

Here is the full documentation for MNIST database of handwritten digits:

It is a good database for people who want to try learning techniques and pattern recognition methods on real-world data while spending minimal efforts on preprocessing and formatting.

1329 questions
7
votes
1 answer

You must feed a value for placeholder tensor 'Placeholder' with dtype float and shape [?,784] for MNIST dataset

Here is the example I am testing on MNIST dataset for quantization. I am testing my model using below code: import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data from tensorflow.python.framework import graph_util from…
7
votes
2 answers

Python SSL Certification Problems in Tensorflow

I'm trying to download the MNIST data which is supposedly handled in: tensorflow.examples.tutorials.mnist.input_data.read_data_sets() As far as I'm aware read_data_sets sends a pull request to a server to download the (approx.) 1.5GB of data. I keep…
jmkmay
  • 1,441
  • 11
  • 21
7
votes
2 answers

TensorFlow ValueError: Variable does not exist, or was not created with tf.get_variable()

I am a newbie to Tensorflow and trying to implement a Generative Adversarial Network. I am following this tutorial for the same in which we are trying to generate MNIST dataset like images using generative models. However, the code seems to be using…
Rahul Patel
  • 147
  • 1
  • 2
  • 10
6
votes
3 answers

Accuracy while learning MNIST database is very low (0.2)

I am developing my ANN from scratch which is supposed to classify MNIST database of handwritten digits (0-9). My feed-forward fully connected ANN has to be composed of: One input layer, with 28x28 = 784 nodes (that is, features of each image) One…
Anna
  • 125
  • 7
6
votes
1 answer

Significantly higher testing accuracy on mnist with keras than tensorflow.keras

I was verifying with a basic example my TensorFlow (v2.2.0), Cuda (10.1), and cudnn (libcudnn7-dev_7.6.5.32-1+cuda10.1_amd64.deb) and I'm getting weird results... When running the following example in Keras as shown in…
6
votes
4 answers

Invalid dimension for image data in plt.imshow()

I am using mnist dataset for training a capsule network in keras background. After training, I want to display an image from mnist dataset. For loading images, mnist.load_data() is used. The data is stored as (x_train, y_train),(x_test,…
Anusha Mehta
  • 99
  • 1
  • 1
  • 10
6
votes
1 answer

Change size of train and test set from MNIST Dataset

I'm using the MNIST and Keras for learning about CNNs. I'm downloading the MNIST database of handwritten digits under Keras API as show below. The dataset is already split in 60.000 images for training and 10.000 images for test (see Dataset - Keras…
Thulio Amorim
  • 191
  • 3
  • 8
6
votes
4 answers

MNIST data download from sklearn datasets gives Timeout error

I am new to ML and trying to download MNIST data. The code I am using is: from sklearn.datasets import fetch_mldata mnist = fetch_mldata('MNIST original') But, it gives an error saying: TimeoutError: [WinError 10060] A connection attempt failed…
Swaraj Shekhar
  • 187
  • 1
  • 7
  • 28
6
votes
2 answers

What does keras normalize axis argument does?

I am a beginner in deep learning and I am working upon the mnist dataset in keras. I used normalization as tf.keras.utils.normalize(x_train, axis = 1) I don't understand what does the axis argument means. Can you help me out with this?
Aparajit Garg
  • 122
  • 2
  • 2
  • 12
6
votes
4 answers

loading EMNIST-letters dataset

I have been trying to find a way to load the EMNIST-letters dataset but without much success. I have found interesting stuff in the structure and can't wrap my head around what is happening. Here is what I mean: I downloaded the .mat format in…
Tissuebox
  • 1,016
  • 3
  • 14
  • 36
6
votes
1 answer

Tensorflow MNIST Estimator: batch size affects the graph expected input?

I have followed the TensorFlow MNIST Estimator tutorial and I have trained my MNIST model. It seems to work fine, but if I visualize it on Tensorboard I see something weird: the input shape that the model requires is 100 x 784. Here is a screenshot:…
Andrea Rossi
  • 981
  • 1
  • 10
  • 23
6
votes
1 answer

First training epoch is very slow

Hi… I’m running mnist code in my P3 AWS machine and the initialization process seems to be very long compared to my previous P2 machine (although P3>P2) Train on 60000 samples, validate on 10000 samples Epoch 1/10 60000/60000…
Jenia Golbstein
  • 374
  • 2
  • 12
6
votes
2 answers

Tensorflow model for OCR arabic

I am a beginner in Tensorflow and I want to build an OCR model with Tensorflow that detects Arabic words from cursive Arabic fonts (i.e. joint Arabic handwriting). Ideally, the model would be able to detect both Arabic and English. Please see the…
piccolo
  • 2,093
  • 3
  • 24
  • 56
6
votes
0 answers

The performance of operation fusion using TensorFlow XLA-JIT on CPU backend

Can anyone give me any hints why XLA-JIT has better performance on CPU backend? I tried TensorFlow without and with XLA-JIT (manual mode) on mnist benchmark on a single CPU. Using XLA-JIT achieves 13.6x speedups against TensorFlow without…
MarZzz
  • 329
  • 2
  • 12
6
votes
1 answer

How to extract only characters from image?

I have this type of image from that I only want to extract the characters. After binarization, I am getting this image img = cv2.imread('the_image.jpg') gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) thresh = cv2.adaptiveThreshold(gray, 255,…
Arka
  • 1,073
  • 1
  • 10
  • 14