YOLOV8: OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.

OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.

当出现这个报错时候,可以试一下将numpy的版本降低,我之前的版本是1.22的,将numpy的版本安装为1.19.0后,报错就没有了

安装的方法就是:

pip install numpy==1.19.0

 

 

2023-02-11 14:35:47.945419: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found
2023-02-11 14:35:47.945567: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
optimizer: SGD(lr=0.01) with parameter groups 57 weight(decay=0.0), 64 weight(decay=0.0005), 63 bias
train: Scanning H:\yolov8\ultralytics-main\air-filter\train\labels.cache... 527 images, 0 backgrounds, 0 corrupt: 100%|██████████| 527/527 [00:00<?, ?it/s]
train: WARNING  H:\yolov8\ultralytics-main\air-filter\train\images\202.jpg: 1 duplicate labels removed
val: Scanning H:\yolov8\ultralytics-main\air-filter\train\labels.cache... 527 images, 0 backgrounds, 0 corrupt: 100%|██████████| 527/527 [00:00<?, ?it/s]
train: WARNING  H:\yolov8\ultralytics-main\air-filter\train\images\202.jpg: 1 duplicate labels removed
Image sizes 640 train, 640 val
Using 0 dataloader workers
Logging results to runs\detect\train5
Starting training for 100 epochs...

      Epoch    GPU_mem   box_loss   cls_loss   dfl_loss  Instances       Size
  0%|          | 0/132 [00:00<?, ?it/s]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 wor
karound 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/.

 

最近在调试yolov8的时候,也出现了这个报错,检查了libiomp5md.dll也没有解决这个问题,用同样的方法,将奴秒朋友的版本降低就没有报错了

 

  • 3
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论
根据引用和引用的描述,报错信息 "OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized" 表明在程序中多次链接了OpenMP运行时库,这可能会导致性能下降或产生错误的结果。最好的解决方法是确保只链接一个OpenMP运行时库到程序中,可以避免在任何库中静态链接OpenMP运行时库。引用中提到的一种不安全、不受支持和不被记录的解决方法是设置环境变量 KMP_DUPLICATE_LIB_OK=TRUE,允许程序继续执行,但这可能会导致崩溃或产生错误的结果。 根据引用的描述,你可以尝试在Anaconda文件夹中搜索 libiomp5md.dll,并检查是否有重复或多余的文件。如果存在重复的文件,可以尝试删除它们(可以事先备份),然后重新执行程序,看看问题是否解决。 需要注意的是,这些解决方法是针对报错信息 "OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized" 的一般性建议,具体解决方法可能因个人环境和具体情况而异。如果问题仍然存在,建议查阅相关文档或向开发者寻求进一步的支持。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [YOLOV5运行问题:OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already ...](https://blog.csdn.net/weixin_43497556/article/details/130661012)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* *3* [OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.](https://blog.csdn.net/qq_44731019/article/details/127712846)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

长沙有肥鱼

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值