EasyOCR icon indicating copy to clipboard operation
EasyOCR copied to clipboard

VM shuts down when easy-ocr is run on it

Open rishavmitra opened this issue 1 year ago • 5 comments

Hello, We are trying to create a website that converts Images in a PDF to text. While running it locally this works works fine and after a minute we get the results.

But when I hosted my application on a VM in Azure, the VM shuts down whenever the readtext() function is called for reading large text filled images. There are no exceptions raised and no warnings.

Here is a screenshot:

image

This is the Easy-ocr function:

image

Any help is highly appreciated.

rishavmitra avatar Jan 18 '24 08:01 rishavmitra

I am facing the same issue but on docker, any solution for this?

vishnupriyavr avatar Jan 24 '24 12:01 vishnupriyavr

I am facing the same issue but on docker, any solution for this?

Yeah, the solution was upgrading your RAM, Seems like Easy OCR requires a minimum of 8GB ram to run. So bumping up the RAM on your VM might solve this issue.

rishavmitra avatar Jan 24 '24 18:01 rishavmitra

I am facing the same issue but on docker, any solution for this?

Yeah, the solution was upgrading your RAM, Seems like Easy OCR requires a minimum of 8GB ram to run. So bumping up the RAM on your VM might solve this issue.

Yeah you are right, figured it out a while ago.

vishnupriyavr avatar Jan 25 '24 06:01 vishnupriyavr

I'm having a similar issue. Running on an Azure GPU worker - 8 cores, 56 GB RAM, and 16GB vRAM. It just shuts down. :(

Siniara avatar Jul 04 '24 11:07 Siniara

I'm having a similar issue. Running on an Azure GPU worker - 8 cores, 56 GB RAM, and 16GB vRAM. It just shuts down. :(

During training or inference? Are you getting CUDA OOM errors? Running the detection or recognition model? Or both?

daniellovera avatar Jul 10 '24 04:07 daniellovera