请提出你的问题 Please ask your question
使用cpu没有问题,
ocr = PaddleOCR(use_angle_cls=True, lang="ch", page_num=PAGE_NUM)
使用GPU报错
ocr = PaddleOCR(use_angle_cls=True, lang="ch", page_num=PAGE_NUM,use_gpu=0)
FatalError: Illegal instruction
is detected by the operating system.
[TimeInfo: *** Aborted at 1715312538 (unix time) try "date -d @1715312538" if you are using GNU date ***]
[SignalInfo: *** SIGILL (@0x7abb4abe18aa) received by PID 179144 (TID 0x7abbc2926440) from PID 1253972138 ***]
paddleocr的版本: 2.7.3
ubuntu:22.04
cuda:12.2
torch:2.3.0
1条答案
按热度按时间h43kikqp1#
你好,use_gpu默认为True,use_gpu=0时表示不适用gpu。看起来使用gpu情况下没有问题