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

Problem in contextual attention module #18

Open
XiaoqiangZhou opened this issue Nov 8, 2019 · 1 comment
Open

Problem in contextual attention module #18

XiaoqiangZhou opened this issue Nov 8, 2019 · 1 comment

Comments

@XiaoqiangZhou
Copy link

Thanks for your reimplementation.

When I run the test_contextual_attention function in the network.py. Error occured. RuntimeError: Given transposed=1, weight of size 4096 3 4 4, expected input[1, 4032, 166, 250] to have 4096 channels, but got 4032 channels instead
In my setting, --imagA is the bnw_butterfly.png and --imageB is the bike.jpg for the offical CA repo, in the folder of examples/style_transfer.

Could you please help me with it? Thanks.

Best,

@daa233
Copy link
Owner

daa233 commented Nov 29, 2019

It is probably because the contextual attention module here doesn't support arbitrary image size, refers to #14.

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