mapleneverfade / pytorch-semantic-segmentation

segmentation repo using pytorch
MIT License
79 stars 29 forks source link

Met ValueError: seek of closed file #2

Closed yux11 closed 6 years ago

yux11 commented 6 years ago

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