-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
Comments
尝试将Pillow更新到最新版本试试 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: