demo----日常报错

yolov5:报错1:OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.

解决:

import os
os.environ["KMP_DUPLICATE_LIB_OK"] = "TRUE"

 

报错2:ModuleNotFoundError: No module named 'sklearn.utils.linear_assignment_'

最好的解决方法是降低skleran 的版本:卸载原来的scikit-learn,安装pip install scikit-learn==0.19.2

 

(之前的解决方法是:

linear_assignment 函数从0.21开始被弃用了,并且将在0.23版本中移除。官方提升将用scipy.optimize.linear_sum_assignment 进行替代,可以通过

from scipy.optimize import linear_sum_assignment

)

 

报错3:

 

 

 解决:CPU不支持半精度数,将检测模块中的.half()全部改成.float()(计算时请保证数据类型一致)

 

 

 

 

 

 

 

 

 

 

 

 

 

参考连接:https://blog.csdn.net/weixin_41194171/article/details/110526825

https://blog.csdn.net/weixin_39764569/article/details/106675871

https://blog.csdn.net/weixin_45676236/article/details/107842567

https://blog.csdn.net/ynzzxc/article/details/114097206

 

posted @ 2022-01-16 11:31  cfancy  阅读(159)  评论(0编辑  收藏  举报