PaddlePaddle / PaddleOCR

Awesome multilingual OCR toolkits based on PaddlePaddle (practical ultra lightweight OCR system, support 80+ languages recognition, provide data annotation and synthesis tools, support training and deployment among server, mobile, embedded and IoT devices)
https://paddlepaddle.github.io/PaddleOCR/
Apache License 2.0
44.77k stars 7.86k forks source link

RuntimeError: MKL_Free_Buffers not found. #4720

Closed JixuH closed 2 years ago

JixuH commented 3 years ago

paddleocr版本:2.3.0.2 运行paddleocr报错:

Traceback (most recent call last):
  File "demo.py", line 49, in <module>
    result, output_im = ocr.Process(img) # blacklabel laser
  File "OCR.py", line 84, in OCR.OCR.Process
  File "paddleocr.py", line 379, in ocr
  File "tools\infer\predict_system.py", line 60, in __call__
  File "tools\infer\predict_det.py", line 213, in __call__
RuntimeError: MKL_Free_Buffers not found.
[10252] Failed to execute script 'demo' due to unhandled exception!

4台配置相同的电脑上有一台会出现这样的情况,查看其他人之前提出同样的issues也没有很好的解决方法,请问现在这个问题解决了吗?安装的paddleocr是直接使用pip安装的,也没有自己编译whl。

LDOUBLEV commented 3 years ago

应该是这台电脑没有安装MLKDNN或者这台电脑的CPU不支持mkldnn吧

可以试下关闭mkldnn选项后是否能正常预测: enable_mkldnn=False https://github.com/PaddlePaddle/PaddleOCR/blob/ccf749e3ee7ca5b91bf5668aeded26d4ca908f23/tools/infer/utility.py?_pjax=%23js-repo-pjax-container%2C%20div%5Bitemtype%3D%22http%3A%2F%2Fschema.org%2FSoftwareSourceCode%22%5D%20main%2C%20%5Bdata-pjax-container%5D#L104

开启mkldnn在可以CPU上加速预测

paddle-bot-old[bot] commented 2 years ago

Since you haven\'t replied for more than 3 months, we have closed this issue/pr. If the problem is not solved or there is a follow-up one, please reopen it at any time and we will continue to follow up. It is recommended to pull and try the latest code first. 由于您超过三个月未回复,我们将关闭这个issue/pr。 若问题未解决或有后续问题,请随时重新打开(建议先拉取最新代码进行尝试),我们会继续跟进。

JH-Lam commented 1 year ago

感觉是与 paddlelite包冲突,后者的包不要在全局位置导入, have a try

cloudy-sfu commented 9 months ago

应该是这台电脑没有安装MLKDNN或者这台电脑的CPU不支持mkldnn吧

可以试下关闭mkldnn选项后是否能正常预测: enable_mkldnn=False

https://github.com/PaddlePaddle/PaddleOCR/blob/ccf749e3ee7ca5b91bf5668aeded26d4ca908f23/tools/infer/utility.py?_pjax=%23js-repo-pjax-container%2C%20div%5Bitemtype%3D%22http%3A%2F%2Fschema.org%2FSoftwareSourceCode%22%5D%20main%2C%20%5Bdata-pjax-container%5D#L104

开启mkldnn在可以CPU上加速预测

无效

sharoseali commented 8 months ago

@JiaXiao243 @cloudy-sfu Did you solved this error ? I am getting the same issue. image

cloudy-sfu commented 8 months ago

@JiaXiao243 @cloudy-sfu Did you solved this error ? I am getting the same issue. image

No, not resolved.

sharoseali commented 8 months ago

Then the issue should be open. Any hints on how to proceed ? @JixuH, can you reopen this issue?

616tree commented 4 months ago

MKL_Free_Buffers not found如何解决