The original Caffe-MNIST example accepts data in the LMDB format. It uses convert_mnist_data.cpp to convert data into LMDB. If you want to use the original Caffe-MNIST example for your specific task ...