-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: module 'PIL.Image' has no attribute 'ExifTags' #6881
Comments
@albertvillanova @lhoestq just ran into it and requiring newer pillow isn't a solution as it breaks Pillow-SIMD which is behind Pillow quite a few versions but necessary for training with reasonable throughput. A couple things here...
In any case if I've preprocessed the images properly myself I don't want to incur overhead, possible further fp seeks, parsing, to load the exif that's not loaded and parsed when you just open and decode the image. |
Hi @rwightman, thanks for your feedback. First, as a side note comment, please note that you are depending on Pillow-SIMD and that library seems no longer maintained:
In relation with your suggestions for the I agree maybe we should have given the option whether to perform this operation or not. |
Huh, thought I'd just installed the current datasets when I ran into this, maybe it was behind... I'm aware the support for SIMD is a problem, but it's up to 8x faster than non SIMD Pillow and really necessary in many training situations or you have lots of idle GPUs. The current situation is unfortunate but most changes since 9.0 aren't all that important for 'decoding jpegs and resizing' |
When trying to load an image dataset in an old Python environment (with Pillow-8.4.0), an error is raised:
The error traceback:
Environment info
Since datasets 2.19.0
The text was updated successfully, but these errors were encountered: