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

predict & target shape do not match #54

Open
ll-gh opened this issue Aug 17, 2023 · 2 comments
Open

predict & target shape do not match #54

ll-gh opened this issue Aug 17, 2023 · 2 comments

Comments

@ll-gh
Copy link

ll-gh commented Aug 17, 2023

How to solve this problem?
input size:torch.Size([2, 2, 32, 32, 32]) target size: torch.Size([2, 64, 32, 32])

@BelieferQAQ
Copy link

how to solve this problem?

@QianLingjun
Copy link

我是改成这样子,就可以了。loss = criterion_ce(outputs, target_argmax) + criterion_dice(outputs_argmax, target_argmax)

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

3 participants