ShaoqingRen / faster_rcnn

Faster R-CNN
Other
2.7k stars 1.22k forks source link

Error running script_faster_rcnn_demo.m #94

Open strivingyu opened 8 years ago

strivingyu commented 8 years ago

When i run script_faster_rcnn_demo.m in Matlab, i got the following message: fastrcnn startup done GPU 1: free memory 12375916544 Use GPU 1 Undefined function 'caffe' for input arguments of type 'char'.

Error in caffe.setdevice (line 9) caffe('set_device', device_id);

Error in active_caffe_mex (line 26) caffe.set_device(gpu_id-1);

Error in script_faster_rcnn_demo (line 10) active_caffe_mex(opts.gpu_id, opts.caffe_version);

Can anyone tell me how to solve this problem. I am a new to matlab,many thanks!

codesteller86 commented 8 years ago

Hi @strivingyu . As it says 'caffe_' is undefined. Have you run the fetch_data/fetch_caffe_mex_windows_vs2013_cuda65.m?

strivingyu commented 8 years ago

@devilwarz , I run this code under Ubuntu14.0.4 ,not in windows.

yossibiton commented 8 years ago

You should have compiled caffe (with matlab wrapper compiled too) under external/caffe in faster_rcnn folder. Pay attention it's not the original master branch of caffe but other fork built for faster_rcnn.

derekwong66 commented 7 years ago

did u fix this problem? I also run this code under Linux environment

yuyifan1991 commented 7 years ago

yeah, I have fixed the problem. Did you have some problems?

derekwong66 commented 7 years ago

how to fix it? cuz I think other fork built for faster_rcnn is for window version. However, I am working on Linux environment. but I met the same problem mentioned above.

yuyifan1991 commented 7 years ago

For faster-rcnn, I'm just tun through in Linux, and I just have some researches on SSD, recently. For your problem,I think maybe you can have a modify in Makefile.config file.

Jolntu commented 6 years ago

how should i modify the Makefile.config?