已放棄(核心已轉儲)
如果出現:
I1221 10:24:19.919129 12934 layer_factory.hpp:77] Creating layer mnist
I1221 10:24:19.919893 12934 net.cpp:100] Creating Layer mnist
I1221 10:24:19.919911 12934 net.cpp:408] mnist -> data
I1221 10:24:19.919946 12934 net.cpp:408] mnist -> label
F1221 10:24:19.920819 12938 db_lmdb.hpp:15] Check failed: mdb_status == 0 (13 vs. 0) Permission denied
*** Check failure stack trace: ***
@ 0x7ff7320d9daa (unknown)
@ 0x7ff7320d9ce4 (unknown)
@ 0x7ff7320d96e6 (unknown)
@ 0x7ff7320dc687 (unknown)
@ 0x7ff7328036e1 caffe::db::LMDB::Open()
@ 0x7ff7327ec224 caffe::DataReader::Body::InternalThreadEntry()
@ 0x7ff732830bd0 caffe::InternalThread::entry()
@ 0x7ff727d42a4a (unknown)
@ 0x7ff7275fa184 start_thread
@ 0x7ff730a0d37d (unknown)
@ (nil) (unknown)
已放棄 (核心已轉儲)
導致原因:
由於你編譯caffe時使用了管理員許可權(管理員許可權是指在shell指令碼的最前面添加了命令sudo),導致你再使用caffe時,不使用管理員許可權就執行不了,也就是你許可權不夠。
解決方案:
在執行程式時賦予管理員許可權,也就是新增sudo。事例如下:
sudo ./build/tools/caffe time -model examples/mnist/lenet_train_test.prototxt -iterations 10