-
Notifications
You must be signed in to change notification settings - Fork 31
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
DeprecationWarning thrown in utils.image_utils #582
Comments
Hi @johnthagen, Could you share the minimal reproducible code snippet to investigate the reported issue. Thank you! |
@gadagashwini Please see the code and command under "Exact command to reproduce:" in the original post. |
Hi @johnthagen, I executed |
@gadagashwini Did you execute the Python script with python -Werror main.py |
Hi @johnthagen, Could you share the |
import tensorflow
python -Werror main.py This will show the My exact environment (tested on macOS x86_64):
|
Hi @johnthagen, You can safely ignore these deprecated warnings.
Thank you! |
@gadagashwini Yes, we are suppressing them, but since this will eventually cause breakage with a future Pillow release, it seemed like something that should be addressed in |
This shows up in pytest warnings as well :( |
It is fixed by keras-team/keras#16746 on master. |
System information.
Describe the problem.
Teras is using a deprecated feature of Pillow.
https://github.com/keras-team/keras/blob/3613c3defc39c236fb1592c4f7ba1a9cc887343a/keras/utils/image_utils.py#L38
Describe the current behavior.
I am testing with Pillow 9.1.1.
Describe the expected behavior.
No
DeprecationWarning
s are raised when usingkeras
.Contributing.
The text was updated successfully, but these errors were encountered: