Closed sujyQ closed 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.
@sujyQ Has your problem been solved? I am using the same higher version of PyTorch, and the code will report an error.
Hi @wwlCape
I made a file data/loader.py and then copied this and pasted to the data/loader.py.
@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.
@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
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.