【问题标题】:Caffe convert_imageset: symbol lookup errorCaffe convert_imageset:符号查找错误
【发布时间】:2017-07-14 18:38:40
【问题描述】:

我用caffe训练我的CNN,当我使用工具'convert_imageset'将数据转成lmdb格式时,报错:

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

我该如何解决??

【问题讨论】:

    标签: c++ opencv neural-network deep-learning caffe


    【解决方案1】:

    你缺少的符号是函数:

    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 shell 实用程序从错误消息中的符号中恢复)

    缺少的函数在io.hpp 文件中声明,但它在io.cpp 中的实现取决于USE_OPENCV 指令(参见BVLC/caffe issue #5329)。

    'Makefile.config' 中使用USE_OPENCV := 1 重新构建您的caffe。

    【讨论】:

      猜你喜欢
      • 2017-06-30
      • 1970-01-01
      • 2015-02-06
      • 2017-07-12
      • 2018-02-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多