-
Notifications
You must be signed in to change notification settings - Fork 1k
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
How to add focal loss in CTC? #143
Comments
me either |
@stephen-song |
写一个Lambda函数,先获取ctc loss值,然后对e求-ctc loss次方得到p值,然后就可以得到你想要的新loss了。tf或者keras实现过,pytorch还没尝试 |
大佬你好,请问可以发一下你的代码吗?tensorflow版的,对于α还有一些参数存疑,还望解答 |
请问focal loss 加到 ctc loss上有效果吗? |
根据上面讨论想到大概的代码(未验证,最近会跑跑看):
|
[update] no benefit in my training with above code. |
这是paddle的: import paddle class CTCLoss(nn.Layer):
|
I want to introduce focal loss in CTC loss in the engineering, and I don't know where to add it. I hope a god can help me.
Thanks !
The text was updated successfully, but these errors were encountered: