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

python调用,存在内存泄漏,跑了一天,内存增长到6G #90

Closed
chencanhero opened this issue Dec 20, 2023 · 1 comment
Closed

Comments

@chencanhero
Copy link

No description provided.

@hiroi-sora
Copy link
Owner

hiroi-sora commented Dec 21, 2023

这是mkldnn加速库的祖传问题。解决方法有:

  1. 传入--enable_mkldnn=0禁用mkl。但是OCR速度会受到较大影响。
  2. 每隔一段时间,比如60s内没有新的任务,就重启一次引擎。这也是Umi-OCR的做法。
  3. 使用隔壁 RapidOCR-json

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

2 participants