Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
NHZlX opened this issue Jan 21, 2016 · 9 comments

Comments

@NHZlX
Copy link

NHZlX commented Jan 21, 2016

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.

@jainanshul
Copy link

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

@NHZlX
Copy link
Author

NHZlX commented Feb 28, 2016

@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

@jainanshul
Copy link

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

@nguyenminhduc9988
Copy link

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

@WideLee
Copy link

WideLee commented Jul 6, 2016

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 ^_^

@dorioliu
Copy link

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

@WideLee
Copy link

WideLee commented Jan 3, 2018

@dorioliu Have you tried the method I mentioned above?

@dorioliu
Copy link

dorioliu commented Jan 3, 2018

@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.

@WideLee
Copy link

WideLee commented Jan 3, 2018

@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. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants