java sdk调用pdserving c++部署的ocr4模型报错 #12433
Unanswered
wangzhedong
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem
使用python3.6 ocr_cpp_client.py ../v4/ppocr_det_v4_client ../v4/ppocr_rec_v4_client调用正常,说明服务端是没问题的
系统环境/System Environment:ubuntu 16
版本号/Version:Paddle: PaddleOCR:2.7 问题相关组件/Related components:pdserving 0.9.0
运行指令/Command Code:这是示例代码public static void test(String base64) {
// INDArray npdata = Nd4j.createFromArray(base64);
2023-12-06 17:42:03.809 [main] INFO o.n.l.f.Nd4jBackend - [load,203] - Loaded [CpuBackend] backend
2023-12-06 17:42:04.750 [main] INFO o.n.n.NativeOpsHolder - [,109] - Number of threads used for linear algebra: 1
2023-12-06 17:42:04.799 [main] INFO o.n.n.Nd4jBlas - [,57] - Number of threads used for OpenMP BLAS: 10
2023-12-06 17:42:04.828 [main] INFO o.n.l.a.o.e.DefaultOpExecutioner - [printEnvironmentInformation,674] - Backend used: [CPU]; OS: [Mac OS X]
2023-12-06 17:42:04.828 [main] INFO o.n.l.a.o.e.DefaultOpExecutioner - [printEnvironmentInformation,675] - Cores: [10]; Memory: [8.0GB];
2023-12-06 17:42:04.829 [main] INFO o.n.l.a.o.e.DefaultOpExecutioner - [printEnvironmentInformation,676] - Blas vendor: [OPENBLAS]
Exception in thread "main" java.lang.NullPointerException
at io.paddle.serving.client.Client._packInferenceRequest(Client.java:212)
at io.paddle.serving.client.Client.predict(Client.java:480)
at io.paddle.serving.client.Client.predict(Client.java:388)
at io.paddle.serving.client.Client.predict(Client.java:337)
at cn.orins.coin.api.WordImageExtractor.test(WordImageExtractor.java:91)
at cn.orins.coin.api.WordImageExtractor.extractImagesFromWord(WordImageExtractor.java:153)
at cn.orins.coin.api.WordImageExtractor.main(WordImageExtractor.java:38)
我们提供了AceIssueSolver来帮助你解答问题,你是否想要它来解答(请填写yes/no)?/We provide AceIssueSolver to solve issues, do you want it? (Please write yes/no):
请尽量不要包含图片在问题中/Please try to not include the image in the issue.
Beta Was this translation helpful? Give feedback.
All reactions