rbgirshick/rcnn

Can't run rcnn_demo: Unknown command 'set_phase_test'

xzyaoi opened this issue · 12 comments

I'm using the latest version of Caffe and Matlab R2014a in Ubuntu 14.04.

It seems that everything works fine until I met this error:

image

and I located this error in rcnn_load_model.m

image

I've searched it on Google but it seems nothing helps... :-(

I'm really a newbie to Caffe and rcnn.Should I use an earlier version of Caffe or Matlab? If not, What should I do to fix this problem?

Thanks.

I commented this line

caffe('set_phase_test')

Then things seems to be right:

image

But later, Matlab crushed.

In the different version of Caffe, I've found some different. In Caffe v0.999, there is an public API which is set_phase_test while in the latest version of Caffe, there isn't and in the init, it accept the phase name.

So, if I commented it, it should work fine.

@stevefermi
Hi, i encounter matlab error like this. -> "Unknown command 'init' " not 'set_phase_test' ...
how can i fix it.. Would you tell me solution..?

@blackCmd if you are using the latest version of rcnn and caffe, there's not an command named "set phase_test". You could try to just comment this line or delete it.

@stevefermi you're right. latest caffe dosen't have the command.
i've solved. thanks

tomoc commented

@stevefermi
Hi.I'm using the caffe-fc2 and Matlab R2015a in Ubuntu 14.04.
I get the same error to comment it.
I have no idea...

@tomoc I am so sorry to reply you so late... But whatever, you could try to comment

caffe('set_phase_test')

or delete it.

If it doesn't work, please let me know.

@blackCmd
Hi, I meet a similar error. I 'm using Caffe v0.999 downloaded from readme of this repository and matlab2014a on Ubuntu14.04, but got this error below:

Error using caffe
Unknown command 'init'

Do you have any idea about how to fix it?

@blackCmd I have the problem,I do not know how to deal with it.And my caffe is caffe-master.Have you any ideals?

Welcome to the PASCAL demo
Running in GPU mode
(To run in CPU mode, call rcnn_demo(demo_choice, 0) instead)
Press any key to continue
Initializing R-CNN model (this might take a little while)
Error using caffe
Unknown command 'init'

Error in rcnn_load_model (line 27)
rcnn_model.cnn.init_key = ...

Error in rcnn_demo (line 61)
rcnn_model = rcnn_load_model(rcnn_model_file, use_gpu);

@blackCmd 请问你是怎么解决你的问题的?

@DeeperCS sorry... did you solve??

@IGOJUNGOLIU it is very old comment.. So i can't remember correctly.
I remember that i did't use caffe-master. Because it doesn't work. So i use caffe-0.999 with R-CNN.
You looks know about caffe and R-CNN. I wish you solve the error. Thanks.