EasyOCR uses the Mac GPU by default

It has since version 1.7.0, and prints nothing to say so.

6.8x

faster OCR than 2 CPU threads

Just the text? OCR Actor, $0.006 a scanned page

Tesseract, on Apify's servers: files leave your computer.

Check which device it picked

Ask the Reader. The comments show what this Mac printed:

import easyocr

reader = easyocr.Reader(["en"])
print(reader.device)  # mps
w = next(reader.detector.parameters())
print(w.device)  # mps:0

mps is MPS, the Apple GPU. With gpu=False, both lines print cpu.

Or watch the GPU load in Terminal while it reads, no sudo:

ioreg -r -c AGXAccelerator -d 1 | grep -o '"Device Utilization %"=[0-9]*'

It peaked at 75 to 100 in the GPU runs. Other apps use the GPU too.

GPU and CPU: same text, far less time

Seconds a page, readtext with paragraph=True
Device Page 1 Page 2
Mac GPU, 4 runs 4.97 to 5.48 4.03 to 4.56
CPU, 2 threads, 2 runs 31.01 to 35.41 29.09 to 32.79
CPU, 1 thread 39.34 35.0

347 of 399 words in every run, same text byte for byte

3.7 to 4.3x faster for the whole process, model load included

The CPU run needed far more memory

16 to 20 GB peak memory (RSS), CPU, 2 runs

1.6 GB peak memory (RSS), Mac GPU

On the GPU, the Metal driver held another 5.46 to 6.54 GB, which RSS may not count.

Count both, and the GPU run used about 7 to 8 GB.

/usr/bin/time -l agreed: peak footprint 7.0 GB on the GPU, 20.0 GB on the CPU.

What each gpu= value did on this Mac

Reader(["en"], gpu=...), verbose on
gpu= Device Note
left out, or True mps No device message
"mps" mps No device message
False cpu "Using CPU. Note: This module is much faster with a GPU."
"cpu" cpu No "Using CPU"
"cuda" none Fails in Reader()

torch.device("mps") works too. Values other than True or False go to torch unchecked, and "cuda" fails oddly:

AttributeError: module 'torch.mps' has no attribute 'current_device'

Two warnings, both harmless today

Every run, GPU or CPU, printed this for each page:

UserWarning: 'pin_memory' argument is set as true but not supported on MPS now, device pinned memory won't be used.

EasyOCR hard-codes pin_memory=True, and torch checks the Mac for MPS, not the model's device. So CPU runs print it too.

CPU runs also warn that torch.quantize_per_tensor is deprecated: EasyOCR tries to quantize its CPU recognizer. Neither warning changed the text.

On NVIDIA: install a CUDA torch first

With the default gpu=True, EasyOCR tries CUDA, then MPS, then the CPU. It uses CUDA only if this prints True:

python -c "import torch; print(torch.cuda.is_available())"

On Windows, pip install easyocr pulls a CPU-only torch. Install the CUDA build first. pytorch.org gives this line for CUDA 13.2:

pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu132

On Linux, PyPI's torch is already a CUDA build. "Torch not compiled with CUDA enabled" means your torch has no CUDA.

This Mac has no NVIDIA GPU, so no CUDA numbers here. The EasyOCR maintainers publish none either.

Three gotchas in EasyOCR's code

What I did not test

How I tested it
  • The 2 scanned book pages of my PAGE XML test, 399 true words, 1920-pixel JPEGs.
  • Apple M5 Max, macOS 26.6, easyocr 1.7.2, torch 2.15.0, Python 3.14.7, from pip install easyocr.
  • One process a run, one run at a time, at background priority. torch on 2 threads, or 1 for the 1-thread run.
  • Every run: readtext(path, paragraph=True, detail=0). Score: true words found in order.
  • Memory: peak RSS, and torch's MPS driver memory. GPU load: ioreg, once a second.
  • A fact-check rerun added one GPU and one CPU run, with /usr/bin/time as a second memory meter.
  • The gpu= table read 6 lines of page 1. All 6 runs that worked gave the same text.
  • On the GPU, page 1 took 0.74 to 1.06 s more than page 2: warmup, and a different page.
  • easyocr is Apache 2.0. torch's wheel lists Apache-2.0, BSD, MIT and other parts; its LICENSE file is BSD style.
  • Scripts and results stay in our private repo, in research/bench/easyocr-gpu-2026-11-24/.
Sources

Questions people ask

What does "Neither CUDA nor MPS are available" mean?

With the default gpu=True, torch saw neither an NVIDIA GPU nor the Apple GPU, so EasyOCR fell back to the CPU. On a PC with an NVIDIA card, install a CUDA build of torch first.

Why is EasyOCR's text wrong or empty on my M1 Mac?

Users report it in open issues: no text since 1.7.0, wrong characters on the GPU, or gibberish with batch_size above 1. The maintainers have no Mac to test, and suggest gpu=False. On this Mac, GPU and CPU text matched.

Can I pick a second NVIDIA GPU?

gpu="cuda:1" goes to torch as is, but users report that readtext fails on any GPU but cuda:0. Their workaround is CUDA_VISIBLE_DEVICES. I did not test it.

Does gpu=False keep EasyOCR off the GPU?

On this Mac, yes: the models sat on the CPU, and GPU load averaged 0% to 1.2% in the CPU runs. On NVIDIA, some users report GPU memory use with gpu=False. I did not test that.

Need only the text?

Run our Actor. It reads scans with Tesseract on Apify's servers, not EasyOCR: no GPU needed, but files leave your computer. Its code, run on this Mac, found 393 of 399 words here; EasyOCR found 347.

Try the Actor

Or send us the scan. Tack, our AI, does the job for $29, up to 50 pages. First page free.

Get one page free