We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
由于数值溢出问题,当preds中错误类别的数值绝对值特别大的时候,loss容易计算得到inf。
inf
建议不要采用softmax+log,采用log_softmax+exp会更好。
softmax+log
log_softmax+exp
Focal-Loss-Pytorch/Focal_Loss.py
Lines 42 to 43 in 1f3da28
The text was updated successfully, but these errors were encountered:
好的,谢谢。
Sorry, something went wrong.
No branches or pull requests
由于数值溢出问题,当preds中错误类别的数值绝对值特别大的时候,loss容易计算得到
inf
。建议不要采用
softmax+log
,采用log_softmax+exp
会更好。Focal-Loss-Pytorch/Focal_Loss.py
Lines 42 to 43 in 1f3da28
The text was updated successfully, but these errors were encountered: