rcnn icon indicating copy to clipboard operation
rcnn copied to clipboard

caffe('get_init_key') Undefined function 'caffe' for input arguments of type 'char'.

Open NHZlX opened this issue 9 years ago • 9 comments

i installed caffe, and clone the rcnn, and i also run the startup.m rcnn_build.m with no error ,but when i try to run key = caffe('get_init_key'), i got the following message.

caffe('get_init_key') Undefined function 'caffe' for input arguments of type 'char'.

I can use matcaffe like caffe.set_mode_gpu(), but I can't use caffe('set_mode_gpu'). anybody can give me the appropriate solution for the problem Please help.

NHZlX avatar Jan 21 '16 08:01 NHZlX

Were you able to get answers to your question? I am hitting the same issue and not sure what the solution is.

jainanshul avatar Feb 27 '16 22:02 jainanshul

@jainanshul yeah. Using the caffe of current version may be a leading cause of errors. U can try the following version of caffe: https://github.com/BVLC/caffe/archive/v0.999.tar.gz

NHZlX avatar Feb 28 '16 12:02 NHZlX

Thanks, I got it working withe v0.999 version.

jainanshul avatar Feb 28 '16 17:02 jainanshul

I cannot compile make matcaffe for 0.999 it kept printing linker error from libcaffe.a

nguyenminhduc9988 avatar Jun 03 '16 14:06 nguyenminhduc9988

I solve it by link the caffe_.mexa64 which is build by make matcaffe to the folder rcnn/bin by below command:

$ ln -s $CAFFE_ROOT/matlab/caffe/private/caffe_.mexa64 $RCNN_ROOT/bin/caffe.mexa64

After make a symlink like this, caffe is found by matlab, but my caffe('get_init_key') get a random key id such as 2.6446e+09, and it is not equal to -2 which is referred in readme file, I don't know why T^T . Now I'm downing the pre-trained model and try to run demo of rcnn.

Hope I can help you ^_^

WideLee avatar Jul 06 '16 04:07 WideLee

@WideLee HI ,did you successfully run demo of rcnn? I meet the same question. thanks!

dorioliu avatar Dec 28 '17 17:12 dorioliu

@dorioliu Have you tried the method I mentioned above?

WideLee avatar Jan 03 '18 08:01 WideLee

@WideLee sorry ,i havn't tried it ,did you successfully run demo of rcnn through you got a strange caffe('get_init_key') value ? i will try it latter.

dorioliu avatar Jan 03 '18 08:01 dorioliu

@dorioliu It's a year ago, I'm not sure right now. You can try Faster R-CNN or Mask R-CNN for faster and more accurate result. 😄

WideLee avatar Jan 03 '18 08:01 WideLee