Dear author,
During running the testing code with "python run --model upsample4x.pth --target_image lr.jpg"
i am facing the following error. Kindly help to fix this issue and also specify the dependencies.
File "run.py", line 192, in
upsampled = model(image)
File "/home2/st118370/anaconda3/envs/pytorch-py31/lib/python3.7/site-packages/torch/nn/modules/module.py", line 493, in call
result = self.forward(*input, **kwargs)
File "/home2/st118370/models/SuperResolution-master/model.py", line 146, in forward
h = F.relu(self.b2(self.c1(x)))
File "/home2/st118370/anaconda3/envs/pytorch-py31/lib/python3.7/site-packages/torch/nn/modules/module.py", line 493, in call
result = self.forward(*input, **kwargs)
File "/home2/st118370/anaconda3/envs/pytorch-py31/lib/python3.7/site-packages/torch/nn/modules/conv.py", line 331, in forward
if self.padding_mode == 'circular':
File "/home2/st118370/anaconda3/envs/pytorch-py31/lib/python3.7/site-packages/torch/nn/modules/module.py", line 539, in getattr
type(self).name, name))
AttributeError: 'Conv2d' object has no attribute 'padding_mode'
Dear author,
During running the testing code with "python run --model upsample4x.pth --target_image lr.jpg"
i am facing the following error. Kindly help to fix this issue and also specify the dependencies.
File "run.py", line 192, in
upsampled = model(image)
File "/home2/st118370/anaconda3/envs/pytorch-py31/lib/python3.7/site-packages/torch/nn/modules/module.py", line 493, in call
result = self.forward(*input, **kwargs)
File "/home2/st118370/models/SuperResolution-master/model.py", line 146, in forward
h = F.relu(self.b2(self.c1(x)))
File "/home2/st118370/anaconda3/envs/pytorch-py31/lib/python3.7/site-packages/torch/nn/modules/module.py", line 493, in call
result = self.forward(*input, **kwargs)
File "/home2/st118370/anaconda3/envs/pytorch-py31/lib/python3.7/site-packages/torch/nn/modules/conv.py", line 331, in forward
if self.padding_mode == 'circular':
File "/home2/st118370/anaconda3/envs/pytorch-py31/lib/python3.7/site-packages/torch/nn/modules/module.py", line 539, in getattr
type(self).name, name))
AttributeError: 'Conv2d' object has no attribute 'padding_mode'