-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Easyocr memory leak #815
Comments
once in a while you can do |
We tried with both the commands but this is not working...In the GPU also memory leak will happen? |
Check to make sure you're not using different sized images as input. Since the model is fully convolutional, it tries to make spaces for as large of an input as possible. See the image where the memory leak occurs and make sure it's not too large. |
Image is not too large , I tried uploading the same image for multiple times in that case also memory is increasing and also i have checked memory footprint, reader.readertext() function is occupying memory in each call |
I observed the same behavior, ie. calling |
any advice on this issue? I already tried |
Hi, any news on this ? that's a very big issue.. I observe memory leak in CPU. Even using |
Observing this issue in CPU as well. Memory keeps increasing until it reaches limit in k8s and the service gets Killed. |
I’m facing the same problem. Any updates on this ? `
` when calling the
` and it keep increasing every time the method is called. |
Is there any update on this? After extensive profiling also its hard to pinpoint the exact line where the issue is happening. Since tools like tracemalloc and objgraph are not able to show any leaks, it's possible this is happening in c++ side of things which are being called by pytorch or numpy wrappers |
We could confirm this problem. In our case each call to "readertxt" adds 33mb leak. |
At the end the only way I found to solve the problem is to do everything in a multiprocessing process. Not a very clean solution, it adds a little overhead, but not other solution was available.. |
For those like me who are only using a CPU and facing this issue, make sure you add the gpu=False flag. Memory leak was fixed for me after adding it.
|
This fix worked for me, might work for others. |
Hi @daniellovera, has this been fixed in the end? I see that your PR is still open? |
Works great for me. |
Thanks! :) |
Everytime when I call the reader.readertxt function memory will be increasing in both GPU and CPU.Need some inputs from anyone
The text was updated successfully, but these errors were encountered: