jacquelinelala / GFN

Gated Fusion Network for Joint Image Deblurring and Super-Resolution(BMVC 2018 Oral)
http://xinyizhang.tech/bmvc2018/
141 stars 39 forks source link

AttributeError: 'Conv2D' object has no attribute 'padding_mode' #11

Closed AterLuna closed 5 years ago

AterLuna commented 5 years ago

Environment: Ubuntu 16.04.6 Python 3.6.7 PyTorch 1.1 CUDA 10.0

I've tried test_GFN_4x.py with your validation set(LR-GOPRO), but it shows "AttributeError: 'Conv2D' object has no attribute 'padding_mode'"

How can I fix this problem?

AterLuna commented 5 years ago

Downgraded PyTorch to 0.4.0

5tr1k3r commented 5 years ago

I had a similar issue and downgrading to PyTorch 1.0.1 helped.

thoward27 commented 5 years ago

Are there any suggestions for someone who may not want to downgrade?

rafaelvalle commented 5 years ago

Iterate over the layers that require the attribute and set them.