-
Notifications
You must be signed in to change notification settings - Fork 227
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
if I set alpha the program crash #4
Comments
Met exactly the same problem. focal_loss_pytorch/focalloss.py Line 30 in e11e75b
Any ideas? @stephane-archer |
Hi, for anyone who met the same problem, I might have a solution. focal_loss_pytorch/focalloss.py Line 30 in e11e75b
and set this line to i.e alpha controls the balance between positive samples and negative samples. The problem is that, when you are doing index select, alpha only has two dimensions |
The text was updated successfully, but these errors were encountered: