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

demo.py error #54

Open
zjujiangxin opened this issue Jul 21, 2020 · 0 comments
Open

demo.py error #54

zjujiangxin opened this issue Jul 21, 2020 · 0 comments

Comments

@zjujiangxin
Copy link

Hi, I stopped at the error message while executing demo.py

Traceback (most recent call last):
File "demo.py", line 231, in
x_hat, tran_hat, atp_hat, dehaze2= netG(input)
File "/home/dl/anaconda3/envs/dcpdn/lib/python3.6/site-packages/torch/nn/modules/module.py", line 357, in call
result = self.forward(*input, **kwargs)
File "/media/dl/A420F0F420F0CE74/jx/DCPDN/dehaze22.py", line 565, in forward
tran=self.tran_dense(x)
File "/home/dl/anaconda3/envs/dcpdn/lib/python3.6/site-packages/torch/nn/modules/module.py", line 357, in call
result = self.forward(*input, **kwargs)
File "/media/dl/A420F0F420F0CE74/jx/DCPDN/dehaze22.py", line 470, in forward
x0=self.pool0(self.relu0(self.norm0(self.conv0(x))))
File "/home/dl/anaconda3/envs/dcpdn/lib/python3.6/site-packages/torch/nn/modules/module.py", line 357, in call
result = self.forward(*input, **kwargs)
File "/home/dl/anaconda3/envs/dcpdn/lib/python3.6/site-packages/torch/nn/modules/conv.py", line 282, in forward
self.padding, self.dilation, self.groups)
File "/home/dl/anaconda3/envs/dcpdn/lib/python3.6/site-packages/torch/nn/functional.py", line 90, in conv2d
return f(input, weight, bias)
RuntimeError: Given groups=1, weight[64, 3, 7, 7], so expected input[1, 4, 497, 513] to have 3 channels, but got 4 channels instead

can you help me solve this
thanks for reading

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