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

when I train the net, I meet an error. I'm new #21

Closed
xiaomimo opened this issue Jan 3, 2018 · 6 comments
Closed

when I train the net, I meet an error. I'm new #21

xiaomimo opened this issue Jan 3, 2018 · 6 comments

Comments

@xiaomimo
Copy link

xiaomimo commented Jan 3, 2018

I0103 17:59:46.463167 29140 layer_factory.hpp:77] Creating layer fpn_loss_cls
I0103 17:59:46.463174 29140 net.cpp:106] Creating Layer fpn_loss_cls
I0103 17:59:46.463178 29140 net.cpp:454] fpn_loss_cls <- rpn_cls_score_reshape
I0103 17:59:46.463183 29140 net.cpp:454] fpn_loss_cls <- rpn_labels
I0103 17:59:46.463191 29140 net.cpp:411] fpn_loss_cls -> FPNClsLoss
I0103 17:59:46.463199 29140 layer_factory.hpp:77] Creating layer fpn_loss_cls
F0103 17:59:46.465251 29140 softmax_loss_layer.cpp:47] Check failed: outer_num_ * inner_num_ == bottom[1]->count() (245520 vs. 552960) Number of labels must match number of predictions; e.g., if softmax axis == 1 and prediction shape is (N, C, H, W), label count (number of labels) must be NHW, with integer values in {0, 1, ..., C-1}.
*** Check failure stack trace: ***

Thank you

@unsky
Copy link
Owner

unsky commented Jan 3, 2018

use the new codes and compile the caffe-fpn in the codes

@xiaomimo
Copy link
Author

xiaomimo commented Jan 3, 2018

@unsky Thank your answer. I have used the new codes but there is another error.

I0103 19:39:44.953022 4457 layer_factory.hpp:77] Creating layer loss_cls
I0103 19:39:44.953043 4457 net.cpp:106] Creating Layer loss_cls
I0103 19:39:44.953058 4457 net.cpp:454] loss_cls <- cls_score
I0103 19:39:44.953071 4457 net.cpp:454] loss_cls <- labels
I0103 19:39:44.953088 4457 net.cpp:411] loss_cls -> RcnnLossCls
I0103 19:39:44.953107 4457 layer_factory.hpp:77] Creating layer loss_cls
F0103 19:39:44.953361 4457 loss_layer.cpp:19] Check failed: bottom[0]->num() == bottom[1]->num() (4 vs. 1) The data and label should have the same number.
*** Check failure stack trace: ***

Thank you very much.

@xiaomimo
Copy link
Author

xiaomimo commented Jan 3, 2018

@unsky Need to use your caffe-fpn and can not use faster rcnn's caffe?

@unsky
Copy link
Owner

unsky commented Jan 3, 2018

faster rcnn-caffe is very old, the loss layer cannot infershape.

@xiaomimo
Copy link
Author

xiaomimo commented Jan 3, 2018

@unsky There is no problems. Thank you very much!

@unsky unsky closed this as completed Jan 3, 2018
@wenhe-jia
Copy link

wenhe-jia commented Jan 12, 2018

@unsky what have you changed for softmaxwithloss, and what is the difference between caffe-fpn and original 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