Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PPPCRlabel启动不了 #10328

Closed
forAlgorithm opened this issue Jul 7, 2023 · 4 comments
Closed

PPPCRlabel启动不了 #10328

forAlgorithm opened this issue Jul 7, 2023 · 4 comments
Assignees
Labels

Comments

@forAlgorithm
Copy link

n.exe e:/anaconda/conda/envs/pytorch_gpu/Lib/site-packages/PPOCRLabel/PPOCRLabel.py
OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.

@forAlgorithm
Copy link
Author

9f4baf7b7d6454b7b0f37782e578b2f

@shiyutang shiyutang added the good first issue Good for newcomers label Jul 11, 2023
@livingbody
Copy link
Contributor

添加下列代码:

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

@livingbody
Copy link
Contributor

这个有可能是因为系统环境中存在多个版本的OpenMP库导致,可以把环境变量KMP_DUPLICATE_LIB_OK设置成True试试。

vbnet

复制代码

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/.

在代码中解决方案如下:

lua

复制代码

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

或:

  1. 查看文件链接的OpenMP library, 只使用一个。
  2. 推荐使用动态库:libiomp5md.dll
  3. 如果第三方库使用libguide40.dll, 使用libiomp5md.dll 重新编译库文件。

@UserWangZz
Copy link
Collaborator

该issue长时间未更新,暂将此issue关闭,如有需要可重新开启。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants