rcnn icon indicating copy to clipboard operation
rcnn copied to clipboard

key=caffe('get_init_key')

Open sachinky opened this issue 10 years ago • 24 comments

When I run key=caffe('get_init_key') in matlab I get the following: Undefined function 'caffe' for input arguments of type 'char'.

Unable to track what is the problem. Please help.

sachinky avatar Aug 23 '14 14:08 sachinky

I met the same problem with you, have you resolved it@sachinky? I use matlab 2014a in ubuntu 14.04.

czhsuccess avatar Aug 27 '14 03:08 czhsuccess

I had this problem a few days ago. The root cause for me was that 'make matcaffe' produced a file in the MATLAB subdir called 'caffe..mexa64' instead of 'caffe.mexa64.' I see a recent-ish change in the Caffe makefile that puts then dots in the filename. Could fix the make file, or just symlink caffe..mexa64 to caffe.mexa64.

Hope this helps!

forresti avatar Aug 27 '14 03:08 forresti

We have the same problem but differents reasons@forresti, the name of the producced file produced is 'caffe.mexa64' in my machine. Thank you all the same. I solved the problem by changing Matlab's edition from 2014a to 2013a and it works.

czhsuccess avatar Aug 27 '14 08:08 czhsuccess

Make sure also to run startup.m

mostafa-saad avatar Apr 21 '15 21:04 mostafa-saad

I have the same problem. I can use matcaffe like caffe.set_mode_gpu(), but I can't use caffe('set_mode_gpu').

xyy19920105 avatar Sep 16 '15 08:09 xyy19920105

I met the same problem, anybody can give me the appropriate solution for the problem. I use matlab 2014a in ubuntu 14.04.

ghost avatar Oct 07 '15 13:10 ghost

I solved it by changing another version of caffe. The version which has problem is not a release version. you guys can download the lastest release version of caffe.

xyy19920105 avatar Oct 23 '15 07:10 xyy19920105

@xyy19920105 I have tested with both caffe-0.999 and caffe-master, but its give me the same error.

ghost avatar Oct 23 '15 07:10 ghost

@sachinky I used the caffe version called caffe-rc2, the latest release version.

xyy19920105 avatar Oct 23 '15 07:10 xyy19920105

@xyy19920105 where do you downloaded "caffe-rc2", as far my knowledge the latest version of caffe is "caffe-master" . Can you give the link of "caffe-rc2". Thanks

ghost avatar Oct 23 '15 07:10 ghost

@sainisanjay Firstly, i'm sorry for @ the wrong id, cause you have the similar id . You can dowonload that release version at https://github.com/BVLC/caffe/releases, the first one.

xyy19920105 avatar Oct 23 '15 07:10 xyy19920105

Can download a new caffe solve the problem?

Wu950212 avatar Nov 18 '15 07:11 Wu950212

@sachinky Can download a new caffe solve the problem? thanks a lot

Wu950212 avatar Nov 18 '15 07:11 Wu950212

I use the caffe-rc2, and can use matcaffe. But, matlab appears busy. I use matlab R2015a or R2012a in ubuntu14.04.

tomoc avatar Dec 08 '15 06:12 tomoc

I solved it. Thanks!!

tomoc avatar Dec 18 '15 04:12 tomoc

@tomoc how did you solve this problem?thx! I use caffe-master and matlab2014a in ubuntu14.04

she-huanbo avatar Jan 20 '16 14:01 she-huanbo

@xyy19920105 I use the caffe-rc2, the configuration is right.But I can't run the >>rcnn_demo successfully.Do you know the problem?

`>> rcnn_demo

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)
WARNING: Logging before InitGoogleLogging() is written to STDERR
E0418 11:45:31.859096  1587 matcaffe.cpp:18] Expected 2 arguments, got 2
Error using caffe
Expected 2 arguments, got 2

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

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

choasup avatar Apr 18 '16 04:04 choasup

@czhsuccess @eesnake I met the same problems with you, have you solved it? And could you tall me how to do to deal it?thanks

SuperLee0 avatar May 31 '16 09:05 SuperLee0

@choasUp have you solve the problem(error using caffe)?

SuperLee0 avatar Jun 01 '16 02:06 SuperLee0

I have solved it, I used the caffe-rc2. Thanks.

在 2016-06-01 10:57:44,SuperLee0 [email protected] 写道:

@choasUp have you solve the problem(error using caffe)?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

choasup avatar Jun 05 '16 04:06 choasup

how do i download caffe-rc2 ? https://github.com/BVLC/caffe/releases only shows rc3.

anyone have a video to make caffe matlab windows work ? this thing is driving me insane

cschuaa avatar Jun 13 '16 05:06 cschuaa

i trying to run classification_demo

cschuaa avatar Jun 13 '16 05:06 cschuaa

@choasUp HI I encountered the same problem,I cannot solve it.Can you tell me how to solve it?Thanks.

IGOJUNGOLIU avatar Sep 08 '16 07:09 IGOJUNGOLIU

HI,did you solved this problem : Undefined function 'caffe' for input arguments of type 'char'. thanks!

dorioliu avatar Dec 28 '17 17:12 dorioliu