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

请问在加权的BCE损失中,分子是(1+γα) 分母是γα,不一样? #18

Open
StormArcher opened this issue Nov 4, 2020 · 1 comment

Comments

@StormArcher
Copy link

请问在加权的BCE损失中,分子是(1+γα) 分母是γα,不一样?
代码中并没有这个加1 ,分子是否写错了?

@weijun-arc
Copy link
Owner

weijun-arc commented Nov 4, 2020

weit = 1+5*torch.abs(F.avg_pool2d(mask, kernel_size=31, stride=1, padding=15)-mask)
1包含在了上述代码中,论文中分母也应该是(1+γα), 当时没查出来这个问题,以代码为准

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

2 participants