WZMIAOMIAO / deep-learning-for-image-processing

deep learning for image processing including classification and object-detection etc.
GNU General Public License v3.0
23.06k stars 7.99k forks source link

训练自己数据集检测时出现画图颜色的错误 #779

Open DeaLong opened 11 months ago

DeaLong commented 11 months ago

Traceback (most recent call last): File "D:\software\Python\project\faster_rcnn\predict-dianchi.py", line 152, in main() File "D:\software\Python\project\faster_rcnn\predict-dianchi.py", line 103, in main plot_img = draw_objs(original_img, File "D:\software\Python\project\faster_rcnn\draw_box_utils.py", line 146, in draw_objs draw.line([(left, top), (left, bottom), (right, bottom), File "D:\software\Anaconda\envs\pytorch\lib\site-packages\PIL\ImageDraw.py", line 172, in line ink = self._getink(fill)[0] File "D:\software\Anaconda\envs\pytorch\lib\site-packages\PIL\ImageDraw.py", line 130, in _getink ink = self.draw.draw_ink(ink) TypeError: color must be int or single-element tuple

WZMIAOMIAO commented 9 months ago

尝试将Pillow更新到最新版本试试