使用caffe创建内部产品图层时出错

时间:2017-04-26 21:26:30

标签: machine-learning neural-network deep-learning caffe inner-product

E0426 16:55:44.986892  4273 io.cpp:80] Could not open or find file 
F0426 16:55:45.023268  4273 image_data_layer.cpp:129] Check failed: cv_img.data Could not load 
*** Check failure stack trace: ***
@     0x7f2f16c335cd  google::LogMessage::Fail()
@     0x7f2f16c35433  google::LogMessage::SendToLog()
@     0x7f2f16c3315b  google::LogMessage::Flush()
@     0x7f2f16c35e1e  google::LogMessageFatal::~LogMessageFatal()
@     0x7f2f1714491d  caffe::ImageDataLayer<>::load_batch()
@     0x7f2f171470fa  caffe::BasePrefetchingDataLayer<>::InternalThreadEntry()
@     0x7f2f16fbfe7e  boost::detail::thread_data<>::run()
@     0x7f2f143455d5  (unknown)
@     0x7f2f13bf36fa  start_thread
@     0x7f2f15c8ab5d  clone
@              (nil)  (unknown)
Aborted (core dumped)

1 个答案:

答案 0 :(得分:1)

查看您收到的错误消息:

F0426 16:55:45.023268  4273 image_data_layer.cpp:129] Check failed: cv_img.data Could not load

首先,错误来自'image_data_layer.cpp:129',即$CAFFE_ROOT/src/caffe/layers/image_data_layer.cpp行129中的第129行。请检查此行。您会看到,当caffe无法加载"ImageData"图层提供的输入图像文件时,会发生此错误。
检查所有输入图像是否存在且文件是否已损坏。

此错误与"InnerProduct"图层无关。