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

ValueError: cannot reshape array of size 18 into shape (1,128,1,1) #14

Open
Esaada opened this issue Dec 4, 2018 · 3 comments
Open

Comments

@Esaada
Copy link

Esaada commented Dec 4, 2018

You did: N = offset.size(1) // 2, In that level the offset.size(1) is equal to 128 , and N suppuse to be the kernel size *2, means N=|R|

And I haven't change anything in the code...

Thanks.

@Simpatech-app
Copy link

I have the same issue, please help. Beside it is not clear that why out_channel is 18. Can you
explain briefly?
self.conv_offset = nn.Conv2d(in_channels=inC, out_channels=18, kernel_size=3, padding=padding, bias=None)

@bkvie
Copy link

bkvie commented May 14, 2019

Size mismatch because of the linear layer... do a reshape or adaptive pooling or leave the linear layer out.
have a look at this implementation: https://github.com/bkvie/Locally-Consistent-Deformable-Convolution

@H-Wenfeng
Copy link

I have the same problem……

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

4 participants