You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The memory is allocated in the crnn class in the forward function when creating "features" (See line 223) ,
The memory should be freed when we go outside the local scope of the forward function, right ? :
The memory is never freed and running ocr_image multiple times results in a huge increase of ram usage.
Do someone have any insights on that ?
I am using last doctr main version and torch==1.12.0+cpu on Linux-5.15.0-58-generic-x86_64-with-glibc2.35
Code snippet to reproduce the bug
"""
Error traceback
"""
Environment
"""
Deep Learning backend
is_tf_available: False
is_torch_available: True
The text was updated successfully, but these errors were encountered:
Bug description
Hello everyone
I am running this function called ocr_image :

with the model being loaded with the following code (I use cpu) :
The memory is allocated in the crnn class in the forward function when creating "features" (See line 223) ,
The memory should be freed when we go outside the local scope of the forward function, right ? :
The memory is never freed and running ocr_image multiple times results in a huge increase of ram usage.
Do someone have any insights on that ?
I am using last doctr main version and torch==1.12.0+cpu on Linux-5.15.0-58-generic-x86_64-with-glibc2.35
Code snippet to reproduce the bug
"""
Error traceback
"""
Environment
"""
Deep Learning backend
is_tf_available: False
is_torch_available: True
The text was updated successfully, but these errors were encountered: