我正在尝试使用caffe训练网络,但是我收到了一个未找到文件的例外:
I0111 11:19:27.339706 5151 layer_factory.hpp:76] Creating layer data
I0111 11:19:27.340117 5151 net.cpp:106] Creating Layer data
I0111 11:19:27.340126 5151 net.cpp:411] data -> data
I0111 11:19:27.340154 5151 net.cpp:411] data -> label
I0111 11:19:27.340165 5151 data_transformer.cpp:25] Loading mean file from: /home/myUser/Documents/code/RFNN/data/ILSVRC2012/10class/imagenet_mean_10biggest.binaryproto
F0111 11:19:27.340873 5157 db_lmdb.hpp:14] Check failed: mdb_status == 0 (2 vs. 0) No such file or directory
*** Check failure stack trace: ***
@ 0x7f7f1c8f35cd google::LogMessage::Fail()
@ 0x7f7f1c8f5433 google::LogMessage::SendToLog()
@ 0x7f7f1c8f315b google::LogMessage::Flush()
@ 0x7f7f1c8f5e1e google::LogMessageFatal::~LogMessageFatal()
@ 0x7f7f1d032532 caffe::db::LMDB::Open()
@ 0x7f7f1cfe9966 caffe::DataReader::Body::InternalThreadEntry()
@ 0x7f7f1cfdfc25 caffe::InternalThread::entry()
@ 0x7f7f127285d5 (unknown)
@ 0x7f7f11fd66ba start_thread
@ 0x7f7f1be6c82d clone
@ (nil) (unknown)
Aborted (core dumped)
可能存在导致错误的各种事情,但这个特定文件似乎确实存在。我已经将路径更改为绝对路径,检查拼写(在这个确切的文件夹中确实存在具有此确切名称的文件)并双重检查要读写的文件的权限。
当文件似乎存在时,难以找到此错误的原因。我的意思是,还有什么可能的原因?
所以我的问题是:有谁知道这个错误的原因是什么?
编辑:根据要求,输出ls -ltrh /home/myUser/Documents/code/RFNN/data/ILSVRC2012/10class/imagenet_mean_10biggest.binaryproto
:
-rwxrwxr-x 1 myUser myUser 769K jan 10 16:39 /home/myUser/Documents/code/RFNN/data/ILSVRC2012/10class/imagenet_mean_10biggest.binaryproto
我假设原型文件的相关部分是:
name: "rfnn_ILSVRC2012_Small"
layer {
top: "data"
top: "label"
name: "data"
type: "Data"
data_param {
source: "/home/myUser/Documents/code/RFNN/data/ILSVRC2012/10class/ilsvrc12_train_lmdb_10biggest"
backend: LMDB
batch_size: 32
}
transform_param {
crop_size: 224
mirror: true
mean_file: "/home/myUser/Documents/code/RFNN/data/ILSVRC2012/10class
/imagenet_mean_10biggest.binaryproto"
}
include: { phase: TRAIN }
}
layer {
top: "data"
top: "label"
name: "data"
type: "Data"
data_param {
source: "/home/myUser/Documents/code/RFNN/data/ILSVRC2012/10class/ilsvrc12_val_lmdb_10biggest"
backend: LMDB
batch_size: 32
}
transform_param {
crop_size: 224
mirror: false
mean_file: "/home/myUser/Documents/code/RFNN/data/ILSVRC2012/10class/imagenet_mean_10biggest.binaryproto"
}
include: { phase: TEST }
}
答案 0 :(得分:2)
你的卑鄙文件确实存在,但这不是caffe抱怨的
你的数据库文件'/home/myUser/Documents/code/RFNN/data/ILSVRC2012/10class/ilsvrc12_train_lmdb_10biggest'
怎么样?它在正确的位置吗?
No such file or directory
只能表示有No such file or directory
吗?
是