hi there,
我在使用paddleOCR对pdf文本进行识别时遇到了问题,在本地cpu上运行时,一切都没有问题,进行的很顺利;但当我试图使用gpu进行加速时,同样的代码出现以下报错:
/usr/lib/python3.10/subprocess.py:1072: ResourceWarning: subprocess 570209 is still running
_warn("subprocess %s is still running" % self.pid,
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/usr/lib/python3.10/subprocess.py:767: ResourceWarning: unclosed file <_io.TextIOWrapper name=11 encoding='UTF-8'>
_cleanup()
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/usr/lib/python3.10/subprocess.py:1072: ResourceWarning: subprocess 570213 is still running
_warn("subprocess %s is still running" % self.pid,
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/usr/lib/python3.10/subprocess.py:1072: ResourceWarning: subprocess 570219 is still running
_warn("subprocess %s is still running" % self.pid,
ResourceWarning: Enable tracemalloc to get the object allocation traceback
我找不到任何参考来解决这个问题,请您帮忙给出一些指导意见,谢谢
运行import paddle
paddle.utils.run_check()进行检测一下
谢谢您的idea,以下是结果:
Running verify PaddlePaddle program ...
I1008 01:03:55.577062 641478 interpretercore.cc:237] New Executor is Running.
W1008 01:03:55.577255 641478 gpu_resources.cc:96] The GPU architecture in your current machine is Pascal, which is not compatible with Paddle installation with arch: 70 75 80 86 , it is recommended to install the corresponding wheel package according to the installation information on the official Paddle website.
W1008 01:03:55.577263 641478 gpu_resources.cc:119] Please NOTE: device: 0, GPU Compute Capability: 6.1, Driver API Version: 12.0, Runtime API Version: 12.0
W1008 01:03:55.577693 641478 gpu_resources.cc:149] device: 0, cuDNN Version: 8.9.
I1008 01:03:55.824810 641478 interpreter_util.cc:518] Standalone Executor is Used.
PaddlePaddle works well on 1 GPU.
PaddlePaddle is installed successfully! Let's start deep learning with PaddlePaddle now.
这里面能看出什么异常吗?
“The GPU architecture in your current machine is Pascal, which is not compatible with Paddle installation with arch: 70 75 80 86 , it is recommended to install the corresponding wheel package according to the installation information on the official Paddle website.”
没完全安装成功,在官方那找个合适的版本重新安装一下
当时没看清楚楼主的信息。。这ResourceWarning不是错误,应该不影响运行
好的,我已经解决了,把cuda降到10.2就ok了,thanks
hsigjslrg