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/.
GOT-OCR-2-GUI 安装经验分享
环境配置
创建并激活 Conda 环境:
进入项目目录:
安装依赖:
备注:requirements-noversion.txt这次使用也没有问题,建议作者是否把这个作为默认? conda install pytorch torchvision torchaudio pytorch-cuda=12.4 -c pytorch -c nvidia是根据依赖里面指定的
torch==2.4.1+cu124
到https://pytorch.org/get-started/locally/
找到的相应版本。下载必要文件(这里根据作者原来的来就行了)
Edge WebDriver
edge_driver
文件夹中模型文件
models
文件夹中运行程序
执行以下命令:
遇到 OpenMP 运行时相关错误,可尝试以下解决方案:
错误信息示例:
解决方法: 在运行程序前,设置环境变量:
然后重新运行程序:
按照以上步骤操作,您应该能够成功安装并运行 GOT-OCR-2-GUI。如遇其他问题,请参考项目文档或寻求进一步帮助。