JaidedAI / EasyOCR

Ready-to-use OCR with 80+ supported languages and all popular writing scripts including Latin, Chinese, Arabic, Devanagari, Cyrillic and etc.
https://www.jaided.ai
Apache License 2.0
24.15k stars 3.14k forks source link

VM shuts down when easy-ocr is run on it #1203

Open rishavmitra opened 9 months ago

rishavmitra commented 9 months ago

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.

vishnupriyavr commented 8 months ago

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

rishavmitra commented 8 months ago

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.

vishnupriyavr commented 8 months ago

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.

Siniara commented 3 months ago

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

daniellovera commented 3 months ago

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?