rcnn
rcnn copied to clipboard
Can't run 'rcnn_demo' in Matlab(CPU Mode)
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
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.
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.
@kaishenchang hi,it means if i want to run rcnn,i must install caffe v0.999 and matlab 2012b?
@DaChaoXc I dont wanna to change caffe and matlab version, so is there another method?
@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
Can you tell me how to make CPU only?