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

CUDA out of memory #82

Closed
RicketyRick opened this issue Jul 9, 2020 · 1 comment
Closed

CUDA out of memory #82

RicketyRick opened this issue Jul 9, 2020 · 1 comment

Comments

@RicketyRick
Copy link

Hi! I run into an out of memory error right from the start.

Build is the current pip install and the current developer build.
Testprogram is your simple example:
import easyocr
reader = easyocr.Reader(['de'])
reader.readtext('test.png')

Cuda version 10.1
torch 1.5.1
torchvision 0.6.1

After start (and a clean reboot of my machine) I get:
RuntimeError: CUDA out of memory. Tried to allocate 856.00 MiB (GPU 0; 4.00 GiB total capacity; 1.69 GiB already allocated; 310.80 MiB free; 2.65 GiB reserved in total by PyTorch)

Is it even possible to use easyOCR with 4GB GPU memory?

Thank you!

@rkcosmos
Copy link
Contributor

It uses +-2GB on my machine.

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