rcnn icon indicating copy to clipboard operation
rcnn copied to clipboard

Can't run rcnn_demo: Unknown command 'set_phase_test'

Open xzyaoi opened this issue 9 years ago • 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.

xzyaoi avatar Jun 15 '15 06:06 xzyaoi

I commented this line

caffe('set_phase_test')

Then things seems to be right:

image

But later, Matlab crushed.

xzyaoi avatar Jun 15 '15 10:06 xzyaoi

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.

xzyaoi avatar Jun 15 '15 14:06 xzyaoi

@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 avatar Aug 03 '15 22:08 blackCmd

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

xzyaoi avatar Aug 04 '15 14:08 xzyaoi

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

blackCmd avatar Aug 05 '15 16:08 blackCmd

@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 avatar Jan 07 '16 05:01 tomoc

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

xzyaoi avatar Mar 12 '16 14:03 xzyaoi

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

DeeperCS avatar Apr 07 '16 12:04 DeeperCS

@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);

IGOJUNGOLIU avatar Sep 08 '16 06:09 IGOJUNGOLIU

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

IGOJUNGOLIU avatar Sep 09 '16 03:09 IGOJUNGOLIU

@DeeperCS sorry... did you solve??

blackCmd avatar Sep 17 '16 15:09 blackCmd

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

blackCmd avatar Sep 17 '16 15:09 blackCmd