我用的是centos7 ,cuda 11.2 + cudnn 8.2.0,显卡是Quadro P4000,paddle 版本是:paddlepaddle-gpu 2.1.1
--use-gpu=False时没问题,而使用gpu进行识别时报错:
--------------------------------------
C++ Traceback (most recent call last):
--------------------------------------
0 paddle::framework::SignalHandle(char const*, int)
1 paddle::platform::GetCurrentTraceBackString[abi:cxx11]()
----------------------
Error Message Summary:
----------------------
FatalError: `Segmentation fault` is detected by the operating system.
[TimeInfo: *** Aborted at 1626252476 (unix time) try "date -d @1626252476" if you are using GNU date ***]
[SignalInfo: *** SIGSEGV (@0x0) received by PID 51654 (TID 0x7f38594bc700) from PID 0 ***]
通过打日志的形式定位到问题应该是出现在predict_det.py中,
self.input_tensor.copy_from_cpu(img)
self.predictor.run() #就这行代码出错
有人能指点下怎么回事儿么?
这个问题可能还比较难解决,帮你在github上建了一个issue,建议你关注这个issue吧
https://github.com/PaddlePaddle/PaddleOCR/issues/3345
我看有人回复了,可以看下是否可以解决问题
https://github.com/PaddlePaddle/PaddleOCR/issues/3345
也可以在issue下面回复一下,可以收到邮件通知