faster_rcnn icon indicating copy to clipboard operation
faster_rcnn copied to clipboard

A solution for Invalid MEX-file (matlab can not find caffe_.mexw64)

Open a980410 opened this issue 8 years ago • 1 comments

Because of my poor GPU,matlab 2014a can not support my GPU.So I ran the demo on CPU. At first,I met the "Invalid MEX-file" error. I tired the GPU mode.Of course it failed. Then I ran demo on CPU,It worked fine until I close matlab.

I don't know why it happen.

*Now I have to run GPU mode with this codes * : opts.caffe_version = 'caffe_faster_rcnn'; opts.gpu_id = auto_select_gpu; active_caffe_mex(opts.gpu_id, opts.caffe_version);

Then annotate them and run demo on CPU: % opts.caffe_version = 'caffe_faster_rcnn'; % opts.gpu_id = auto_select_gpu; % active_caffe_mex(opts.gpu_id, opts.caffe_version); ... % opts.use_gpu = true; opts.use_gpu = false;

By this way,the demo works fine.It takes 3~4 sec per image on CPU. my computer is windows 7 SP1 ,matlab 2014a and VC++2013.IF you have the "Invalid MEX-file" error and can not solve it,try my way.

a980410 avatar Apr 22 '16 03:04 a980410

can u provide your caffe_mex64 of the cpu version?Thank u very mech. My gmail is [email protected].

chenzhi1992 avatar Dec 23 '16 05:12 chenzhi1992