Closed isspid closed 10 months ago
It seems that actually when I run EasyOCR in this environment, the GPU also doesn't get used. In another environment the GPU does get used. Could it be that the way pytorch was installed is the incorrect one?
Created a new conda environment with python 3.10. First installed pytorch with this command:
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117
which I got from the official pytorch website.
Then I installed ocrmypd and finally I ran: pip install git+https://github.com/ocrmypdf/OCRmyPDF-EasyOCR.git
.
Now everything is working fine.
While running ocrmypdf with EasyOCR as an engine I get the following output. When using EasyOCR not as part of ocrmypdf I have actually not had any problems with using the GPU.