2017-02-24 46 views
0

我用朱古力训练我CNN.When我转移我的数据使用工具'convert_imageset'的lmdb格式,它报告错误:来自Caffe convert_imageset:符号查找错误

/convert_imageset: symbol lookup error: ../../build/tools/convert_imageset: undefined symbol: _ZN5caffe16ReadImageToDatumERKSsiiiiibS1_PNS_5DatumE 

我怎么能解决呢?

回答

2

你缺少的符号功能:

caffe::ReadImageToDatum(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, int, int, int, int, bool, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, caffe::Datum*) 

(可以使用c++filt外壳实用程序从你在你的错误信息得到了符号恢复此)

丢失的功能在声明io.hpp文件,但其在io.cpp中的实现取决于USE_OPENCV指令(请参阅BVLC/caffe issue #5329)。

USE_OPENCV := 1'Makefile.config'重建你的咖啡。