Unable to run MNIST example tutorial: convert_mnist_data.bin missing

965 views
Skip to first unread message

J

unread,
Sep 12, 2016, 9:16:52 PM9/12/16
to Caffe Users
Hi! I'm new to caffe. I found the MNIST tutorial for caffe at http://caffe.berkeleyvision.org/gathered/examples/mnist.html.

When following the tutorial I get the error "convert_mnist_data.bin: not found".

$ ./data/mnist/get_mnist.sh
Downloading...
$
./examples/mnist/create_mnist.sh
Creating lmdb...
./examples/mnist/create_mnist.sh: 17: ./examples/mnist/create_mnist.sh: build/examples/mnist/convert_mnist_data.bin: not found

Where can I get the file "convert_mnist_data.bin"?

Running get_mnist.sh seemed to run successfully, and downloaded "train-images-idx3-ubyte.gz" (9.45M), "train-labels-idx1-ubyte.gz" (28.20K), "t10k-images-idx3-ubyte.gz" (1.57M) and "t10k-labels-idx1-ubyte.gz" (4.44K), using wget.

Further running get_mnist.sh just says "Downloading...".

I have found this closed GitHub issue post from last year, "https://github.com/BVLC/caffe/issues/1751", but it does not resolve my issue. Or rather, I don't think it does. I built caffe in ./build, as is the cmake standard.

Any ideas?

Thank you.

J

unread,
Sep 14, 2016, 1:06:50 PM9/14/16
to Caffe Users
Is
convert_mnist_data-d.bin
the same as
convert_mnist_data.bin
?



:~/opt/caffe/git/caffe-master/build/examples/mnist$ ls -al
shows that
drwxrwxr-x 2 user user   4096 Sep 12 18:29 .
drwxrwxr
-x 7 user user   4096 Sep 12 18:23 ..
-rwxrwxr-x 1 user user 128480 Sep 12 18:29 convert_mnist_data-d
lrwxrwxrwx
1 user user     78 Sep 12 18:29 convert_mnist_data-d.bin -> /home/user/opt/caffe/git/caffe-master/build/examples/mnist/convert_mnist_data-d


should I modify create_mnist.sh to use convert_mnist_data-d.bin instead?

I am guessing that -d is for debug. The cmake configuration seems to have built only debug - is this an issue too?

Thanks, J.

Max Gittelman

unread,
Nov 10, 2016, 11:10:25 PM11/10/16
to Caffe Users
I have the exact same issue, I'm not sure what the second post is about. is that the solution? it's unclear to me where `convert_mnist_data-d.bin` came from.


On Monday, September 12, 2016 at 9:16:52 PM UTC-4, J wrote:
Reply all
Reply to author
Forward
0 new messages