facebookarchive / caffe2

Caffe2 is a lightweight, modular, and scalable deep learning framework.
https://caffe2.ai
Apache License 2.0
8.42k stars 1.95k forks source link

LMDB error on Ubuntu #979

Open AakashKumarNain opened 7 years ago

AakashKumarNain commented 7 years ago

I was going through the MNIST tutorial and I ran into the following error:

RuntimeError: [enforce fail at db.h:190] db_. Cannot open db: /home/Aakash/caffe2_notebooks/tutorial_data/mnist/mnist-train-nchw-lmdb of type lmdb Error from operator: 
output: "dbreader_/home/Aakasht/caffe2_notebooks/tutorial_data/mnist/mnist-train-nchw-lmdb" name: "" type: "CreateDB" arg { name: "db_type" s: "lmdb" } arg { name: "db" s: "/home/Aakash/caffe2_notebooks/tutorial_data/mnist/mnist-train-nchw-lmdb" }

How should I resolve it?

aaronmarkham commented 7 years ago

You should see something like this if you are running it for the first time:

one or both of the MNIST lmbd dbs not found!!
Downloading... http://download.caffe2.ai/databases/mnist-lmdb.zip to /Users/aaronmarkham/caffe2_notebooks/tutorial_data/mnist
Completed download and extraction.
Looks like you ran this before, so we need to cleanup those old files...
training data folder:/Users/aaronmarkham/caffe2_notebooks/tutorial_data/mnist
workspace root folder:/Users/aaronmarkham/caffe2_notebooks/tutorial_files/tutorial_mnist

It downloads the database zip then extracts the databases into mnist-test-nchw-lmdb/ and mnist-train-nchw-lmdb/. Did you get those? Inside each folder is data.mdb and lock.mdb.

Ahmedfcis commented 6 years ago

same problem looks like some lib is missed

rix161 commented 6 years ago

Hello, I am facing the same issue, Can anyone please give me some pointers to resolve the problem? @AakashKumarNain @aaronmarkham @Ahmedfcis Thank you!

wywwork commented 6 years ago

I am facing the same issue, Can anyone please give me some pointers to resolve the problem?