Hi, I followed your dataloader to deal with my own dataset, but I met this valueerror: seek of closed file when using mytransform and using the img.crop. I was totally stuck. Do you have any idea to solve it?
File "/Users/functional.py", line 29, in crop
image = img.crop((j, i, j + w, i + h))
File "/Users/anaconda3/lib/python3.6/site-packages/PIL/Image.py", line 1044, in crop
self.load()
File "/Users/anaconda3/lib/python3.6/site-packages/PIL/ImageFile.py", line 203, in load
seek(offset)
ValueError: seek of closed file
Hi, I followed your dataloader to deal with my own dataset, but I met this valueerror: seek of closed file when using mytransform and using the img.crop. I was totally stuck. Do you have any idea to solve it? File "/Users/functional.py", line 29, in crop image = img.crop((j, i, j + w, i + h)) File "/Users/anaconda3/lib/python3.6/site-packages/PIL/Image.py", line 1044, in crop self.load() File "/Users/anaconda3/lib/python3.6/site-packages/PIL/ImageFile.py", line 203, in load seek(offset) ValueError: seek of closed file