Skip to content
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

Pillow 10.0.0 breaking change -- Image.ANTIALIAS deprecated #119

Open
cestorer opened this issue Jul 6, 2023 · 1 comment
Open

Pillow 10.0.0 breaking change -- Image.ANTIALIAS deprecated #119

cestorer opened this issue Jul 6, 2023 · 1 comment

Comments

@cestorer
Copy link

cestorer commented Jul 6, 2023

Description

Following coral setup documentation and ran into a breaking change introduced with Pillow 10.0.0. Image.ANTIALIAS has been deprecated and instead should just use Image.LANCZOS.

Issue Type

Bug

Operating System

No response

Coral Device

USB Accelerator

Other Devices

No response

Programming Language

Python 3.9

Relevant Log Output

home-mini@Mini MINGW64 /c/coral/pycoral (master)
$ python3 examples/classify_image.py \
--model test_data/mobilenet_v2_1.0_224_inat_bird_quant_edgetpu.tflite \
--labels test_data/inat_bird_labels.txt \
--input test_data/parrot.jpg
Traceback (most recent call last):
  File "C:\coral\pycoral\examples\classify_image.py", line 121, in <module>
    main()
  File "C:\coral\pycoral\examples\classify_image.py", line 79, in main
    image = Image.open(args.input).convert('RGB').resize(size, Image.ANTIALIAS)
AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'
@feranick
Copy link

feranick commented Mar 4, 2024

This has been fixed in the repo. Should be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants