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

loss函数的一个bug #7

Open
LiZhenLiangLee opened this issue Feb 19, 2021 · 0 comments
Open

loss函数的一个bug #7

LiZhenLiangLee opened this issue Feb 19, 2021 · 0 comments

Comments

@LiZhenLiangLee
Copy link

Line 59&60 in loss/criterion.py
pred = preds[0] + preds[1]
loss4 = lovasz_softmax(F.softmax(pred, dim=1), target, ignore=self.ignore_index)

这里的 pred 没有做upsample, 然后直接给了lovasz_softmax, 而 target 是原图的size大小,这样会造成 pred 与 target 的size 不匹配。

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

1 participant