Open ruili-pml opened 1 year ago
Hi,
Not sure if it's only me having this issue but when I try to download&convert datasets with tfds, PIL throws an error ValueError: seek of closed file. After some googing it seems PIL is not very compatible with the with method (https://stackoverflow.com/questions/74646251/django-value-error-seek-of-closed-file-using-pil-for-image-resize-when-updatin). Tab the code after line 329 in meta_dataset/data/tfds/example_generators.py fixes the issue for me but maybe there's a more clever fix?
tfds
ValueError: seek of closed file
with
meta_dataset/data/tfds/example_generators.py
Thanks, Rui
Hi,
Not sure if it's only me having this issue but when I try to download&convert datasets with
tfds
, PIL throws an errorValueError: seek of closed file
. After some googing it seems PIL is not very compatible with thewith
method (https://stackoverflow.com/questions/74646251/django-value-error-seek-of-closed-file-using-pil-for-image-resize-when-updatin). Tab the code after line 329 inmeta_dataset/data/tfds/example_generators.py
fixes the issue for me but maybe there's a more clever fix?Thanks, Rui