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

升级最新版依赖包报错Unable to find an entry point named 'PD_ConfigEnableONNXRuntime' in DLL 'paddle_inference_c'.” #99

Open
wangning08115 opened this issue Jun 23, 2024 · 6 comments

Comments

@wangning08115
Copy link

Describe the bug

以前是老包使用正常,GPU的。
升级最新版依赖包报错Unable to find an entry point named 'PD_ConfigEnableONNXRuntime' in DLL 'paddle_inference_c'.”

System.EntryPointNotFoundException:“Unable to find an entry point named 'PD_ConfigEnableONNXRuntime' in DLL 'paddle_inference_c'.”

Steps to reproduce the bug

升级最新版依赖包

Expected behavior

No response

Screenshots

No response

Release version

No response

IDE

No response

OS version

No response

Additional context

No response

@n0099
Copy link
Contributor

n0099 commented Jun 23, 2024

去下个paddle_inference_c.so把url path开头的2.3.2改成最新的2.6.1

@wangning08115
Copy link
Author

@n0099 谢谢
我是windows, 【把url path开头的2.3.2】 这句啥意思, 我新手 没见过这个版本号?

@wangning08115
Copy link
Author

@n0099 感谢,我卸载了nuget,安装了一个新包 Sdcb.PaddleInference.runtime.win64.cuda118_cudnn86_tr85_sm86_89 可以了。
但是遇到一个新问题:如下,windows 11

[Paddle2ONNX] Use opset_version = 11 for ONNX export.
[Paddle2ONNX] PaddlePaddle model is exported as ONNX format now.
[Paddle2ONNX] Use opset_version = 11 for ONNX export.
[Paddle2ONNX] PaddlePaddle model is exported as ONNX format now.
[Paddle2ONNX] Use opset_version = 11 for ONNX export.
[Paddle2ONNX] PaddlePaddle model is exported as ONNX format now.
[Paddle2ONNX] Use opset_version = 11 for ONNX export.
[Paddle2ONNX] PaddlePaddle model is exported as ONNX format now.
System.MethodAccessException: Attempt by method 'Sdcb.PaddleOCR.PaddleOcrDetector.RunRaw(OpenCvSharp.Mat, OpenCvSharp.Size ByRef)' to access method 'OpenCvSharp.Mat..ctor(Int32, Int32, OpenCvSharp.MatType, System.Array, Int64)' failed.
at Sdcb.PaddleOCR.PaddleOcrDetector.RunRaw(Mat src, Size& resizedSize)
at Sdcb.PaddleOCR.PaddleOcrDetector.Run(Mat src)
at Sdcb.PaddleOCR.PaddleOcrAll.Run(Mat src, Int32 recognizeBatchSize)
at Program.

$(String[] args) in E:\Work\Company\StartPointOcrEngine\StartPointOcrEngine\StartPointOcrEngine.TestGPU\Program.cs:line 57

@wangning08115
Copy link
Author

我搞好了:
OpenCvSharp 不能用最新版本。最新版本有bug, 我回退一个版本就可以运行了

@n0099
Copy link
Contributor

n0099 commented Jun 24, 2024

#78

@sdcb
Copy link
Owner

sdcb commented Jun 25, 2024

试一下最新的 Sdcb.PaddleOCR 2.7.0.3 版本,适配了最新的 OpenCvSharp

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

No branches or pull requests

3 participants