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

AssertionError BUG #38

Closed
harrylee999 opened this issue Jun 20, 2022 · 2 comments
Closed

AssertionError BUG #38

harrylee999 opened this issue Jun 20, 2022 · 2 comments
Assignees

Comments

@harrylee999
Copy link

if i just want to seg one class,such as seg_list only have ’road‘.
Then i run train.py ,
in loss.py line 538,
in soft_tversky_score assert output.size() == target.size()
AssertionError

then i debug code,find output.size() = torch.Size([2, 1, 245760]) target.size() = torch.Size([2, 1, 491520])

How to fix that???

@xoiga123 xoiga123 self-assigned this Jun 21, 2022
@xoiga123
Copy link
Collaborator

Should work now

@xoiga123
Copy link
Collaborator

Btw, I fixed this by using softmax for both binary and multi-class. While it is learnable, some advocate against this approach. I'll separate binary, multi-class and multi-label in #40.

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