YOLOv9(问题解决篇)

【以下问题均来自实践,成功解决顺利进行训练,但不能确定是否适用于所有人,大家仅供参考】

1.TimeoutError: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。

解决方案:爬墙

2.AMP: checks passed 
optimizer: SGD(lr=0.01) with parameter groups 238 weight(decay=0.0), 255 weight(decay=0.0005), 253 bias
OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.
OMP: Hint This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, e.g. by avoiding static linking of the OpenMP runtime in any library. As an unsafe, unsupported, undocumented workaround you can set the environment variable KMP_DUPLICATE_LIB_OK=TRUE to allow the program to continue to execute, but that may cause crashes or silently produce incorrect results. For more information, please see http://www.intel.com/software/products/support/.

解决方案:在train.py文件中的第481行(写入函数内,注意缩进)加上

【网上存在直接更改重名文件( libiomp5md.dll)的解决方案,推荐使用那个,如果跟我一样环境配置过多,导致需要更改的同名文件( libiomp5md.dll)过多,建议使用这个方法】

os.environ['KMP_DUPLICATE_LIB_OK'] = 'True'

3.AttributeError: 'FreeTypeFont' object has no attribute 'getsize'

解决方案:Pillow库在较新的版本中(10.x系列之后)移除了getsize方法,自行下载较低版本即可,下方是下载9.5版本的命令,可参照更改或直接使用

pip install Pillow==9.5

4.WARNING TensorBoard graph visualization failure Only tensors, lists, tuples of tensors, or dictionary of tensors can be output from traced functions

解决方案:降低TensorBoard版本,新版本移除了对应方法

(可参考我的pillow版本选择TensorBoard版本)

pip install tensorboard==2.6.0 -i  https://pypi.tuna.tsinghua.edu.cn/simple

5.TypeError: Descriptors cannot be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
 1. Downgrade the protobuf package to 3.20.x or lower.
 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

解决方案:更改protobuf版本

pip install protobuf==3.20.0

  • 24
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值