1.AttributeError: 'FreeTypeFont' object has no attribute 'getsize'
降低pillow版本,把pillow10之后的降级为9.5
pip install pillow==9.5
2.IndexError: list index out of range
在val.py里的NMS前添加:
with dt[2]:
preds = preds[0][1] if isinstance(preds[0], list) else preds[0] # add
3.libiomp5md.dll already initialized
OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.
找到libiomp5md.dll,把重复的删一个就行
4.Arial.ttf无法下载
想办法下载,开代理翻墙