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

Inference not working for dimension unmatched #11

Open
KurokyLee opened this issue Feb 14, 2023 · 0 comments
Open

Inference not working for dimension unmatched #11

KurokyLee opened this issue Feb 14, 2023 · 0 comments

Comments

@KurokyLee
Copy link

Traceback (most recent call last):
File "inference_gcfsr_blind.py", line 69, in
main()
File "inference_gcfsr_blind.py", line 66, in main
generate(args, img, model, device, imgname)
File "inference_gcfsr_blind.py", line 19, in generate
output, _ = g_ema(img)
File "/data/lichengyu/miniconda3/envs/gcfsr/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1051, in _call_impl
return forward_call(*input, **kwargs)
File "/data/lichengyu/projects/GCFSR-main/basicsr/archs/gcfsr_arch.py", line 1133, in forward
out = conv2(out, latent[:, i], noise=noise2, scale1=scales1[j], scale2=scales2[j], shift=shifts[j])
File "/data/lichengyu/miniconda3/envs/gcfsr/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1051, in _call_impl
return forward_call(*input, **kwargs)
File "/data/lichengyu/projects/GCFSR-main/basicsr/archs/gcfsr_arch.py", line 741, in forward
out = out * scale1.view(-1, out.size(1), 1, 1) + shift * scale2.view(-1, out.size(1), 1, 1)
RuntimeError: The size of tensor a (14) must match the size of tensor b (15) at non-singleton dimension 2

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

1 participant