google-research / meta-dataset

A dataset of datasets for learning to learn from few examples
Apache License 2.0
762 stars 139 forks source link

Meta-Dataset in TFDS: have issues with converting mscoco dataset #113

Open ruili-pml opened 1 year ago

ruili-pml commented 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?

Thanks, Rui