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
Alexandra Mlodzinski 2016년 7월 4일
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