'How to deal with this deprecation warning 'nearest': pil_image.NEAREST, where is Resampling in Pillow?
Hi everyone I am using pip as package manager, and I receive the following DeprecationWarning when running my tests. I know that sometimes Warnings can be the Bug(s) of the future, and therefore I would like in this sense I want to follow a Warning-Free policy. Could you tell me what should I change in the Pillow library so this warning won't appear anymore?
======================= warnings summary ========================
test_Monitor_4e_classification.py::test_import_sitslearn
c:\users\almrog\documents\python_scripts\monitor_402\scripts\__work__\monitor_4e\env\lib\site-packages\keras_preprocessing\image\utils.py:23: DeprecationWarning: NEAREST is deprecated and will be
removed in Pillow 10 (2023-07-01). Use Resampling.NEAREST or Dither.NONE instead.
'nearest': pil_image.NEAREST,
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|