问题描述:
Linux 18.04系统下python3.5跑centernet程序,报错OSError: cannot open resource
完整的错误代码:
Traceback (most recent call last):
File "/home/omais/Projects/keras-centernet-master/keras_centernet/bin/ctdet_image.py", line 58, in <module>
main()
File "/home/omais/Projects/keras-centernet-master/keras_centernet/bin/ctdet_image.py", line 36, in main
drawer = COCODrawer()
File "/home/omais/Projects/keras-centernet-master/keras_centernet/utils/utils.py", line 31, in __init__
self.font = ImageFont.truetype(font, font_size)
File "/home/omais/Projects/keras-centernet-master/venv/lib/python3.5/site-packages/PIL/ImageFont.py", line 280, in truetype
return FreeTypeFont(font, size, index, encoding, layout_engine)
File "/home/omais/Projects/keras-centernet-master/venv/lib/python3.5/site-packages/PIL/ImageFont.py", line 145, in __init__