How can I solve this problem while adding path for 'Caffe'? (Warning: Function version has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.)

1 次查看(过去 30 天)
I'm trying to run an open source code of the paper 'Convolution Channel Features' in my Ubuntu 14.04.3 LTS.
I installed MATLAB R2015a, downloaded Caffe, successfully built and tested it (without any failure), and also downloaded 'piotr's matlab toolbox'.
The problem is that when I run the code, I get an error like the image below.
.
.
.
.
cnnPyramid just calls addpath function in line 13, as below.
.
.
The directory ~/caffe/matlab/ looks like this.
.
.
I tried changing line 13 to
addpath(['~/caffe' '/matlab/']);
In this case, the warning disappears, but 'Undefined function or variable 'caffe' error still exists.
I also tried following, but here another warning occurs.
addpath(['~/caffe' '/matlab/+caffe']);
.
.
I guess that the error "Undefined function or variable 'caffe'" occurs because of this warning, but I couldn't figure out the way to solve this problem.
How can I solve this problem? Any help would be appreciated.
Thanks.
  5 个评论
Image Analyst
Image Analyst 2016-7-4
It all comes down to having wherever caffe lives on the search path. Make sure it does with setpath(). When you type path, does its folder show up on the list?
Alexandra  Mlodzinski
What folder or file do I need in the path exactly? I have a lot of folders in the path and the folders with all the caffe files are in it ...

请先登录,再进行评论。

回答(1 个)

liang shuaibing
liang shuaibing 2019-2-11
hello ,have you solve this complex problem? I also have this error when I add caffe path to matlab .can you teach me how you solve this problem ?thank you very much.

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by