-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[OCR flask deployment] When using flask to deploy the OCR model with enable mkldnn, an error occurred in the second prediction. #33831
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! |
Reproduced with
|
@lidanqing-intel @LDOUBLEV is there any follow up? Does this problem solved ? I face the same issue by calling predict_det.py. with mkldnn set to "True" Once set mkldnn to "False", this problem gone, but processing time increase. |
应该与flask进程冲突有关,这个Issue有提到:https://github.com/PaddlePaddle/PaddleOCR/issues/3753 |
Env:
I expect to deploy PaddleOCR on my machine using Flask. And I want to speed up the prediction using Mkldnn. However, an error occurred in the second prediction When using flask to deploy the OCR model with enable mkldnn.
However, the third prediction will not be wrong, and the fourth prediction will be wrong again. Moreover, there is no error occurred when I set threaded to False.
The error message:
The code to reproduce the problem is as follows.
When enable is set to False, the correct result can be obtained and no error is reported, but the prediction speed is too slow.
I found that there is a conv2d OP dnnl warning before every error.
Paddle/paddle/fluid/framework/operator.cc
Line 242 in 89fdd6c
The tested image.jpg
https://raw.githubusercontent.com/PaddlePaddle/PaddleOCR/dygraph/doc/imgs/11.jpg
The text was updated successfully, but these errors were encountered: