-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
c++推理的问题 / Problem with c++ inference #40473
Comments
您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档、常见问题、历史Issue、AI社区来寻求解答。祝您生活愉快~ Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the API,FAQ,Github Issue and AI community to get the answer.Have a nice day! |
|
你好 @wangxinxin08,
我对代码进行了更深入的研究,试图查看哪个变量不是浮点数,我发现问题出在预测过程的这一部分:
在“else”中,out_data 是一个浮点向量,在我的情况下它包含浮点值(全为 0?这是否指向另一个问题?)也许你可以告诉我这个变量对应什么?为什么这条线
如前所述,错误发生在 谢谢你。 Hello @wangxinxin08 ,
in the "else" out_data is a vector of float in my case it contains values which are floats (all 0 ? does this point to another problem ?) maybe you could tell me what this variable corresponds to ? and why does this line
as mentioned before the error occurs in Thank you. |
好吧,我成功地使用 在 cpu 上运行 ocr 会给出正确的输出,所以我认为 paddle 已经正确构建。 我之前提到过导致崩溃的确切行,这是我在 gpu 和 cpu 上得到的输出。 CPU :
GPU:
|
这是输出:
谢谢。 |
请问你那个输入输出类型不匹配的问题解决了吗 |
Since you haven't replied for more than a year, we have closed this issue/pr. |
你好,
在构建 paddle c++ 推理之后,我尝试运行 paddleOCR 和 paddleDetection 但我遇到了多个问题:
PaddleOCR:
用 cpu 运行它确实有效,但是当我尝试用 GPU 运行它时,我得到了这个:
malloc(): invalid size (unsorted) Aborted (core dumped)
我试图找到错误的来源,它似乎来自
paddle/fluid/inference/api/details/zero_copy_tensor.cc
,下面的行更具体:auto *dev_ctx = static_cast<const paddle::platform::CUDADeviceContext *>(pool.Get(gpu_place));
关于可能导致这种情况的任何想法?以及如何解决?
PaddleDETECTION:
我收到此错误 (在 CPU 和 GPU 上):
它来自 Paddle/paddle/phi/core/dense_tensor.cc(在另一个问题中谈到 #4174
谢谢。
系统信息
GPU: RTX 3080
OS ubuntu 20.04
GIT COMMIT ID: a40ea45
WITH_MKL: ON
WITH_MKLDNN: ON
WITH_GPU: ON
WITH_ROCM: OFF
WITH_ASCEND_CL: OFF
WITH_ASCEND_CXX11: OFF
CUDA version: 11.5
CUDNN version: v8.3
CXX compiler version: 7.5.0
Hello,
After building paddle c++ inference, i tried to run paddleOCR and paddleDetection but i came across multiple issues :
PaddleOCR :
running it with cpu does work but when i try to run it with GPU i get this :
malloc(): invalid size (unsorted) Aborted (core dumped)
i tried to locate the source of the bug and it seems to come from
paddle/fluid/inference/api/details/zero_copy_tensor.cc
, the line below to be more specific :auto *dev_ctx = static_cast<const paddle::platform::CUDADeviceContext *>(pool.Get(gpu_place));
Any idea on what might be causing this ? and how to solve it ?
PaddleDETECTION:
i get this error (on CPU and GPU):
It's coming from Paddle/paddle/phi/core/dense_tensor.cc (talked about in another issue #4174
Thanks.
System information
GPU: RTX 3080
OS ubuntu 20.04
GIT COMMIT ID: a40ea45
WITH_MKL: ON
WITH_MKLDNN: ON
WITH_GPU: ON
WITH_ROCM: OFF
WITH_ASCEND_CL: OFF
WITH_ASCEND_CXX11: OFF
CUDA version: 11.5
CUDNN version: v8.3
CXX compiler version: 7.5.0
The text was updated successfully, but these errors were encountered: