首页 PaddleOCR 帖子详情
paddleocr gpu乱码问题
收藏
快速回复
PaddleOCR 问答OCR 1297 6
paddleocr gpu乱码问题
收藏
快速回复
PaddleOCR 问答OCR 1297 6

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
我找不到任何参考来解决这个问题,请您帮忙给出一些指导意见,谢谢

0
收藏
回复
全部评论(6)
时间顺序
宇宙物语
#2 回复于2023-10

运行import paddle 

paddle.utils.run_check()进行检测一下

0
回复
j
jjnwer
#3 回复于2023-10
运行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.

 

这里面能看出什么异常吗?

0
回复
宇宙物语
#4 回复于2023-10

“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.”

没完全安装成功,在官方那找个合适的版本重新安装一下

0
回复
宇宙物语
#5 回复于2023-10

当时没看清楚楼主的信息。。这ResourceWarning不是错误,应该不影响运行

0
回复
j
jjnwer
#6 回复于2023-10
当时没看清楚楼主的信息。。这ResourceWarning不是错误,应该不影响运行

好的,我已经解决了,把cuda降到10.2就ok了,thanks

0
回复
李琴在努力工作
#7 回复于2023-10

hsigjslrg

0
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户