1、下载YOLO模型后的weights文件夹是自己创建的,然后从下面的网址下载模型文件保存到该文件夹下
Releases · ultralytics/yolov5 · GitHub
2、一堆的OMP,然后是module 'distutils' has no attribute 'version'
解决方法:在导入的所有报的后面加入下面两句代码,注意即使你已经导入了os包,仍然要添加下面两句
import os
os.environ["KMP_DUPLICATE_LIB_OK"]="TRUE"
3、使用GPU进行训练时出现:OSError: [WinError 1455] 页面文件太小,无法完成操作。 Error loading
解决方法:
此电脑->属性->高级->性能下的设置->
更改
取消勾选自动管理->选择D盘->自定义->设置->确定
注意:一定要点击 设置,一定要点击 设置,一定要点击 设置
4、DataLoader worker (pid(s) 15816, 17024, 6252, 4108, 13496, 18500, 24832) exited unexpectedly
错误类型:
解决方法:
- 更小的batchsize,
- 将numworkers = 1注释掉,不用多进程
5、FreeTypeFont' object has no attribute 'getsize'
解决方法:Pillow降级
pip install Pillow==9.5
6、Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.
暂未解决
7、ERROR: Could not find a version that satisfies the requirement gitpython (from versions: none)/ERROR: No matching distribution found for gitpython
看看自己的梯子是不是没关