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

please help! #16

Open
wolfworld6 opened this issue Jul 3, 2018 · 7 comments
Open

please help! #16

wolfworld6 opened this issue Jul 3, 2018 · 7 comments

Comments

@wolfworld6
Copy link

when i run this code,i got this error: Check failed: bottom[0]->count() == bottom[1]->count() (20 vs. 10) SIGMOID_CROSS_ENTROPY_LOSS layer inputs must have the same count.
how do i solve it?

@A1exy
Copy link

A1exy commented Oct 24, 2019

@wolfworld6 Same error, do u have solved?

@wolfworld6
Copy link
Author

@wolfworld6 Same error, do u have solved?

you need to change the classs to fit the bottom[0]

@A1exy
Copy link

A1exy commented Oct 24, 2019

@wolfworld6 thanks for your reply, does this repo only support binary classification?

@A1exy
Copy link

A1exy commented Oct 24, 2019

@wolfworld6 if i hava multi class(more than two class), how can i change the classs to fit the bottom[0].

@wolfworld6
Copy link
Author

@wolfworld6 if i hava multi class(more than two class), how can i change the classs to fit the bottom[0].

the ith bottom[0] just has label 0 or 1,means multi-binary classification.you can just use the softmax

@A1exy
Copy link

A1exy commented Oct 24, 2019

@wolfworld6 ok, thanks!

@1343464520
Copy link

@wolfworld6 @A1exy i am doing two classification. and i also have the same error, how to solve it? i try to change the output num of inner product layer from 2 to 1. and it seems to work. but the acc is very low, just 60%... my loss layer is just the same as the author's:
layer {
name: "fc1"
type: "InnerProduct"
bottom: "view_blob1"
top: "fc_blob1"
inner_product_param {
num_output: 2
weight_filler {
type: "xavier"
}
bias_filler {
type: "constant"
}
}
}
layer {
name: "loss_focal"
type: "FocalLoss"
bottom: "fc_blob1"
bottom: "label"
top: "loss_focal"
loss_weight: 10
loss_param{
normalize: true
normalization: FULL
}
}
please help me... thanks!

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