The-Learning-And-Vision-Atelier-LAVA / DASR

[CVPR 2021] Unsupervised Degradation Representation Learning for Blind Super-Resolution
MIT License
388 stars 50 forks source link

the latest torch version #31

Closed sujyQ closed 3 years ago

sujyQ commented 3 years ago

Hi. I'm sorry to bothering you.

How can i change the code for the latest torch version?

For torch==1.7.1 I think _DataLoaderIter matters.

LongguangWang commented 3 years ago

Hi @sujyQ, you can refer to this answer and revise the dataloader in EDSR (pytorch 1.2.0). Usually, directly copying the code of _DataLoaderIter to torch.utils.data.dataloader.py may also solve this issue.

wwlCape commented 2 years ago

@sujyQ Has your problem been solved? I am using the same higher version of PyTorch, and the code will report an error.

sujyQ commented 2 years ago

Hi @wwlCape

I made a file data/loader.py and then copied this and pasted to the data/loader.py.

wwlCape commented 2 years ago

@sujyQ Thank you for your replying. I try to deal with the problem with your method, but raise up another error"TypeError: cannot unpack non-iterable NoneType object". Could you please send a copy of your /data filefolder and dataloader.py file to my email? (wenwlmail@163.com)Thank you very much.

jjlinghu commented 1 year ago

@sujyQ Thank you for your replying. I try to deal with the problem with your method, but raise up another error"TypeError: cannot unpack non-iterable NoneType object". Could you please send a copy of your /data filefolder and dataloader.py file to my email? (wenwlmail@163.com)Thank you very much.

you can copy the copy the code of _DataLoaderIter to torch.utils.data.dataloader.py