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

why??? #2

Closed Ashore-lz closed 2 years ago

Ashore-lz commented 2 years ago

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

Zj-BinXia commented 2 years ago

Do you revise the code? I can run the code successfully. If you want to run EDSR, please use the https://github.com/sanghyun-son/EDSR-PyTorch.

Ashore-lz commented 2 years ago

Do you revise the code? I can run the code successfully. If you want to run EDSR, please use the https://github.com/sanghyun-son/EDSR-PyTorch.

I only run ENLCA, all the configurations meet the configuration in EDSR, but I don't know why this error is reported when running, I only changed the code of the dataset location

Zj-BinXia commented 2 years ago

You should use torch==1.8. if torch>=1.10, the code will report the error.