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: shape '[1, 1, -1, 508, 508]' is invalid for input of size 16451136 #22

Open
zcq-debug opened this issue Jun 28, 2022 · 2 comments

Comments

@zcq-debug
Copy link

No description provided.

@zcq-debug
Copy link
Author

Traceback (most recent call last):
main()
File "E:\anaconda\envs\MagNet\lib\site-packages\torch\autograd\grad_mode.py", line 27, in decorate_context
return func(*args, **kwargs)
File "demo.py", line 229, in main
error_score = median_blur(error_score)
File "E:\anaconda\envs\MagNet\lib\site-packages\torch\nn\modules\module.py", line 1110, in _call_impl
return forward_call(*input, **kwargs)
File "D:\download\MagNet-main\magnet\utils\blur.py", line 184, in forward
x = x.view(b, c, -1, h, w)
RuntimeError: shape '[1, 1, -1, 508, 508]' is invalid for input of size 16451136

@hmchuong
Copy link
Collaborator

hmchuong commented Sep 2, 2022

Can you give me the script you were running?

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