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

Model shape error #61

Open
Furqanf9T opened this issue Dec 29, 2020 · 1 comment
Open

Model shape error #61

Furqanf9T opened this issue Dec 29, 2020 · 1 comment

Comments

@Furqanf9T
Copy link

Given transposed=1, weight of size [256, 128, 2, 2], expected input[1, 64, 128, 128] to have 256 channels, but got 64 channels instead
`
network = Generic_UNetPlusPlus(num_input_channels, base_num_features, num_classes, len(net_num_pool_op_kernel_sizes), 2, 2,
nn.Conv2d, nn.InstanceNorm2d, norm_op_kwargs, nn.Dropout2d,
dropout_op_kwargs, net_nonlin, net_nonlin_kwargs, True, False, lambda x: x, InitWeights_He(1e-2),
net_num_pool_op_kernel_sizes, net_conv_kernel_sizes, False, True, True)

a = torch.randn(1, 1, 256, 256)

b = network(a)
`
image

@HongliWu
Copy link

Hi, friend! : )
i meet the same problem. Are you have solution of this issue?

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