Open fdy61 opened 1 year ago
Hi! I met with the same problem, and i changed it to LANZOS and solved it .
it depends on the version of pillow, you can change the version into 9.5.0
@fdy61 downgrade to pip install Pillow==9.5.0 or replace : pred = pred.resize(orig_size, Image.ANTIALIAS) with : pred = pred.resize(orig_size, Image.LANCZOS)
When I execute the order 'python sanity.py',it throw an error called 'AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' from line 91,sanity.py, pred = pred.resize(orig_size, Image.ANTIALIAS),how could it be solced?