google-coral / tflite

Examples using TensorFlow Lite API to run inference on Coral devices
https://coral.withgoogle.com
Apache License 2.0
181 stars 67 forks source link

Replace ANTIALIAS with LANCZOS in classify_image.py to fix compatibility issue with Pillow 10.0.0 #67

Open Yen-Lung-Huang opened 1 month ago

Yen-Lung-Huang commented 1 month ago

Background

In the latest version of Pillow (10.0.0), the ANTIALIAS attribute has been removed. This change caused the classify_image.py script to fail with an AttributeError.

Changes

Testing

Impact

This change ensures that the classify_image.py script remains compatible with the latest version of Pillow, preventing runtime errors and improving overall stability.

Additional Notes

No other parts of the codebase were affected by this change. The modification is backward compatible with previous versions of Pillow.

google-cla[bot] commented 1 month ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Yen-Lung-Huang commented 1 month ago

I have signed the CLA.