the Undefined function 'caffe_' for input arguments of type 'char' 解决办法

来源:互联网 发布:原油软件 编辑:程序博客网 时间:2024/05/18 01:51

the Undefined function 'caffe_' for input arguments of type 'char'原因是caffe_函数没有被定义。

可以使用指令:which caffe_,查找一下caffe_文件的位置(出现该错误后,一般是查不到的),如果查到它所在路径,直接把路径加到MATLA,可以参考:

if exist('../+caffe', 'dir')
  addpath('..');
else
  error('Please run this demo from caffe/matlab/demo');
end

查询不到caffe_文件所在位置,可以在终端caffe-master路径下运行:make matcaffe,这时会在../../matlab/+caffe/private/下生成caffe_.mexa64文件,此时再运行代码,the Undefined function 'caffe_' for input arguments of type 'char'的提示就会消失。

0 0