faster_rcnn
faster_rcnn copied to clipboard
A solution for Invalid MEX-file (matlab can not find caffe_.mexw64)
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.
can u provide your caffe_mex64 of the cpu version?Thank u very mech. My gmail is [email protected].