Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

layer.hpp:385] Check failed: #177

Open
xiaoxiangyeyuwangye opened this issue Sep 26, 2017 · 3 comments
Open

layer.hpp:385] Check failed: #177

xiaoxiangyeyuwangye opened this issue Sep 26, 2017 · 3 comments

Comments

@xiaoxiangyeyuwangye
Copy link

Hi, everyone
I am using matlab version faster rcnn code to train a model in windows. But when I run
script_faster_rcnn_VOC2007_ZF
it raised an error
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);

This is some lines in the error log file in output folder
I0926 15:36:38.364075 11924 net.cpp:444] loss <- labels_weights_reshape
I0926 15:36:38.364075 11924 net.cpp:418] loss -> loss_cls
F0926 15:36:38.364075 11924 layer.hpp:385] Check failed: ExactNumBottomBlobs() == bottom.size() (2 vs. 3) SoftmaxWithLoss Layer takes 2 bottom blob(s) as input.
F0926 15:36:38.364075 11924 layer.hpp:385] Check failed: ExactNumBottomBlobs() == bottom.size() (2 vs. 3) SoftmaxWithLoss Layer takes 2 bottom blob(s) as input.

Does anyone has any idea about this situation. Thanks for your help!

@DaybreaksAds
Copy link

I meet the same problem with you.Have you fixed it yet?

@xiaoxiangyeyuwangye
Copy link
Author

Yeah, I have fixed it. This is because the caffe lib was edited by the authors of faster rcnn. The SoftmaxWithLoss Layer they used is not the same with the original caffe code. We need to compile the caffe provided by the authors.
https://github.com/ShaoqingRen/caffe

@qwertyDvo
Copy link

Could you please explain how did you compile caffe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants