tflearn icon indicating copy to clipboard operation
tflearn copied to clipboard

Update data_utils.py

Open saquib34 opened this issue 1 year ago • 2 comments

"ANTIALIAS was removed in Pillow 10.0.0 (after being deprecated through many previous versions). Now you need to use PIL.Image.LANCZOS or PIL.Image.Resampling.LANCZOS.

(This is the exact same algorithm that ANTIALIAS referred to, you just can no longer access it through the name ANTIALIAS.) Reference https://pillow.readthedocs.io/en/stable/releasenotes/10.0.0.html#constants"

so i have updated the pillow function which help the users to run the code without error

saquib34 avatar May 06 '24 11:05 saquib34

"ANTIALIAS was removed in Pillow 10.0.0 (after being deprecated through many previous versions). Now you need to use PIL.Image.LANCZOS or PIL.Image.Resampling.LANCZOS.

(This is the exact same algorithm that ANTIALIAS referred to, you just can no longer access it through the name ANTIALIAS.) Reference https://pillow.readthedocs.io/en/stable/releasenotes/10.0.0.html#constants"

saquib34 avatar May 06 '24 11:05 saquib34

yes, ANTIALIAS is depreciated good work earlier when i was also trying it giving me same error

Adi4real avatar May 06 '24 12:05 Adi4real