EasyOCR icon indicating copy to clipboard operation
EasyOCR copied to clipboard

how to enable GPU on m1 ?

Open Hans-han opened this issue 3 years ago • 0 comments

Hi, Since PyTorch now support MPS acceleration I wonder how would I enable gpu using GPU parameters.

import torch
device = torch.device("mps")

reader = easyocr.Reader(['ch_sim',"en"],gpu=device)

above code does not work

Hans-han avatar Aug 01 '22 05:08 Hans-han