Zj-BinXia / ENLCA

This project is official implementation of 'Efficient Non-Local Contrastive Attention for Image Super-Resolution', AAAI2022
86 stars 7 forks source link

测试阶段conv2d()相关代码段报错,版本问题? #17

Open Vivid-victory opened 9 months ago

Vivid-victory commented 9 months ago

TypeError: conv2d() received an invalid combination of arguments - got (Tensor, Parameter, Parameter, tuple, tuple, tuple, int), but expected one of:

Vivid-victory commented 9 months ago

解决了,确实是版本问题。 pip install torch==1.8.1+cu111 torchvision==0.9.1+cu111 -f https://download.pytorch.org/whl/torch_stable.html

参考这篇建了虚拟环境:https://blog.csdn.net/qq_37541097/article/details/114896215