[Help] what is convert_mnist_data.bin?

717 views
Skip to first unread message

denny dharmawan

unread,
Feb 29, 2016, 12:34:11 AM2/29/16
to Caffe Users
Hi, Can anyone tell me convert_mnist_data.bin is? I'm using caffe for windows. I ran create_mnist.sh but it said convert_mnist_data.bin not found. 

So I improvised by creating the requested folder.But it said:
Creating lmdb...
examples/mnist/create_mnist.sh: line 16: examples/mnist/convert_mnist_data.bin:Is a directory
examples/mnist/create_mnist.sh: line 18: examples/mnist/convert_mnist_data.bin:Is a directory
Done.

and I've got nothing on the folder. is it a directory? Could anyone please tell me how to do this on windows? I use git bash to run the shell command

Best Regards,
Denny

Jan C Peters

unread,
Feb 29, 2016, 3:29:16 AM2/29/16
to Caffe Users
It is not a directory, it is a binary (an executable program) that is compiled along with the other caffe binaries. Its purpose is to create an LMDB suited for caffe from the raw MNIST data downloaded from the official website. Its code is in the same folder (caffe/examples/mnist).

Jan

Joshua Slocum

unread,
Feb 29, 2016, 11:48:21 AM2/29/16
to denny dharmawan, Caffe Users
The .sh scripts are written for a unix environment. They won't work on windows [you might have *some* luck trying them in cygwin].

If you're using this caffe port: https://github.com/Microsoft/caffe then you should note that it doesn't come with a project to build convert_mnist_data and you'll have to make your own. I attempted this last week and didn't have any success, but I did get the CIFAR10 example to work with minimal finagling. 

Josh

--
You received this message because you are subscribed to the Google Groups "Caffe Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to caffe-users...@googlegroups.com.
To post to this group, send email to caffe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/caffe-users/84ad2620-a0f0-4f12-a5ac-04ea8871e70b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

denny dharmawan

unread,
Feb 29, 2016, 9:47:15 PM2/29/16
to Joshua Slocum, Caffe Users

Dear Joshua,

I managed to get caffe run the mnist example with https://dl.dropboxusercontent.com/u/3466743/caffe-vs2012/mnist-leveldb.7z.

That's the leveldb dataset which I got from https://github.com/niuzhiheng/caffe/blob/windows/examples/mnist/get_mnist_leveldb.bat

 

Run caffe train -solver examples/mnist/lenet_solver.prototxt from caffe root for training the model.

Best Regards,
Denny

Reply all
Reply to author
Forward
0 new messages