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

Check failed: outer_num_ * inner_num_ == bottom[1]->count() (4 vs. 1) ERROR! #14

Open
lfdeep opened this issue Jun 21, 2018 · 0 comments

Comments

@lfdeep
Copy link

lfdeep commented Jun 21, 2018

Hello, I changed softmaxloss to focalloss in the fpn network, but the following error occurred:
I0621 08:12:50.082605 11689 focal_loss_layer.cpp:48] alpha: 0.25
I0621 08:12:50.082636 11689 focal_loss_layer.cpp:49] beta: 1
I0621 08:12:50.082640 11689 focal_loss_layer.cpp:50] gamma: 2
I0621 08:12:50.082643 11689 focal_loss_layer.cpp:51] type: 0
F0621 08:12:50.082659 11689 focal_loss_layer.cpp:69] Check failed: outer_num_ * inner_num_ == bottom[1]->count() (4 vs. 1) 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}.

Idon't know how to solve it

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

1 participant