rcnn icon indicating copy to clipboard operation
rcnn copied to clipboard

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

Open kaishenchang opened this issue 9 years ago • 5 comments

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 avatar Apr 09 '15 14:04 kaishenchang

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 avatar Apr 11 '15 04:04 kaishenchang

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

DaChaoXc avatar Oct 11 '15 13:10 DaChaoXc

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

amirkhango avatar Mar 08 '16 02:03 amirkhango

@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

IGOJUNGOLIU avatar Sep 20 '16 07:09 IGOJUNGOLIU

Can you tell me how to make CPU only?

xzy295461445 avatar Apr 17 '17 11:04 xzy295461445