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

Can't run 'rcnn_demo' in Matlab(CPU Mode) #39

Open
kaishenchang opened this issue Apr 9, 2015 · 5 comments
Open

Can't run 'rcnn_demo' in Matlab(CPU Mode) #39

kaishenchang opened this issue Apr 9, 2015 · 5 comments

Comments

@kaishenchang
Copy link

Hello,

First of all, thank you for providing a well documented tutorial for rcnn.

I followed the tutorial. I got to the point where I executed the command:

key = caffe('get_init_key');

and it returns me -2 as the tutorial says. Everything seemed to be going well until that point. When I tried running `rcnn_demo('ILSVRC13', 0) ; I got this

image

I traced the execution flow of the program and I found out that it stopped at here:

rcnn_model.cnn.init_key = ...
caffe('init', rcnn_model.cnn.definition_file, rcnn_model.cnn.binary_file);

It already passes 3 arguments to caffe. Why does MATLAB still output the following error message?

Error using caffe
Expected 3 arguments, got 2

And MATLAB also displays a warning:

Warning: Could not find appropriate function on path loading function handle
/home/rbg/working/rcnn-ilsvrc/imdb/imdb_from_ilsvrc13.m>@(i)fullfile(imdb.image_dir,[imdb.image_ids{i},'.',imdb.extension])

In rcnn_load_model at 21
In rcnn_demo at 59

/home/rbg/working/rcnn-ilsvrc/imdb/imdb_from_ilsvrc13.m>@(i)fullfile(imdb.image_dir,[imdb.image_ids{i},'.',imdb.extension]) seems to be a path on Dr. Girshick's(the writer) computer. This is very strange. Does this warning matter?

I use the latest version of Caffe and MATLAB 2014a to run the code.

@kaishenchang
Copy link
Author

Solved it. It turns out that the latest version of Caffe changed some of its matlab intefaces. Caffe v0.999 and Matlab 2012b are needed to run rcnn.

@DaChaoXc
Copy link

@kaishenchang
hi,it means if i want to run rcnn,i must install caffe v0.999 and matlab 2012b?

@amirkhango
Copy link

@DaChaoXc I dont wanna to change caffe and matlab version, so is there another method?

@IGOJUNGOLIU
Copy link

@kaishenchang My caffe version is caffe-rc2,and I run the command key=caffe('get_init_key');It returns -2. When I do the rcnn_demo,I encountered the same problem .Is it necessary to run in caffe v0.999? Can caffe V0.999 run in CPU model?I hope you can help me.Thanks
rcnn_demo

@xzy295461445
Copy link

Can you tell me how to make CPU only?

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