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

测试的错误 #74

Open
zhangshilong2000 opened this issue Jan 10, 2024 · 0 comments
Open

测试的错误 #74

zhangshilong2000 opened this issue Jan 10, 2024 · 0 comments

Comments

@zhangshilong2000
Copy link

Model moved to cuda
Traceback (most recent call last):
File "run.py", line 38, in
run()
File "run.py", line 30, in run
model.test(dataloader, args.result_save_path)
File "E:\ZSL\code\RFR-Inpainting-master\model.py", line 88, in test
fake_B, mask = self.G(masked_images, masks)
File "D:\anaconda\envs\MT\lib\site-packages\torch\nn\modules\module.py", line 1130, in _call_impl
return forward_call(*input, **kwargs)
File "E:\ZSL\code\RFR-Inpainting-master\modules\RFRNet.py", line 146, in forward
x1, m1 = self.Pconv1(in_image, mask)
File "D:\anaconda\envs\MT\lib\site-packages\torch\nn\modules\module.py", line 1130, in _call_impl
return forward_call(*input, **kwargs)
File "E:\ZSL\code\RFR-Inpainting-master\modules\partialconv2d.py", line 66, in forward
raw_out = super(PartialConv2d, self).forward(torch.mul(input, mask) if mask is not None else input)
RuntimeError: The size of tensor a (4) must match the size of tensor b (3) at non-singleton dimension 1
这个错误是由什么原因导致?

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