EasyOCR icon indicating copy to clipboard operation
EasyOCR copied to clipboard

easyOCR still uses GPU although not asked

Open ozancaglayan opened this issue 3 years ago • 1 comments

Hi,

When I create the reader object with gpu=False, it doesnt directly use the GPU device, but upon calling readtext, it captures the first available GPU device apparently uses it according to nvidia-smi. I verified that its not detect() that triggers the GPU use so its probably the recognizer pipeline. I didnt have time to debug further.

ozancaglayan avatar Sep 15 '22 13:09 ozancaglayan

thanks, we will investigate this.

rkcosmos avatar Sep 17 '22 06:09 rkcosmos

Hello, I am also seeing the same issue and would like to run only on CPU. Is there any update on this?

Kris-Duszak avatar Sep 28 '22 19:09 Kris-Duszak

We found the problem. Patch is coming soon.

rkcosmos avatar Sep 29 '22 11:09 rkcosmos

I've set pin_memory=False in get_text function for recognizer.py and this seems to work. Is this all that is needed?

Kris-Duszak avatar Sep 29 '22 13:09 Kris-Duszak