faster_rcnn icon indicating copy to clipboard operation
faster_rcnn copied to clipboard

Matlab stuck at initialization for training

Open deartonym opened this issue 9 years ago • 8 comments

I am using Matlab R2013b, and I can run testing perfectly. However when I do training (e.g., VOC2007 on ZF net), the process gets stuck at

caffe_solver = caffe.Solver(opts.solver_def_file);

in 'proposal_train.m'.

It seems that it's just an initialization of Caffe.

Test on 2 machine and get the same problem. Does anyone meet with this, too?

deartonym avatar Oct 22 '15 22:10 deartonym

I've moved to the py-faster-rcnn and it works smoothly on my machine.

deartonym avatar Oct 25 '15 20:10 deartonym

I meet the same problem on matlab 2015a(windows7),who can give the solution ?

6676401088 avatar Oct 31 '15 09:10 6676401088

Doing <get_solver>..... Error using caffe_ glog check error, please check log and clear mex

Error in caffe.get_solver (line 7) pSolver = caffe_('get_solver', solver_file);

Error in caffe.Solver (line 21) self = caffe.get_solver(varargin{:});

Error in proposal_train (line 49) caffe_solver = caffe.Solver(opts.solver_def_file);

Error in Faster_RCNN_Train.do_proposal_train (line 7) model_stage.output_model_file = proposal_train(conf, dataset.imdb_train, dataset.roidb_train, ...

Error in script_faster_rcnn_VOC2007_ZF (line 45) model.stage1_rpn = Faster_RCNN_Train.do_proposal_train(conf_proposal, dataset, model.stage1_rpn, opts.do_val);

6676401088 avatar Oct 31 '15 09:10 6676401088

@6676401088 please check the log file which has been setup in Line 48, proposal_train.m

ShaoqingRen avatar Nov 04 '15 03:11 ShaoqingRen

I am facing similar issue.

Error using caffe_ glog check error, please check log and clear mex

Is there any solution to this yet?

codesteller86 avatar May 23 '16 07:05 codesteller86

I was also facing the same issue (on Linux) and found a solution after looking at the prototxt files in the models folder. The location for respective (e.g. in solver_60k80k.prototxt) nets given in these files is incorrect and gives an error of "File Not Found". The location is given as net: ".\models\rpn_prototxts\ZF\train_val.prototxt" Change it to net: "./models/rpn_prototxts/ZF/train_val.prototxt" to resolve the error.

Also make the required changes in the other solver files so that you don't get the same error again.

gullalc avatar Jan 09 '17 16:01 gullalc

I have the same problem in linux. Changing "\" to '/' in the prototxt file fixes this bug.

hongkaiyu2012 avatar Jan 19 '17 19:01 hongkaiyu2012

I changed '' to '/' in the prototxt file in windows, but it still didn‘t work

louEugene avatar Sep 26 '17 07:09 louEugene