Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DeaLong opened this issue Nov 24, 2023 · 1 comment
Open

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

DeaLong opened this issue Nov 24, 2023 · 1 comment

Comments

@DeaLong
Copy link

DeaLong commented Nov 24, 2023

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants