You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
在检测数据集时报错AttributeError: 'ImageDraw' object has no attribute 'textsize'
描述问题
/home/aistudio/PaddleX
Traceback (most recent call last):
File "/home/aistudio/PaddleX/paddlex/utils/result_saver.py", line 30, in wrap
result = func(self, *args, **kwargs)
File "/home/aistudio/PaddleX/paddlex/engine.py", line 39, in run
returndataset_checker.check()
File "/home/aistudio/PaddleX/paddlex/modules/base/dataset_checker/dataset_checker.py", line 75, in check
attrs = self.check_dataset(dataset_dir)
File "/home/aistudio/PaddleX/paddlex/modules/image_classification/dataset_checker/__init__.py", line 77, in check_dataset
return check(dataset_dir, self.output)
File "/home/aistudio/PaddleX/paddlex/modules/image_classification/dataset_checker/dataset_src/check_dataset.py", line 105, in check
vis_im = draw_label(img, label, label_map_dict)
File "/home/aistudio/PaddleX/paddlex/modules/image_classification/dataset_checker/dataset_src/utils/visualizer.py", line 65, in draw_label
text_width_tmp, text_height_tmp = draw.textsize(
AttributeError: 'ImageDraw' object has no attribute 'textsize'
Checklist:
在检测数据集时报错AttributeError: 'ImageDraw' object has no attribute 'textsize'
描述问题
复现
运行
环境
Pillow版本10.0以上
aistudio paddlepaddle 3.0
The text was updated successfully, but these errors were encountered: