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 view (last 30 days)
Show older comments
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 Comments
Image Analyst
on 4 Jul 2016
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
on 4 Jul 2016
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 ...
Answers (1)
liang shuaibing
on 11 Feb 2019
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.
0 Comments
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!