解决方案】‘FreeTypeFont‘ object has no attribute ‘getsize‘"/>
【解决方案】‘FreeTypeFont‘ object has no attribute ‘getsize‘
【解决方案】'FreeTypeFont' object has no attribute 'getsize'
问题描述:
训练yolov5-v7.0时在绘图阶段存在以下报错
'FreeTypeFont' object has no attribute 'getsize'
解决方案:
- 确认在
.config/Ultralytics
路径下存在对应的字体
- 降低
Pillow
的版本
pip install Pillow==9.5
更多推荐
【解决方案】‘FreeTypeFont‘ object has no attribute ‘getsize‘
发布评论