PaddlePaddle / PaddleYOLO

🚀🚀🚀 YOLO series of PaddlePaddle implementation, PP-YOLOE+, RT-DETR, YOLOv5, YOLOv6, YOLOv7, YOLOv8, YOLOX, YOLOv5u, YOLOv7u, YOLOv6Lite, RTMDet and so on. 🚀🚀🚀
https://github.com/PaddlePaddle/PaddleYOLO
GNU General Public License v3.0
534 stars 132 forks source link

Replaced the deprecated textsize method in ImageDraw #225

Closed InsaneOnion closed 1 month ago

InsaneOnion commented 2 months ago

ImageDraw 的 textsize 在 Pillow 9.5 被弃用且已经在 Pillow 10 (2023-07-01) 被移除。在 PaddleYOLO/ppdet/utils/visualizer.py(128) 使用了 textsize 方法,这将导致使用版本大于10的 Pillow 时报错。如: image

paddle-bot[bot] commented 2 months ago

Thanks for your contribution!

nemonameless commented 1 month ago

感谢贡献,改动已合入在develop分支中。