0

I am using EasyOCR for text extraction from images. It uses PyTorch. There are multiple images in different folders and the sequence in which these folders are read isn't consequential.

When run in sequence, EasyOCR is by default using GPU and is faster compared to when run on CPU. But when Python / Torch Multiprocessing is invoked, so that the multiple folders are read in parallel, EasyOCR is defaulting to CPU. torch.cuda.is_available returns False.

How can I solve this?

James Z
  • 12,209
  • 10
  • 24
  • 44

1 Answers1

1

If torch.cuda.is_available returns False,

  1. Verify your device has a GPU.
  2. Verify that the installed version of CUDA is supported on your GPU.
  3. Verify that you have installed torch with CUDA support.

Check this question for additional details: Why `torch.cuda.is_available()` returns False even after installing pytorch with cuda?