-
Notifications
You must be signed in to change notification settings - Fork 18.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check failed: mdb_status == 0 (2 vs. 0) No such file or directory #2780
Comments
@p4tr1ckc4rs0n, I am also suffering from the same problem....anyone please advise.. |
@lukeyeager the only other thing i changed in the Data layers for caffe model: name: "CaffeNet" data_param { data_param { This is my net: "/home/pwhc/caffe/GPRLearn/Models/train_val.prototxt" |
Ok I guess the log message was just confusing me. Nevermind. Can you check that $ ls /home/pwhc/caffe/GPRLearn/lmdb/GPR_train_lmdb/
data.mdb lock.mdb |
Closing as this looks like a usage issue; it's very likely that a path to one of your LMDBs is not correct (e.g., are your train and test LMDBs really in different directories?). Please ask usage questions on caffe-users. If you do think there is a bug in Caffe, you're welcome to open a new issue according to https://github.com/BVLC/caffe/wiki/Reporting-Bugs-and-Other-Issues. Thanks! |
Dear @longjon I would highly appreciate if you kindly respond. |
I had the same error but then I realised that I did not have access to the lmdb folder (try cd into the lmdb folder). By changing permissions I got rid of the error |
@lukeyeager My cifar10_full_train_test.prototxt : |
I have the same problem. Then I notice the path to the LMDB is relative path, and the system can't find it. |
@wakemeupJ what do you mean it's a relative path? I use the absolute path, but it still gives the same error |
I solved this issue by changing normal user to root, |
try to convert data into lmdb |
it turns out to be that lmdb file path should be absolute path or execute the scripts in caffe root. |
check your path name in make_imagenet_mean.sh , there might be typing error . |
I found a solution to this. Kindly read the readme.md file in directory of the train and test data e.g. cifar10. But firstly, caffe must be compiled successfully because a build file will be generated after a successful compilation which will be used as a path when running the command specified in the readme file. |
Upon running ./train_caffenet.sh; creating the training layer data, setting up the data, loading the training mean.binaryproto file and opening the training lmdb all works.
However when it comes to loading the test mean.binaryproto file for the test data I get the following error:
Loading mean file from: /home/pwhc/caffe/Learn/imagenet_mean_test.binaryproto
F0716 13:12:13.917732 3385 db.hpp:109] Check failed: mdb_status == 0 (2 vs. 0) No such file or directory
*** Check failure stack trace: ***
@ 0x7f8337946daa (unknown)
@ 0x7f8337946ce4 (unknown)
@ 0x7f83379466e6 (unknown)
@ 0x7f8337949687 (unknown)
@ 0x7f8337cbf5be caffe::db::LMDB::Open()
@ 0x7f8337d16b82 caffe::DataLayer<>::DataLayerSetUp()
@ 0x7f8337d806f9 caffe::BasePrefetchingDataLayer<>::LayerSetUp()
@ 0x7f8337ca3db3 caffe::Net<>::Init()
@ 0x7f8337ca5b22 caffe::Net<>::Net()
@ 0x7f8337cb0a24 caffe::Solver<>::InitTestNets()
@ 0x7f8337cb111b caffe::Solver<>::Init()
@ 0x7f8337cb12e6 caffe::Solver<>::Solver()
@ 0x40c4c0 caffe::GetSolver<>()
@ 0x406503 train()
@ 0x404ab1 main
@ 0x7f8336e58ec5 (unknown)
@ 0x40505d (unknown)
@ (nil) (unknown)
Aborted (core dumped)
I modified the train_val.prototxt to point to the appropriate mean.binaryproto files (using absolute paths) and have checked and double checked to make sure the paths match up
Any thoughts would be greatly appreciated!
The text was updated successfully, but these errors were encountered: