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

RuntimeError: Given transposed=1, weight of size [256, 128, 2, 2], expected input[12, 64, 256, 256] to have 256 channels, but got 64 channels instead #73

Open
zhouwang0924 opened this issue Oct 31, 2021 · 2 comments

Comments

@zhouwang0924
Copy link

No description provided.

@LepusMaximus
Copy link

i am getting the same error. i am trying to train a 2d UNetPlusPlus. Can Anyone resolve this?
File "/home/maxi/anaconda3/envs/nnUNetpp/lib/python3.9/site-packages/torch/nn/modules/conv.py", line 916, in forward return F.conv_transpose2d( RuntimeError: Given transposed=1, weight of size [256, 128, 2, 2], expected input[5, 64, 384, 384] to have 256 channels, but got 64 channels instead

@web-girlfriend
Copy link

i am getting the same error. i am trying to train a 2d UNetPlusPlus. Can Anyone resolve this? File "/home/maxi/anaconda3/envs/nnUNetpp/lib/python3.9/site-packages/torch/nn/modules/conv.py", line 916, in forward return F.conv_transpose2d( RuntimeError: Given transposed=1, weight of size [256, 128, 2, 2], expected input[5, 64, 384, 384] to have 256 channels, but got 64 channels instead

I also encountered the same problem!!! Who can help me

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