-
Notifications
You must be signed in to change notification settings - Fork 1k
通用OCR产线执行速度慢 #3898
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
我使用 文档场景信息抽取v3(PP-ChatOCRv3-doc) 产线,使用服务化部署的方式进行图片识别时,使用GPU,也是需要10秒左右才能够返回数据。 |
第一次初始化的时候需要时间,请问你是怎么测试的呢?如果希望获取模型的推理性能,可以使用这个文档测试 |
我在云服务器上按用pip安装了最新版的paddlepaddle,和paddleX,使用命令如下: 然后就按照通用OCR产线使用教程,采用命令行的模式进行的测试,我实验了很多次,使用GPU基本上都需要6~7秒的时间,使用CPU需要12秒左右的时间。 |
### 以下是我调用 文档场景信息抽取v3(PP-ChatOCRv3-doc)产线产生的日志: ### 以下是我使用单模型性能测试的数据: (base) ubuntu@VM-0-2-ubuntu:~/ocr$ PADDLE_PDX_INFER_BENCHMARK=True PADDLE_PDX_INFER_BENCHMARK_WARMUP=5 PADDLE_PDX_INFER_BENCHMARK_ITERS=10 PADDLE_PDX_INFER_BENCHMARK_OUTPUT_DIR=./benchmark python test_infer.py C++ Traceback (most recent call last):0 phi::OneDNNContextThreadLocals::Body::~Body() Error Message Summary:FatalError: Aborted (core dumped) C++ Traceback (most recent call last):0 phi::OneDNNContextThreadLocals::Body::~Body() Error Message Summary:FatalError: Aborted (core dumped) C++ Traceback (most recent call last):0 phi::OneDNNContextThreadLocals::Body::~Body() Error Message Summary:FatalError: Aborted (core dumped)
C++ Traceback (most recent call last):0 phi::OneDNNContextThreadLocals::Body::~Body() Error Message Summary:FatalError: Aborted (core dumped) C++ Traceback (most recent call last):0 phi::OneDNNContextThreadLocals::Body::~Body() Error Message Summary:FatalError: Aborted (core dumped) C++ Traceback (most recent call last):0 phi::OneDNNContextThreadLocals::Body::~Body() Error Message Summary:FatalError: Aborted (core dumped) C++ Traceback (most recent call last):0 phi::OneDNNContextThreadLocals::Body::~Body() Error Message Summary:FatalError: Aborted (core dumped) (base) ubuntu@VM-0-2-ubuntu:~/ocr$ PADDLE_PDX_INFER_BENCHMARK=True PADDLE_PDX_INFER_BENCHMARK_WARMUP=5 PADDLE_PDX_INFER_BENCHMARK_ITERS=10 PADDLE_PDX_INFER_BENCHMARK_OUTPUT_DIR=./benchmark python test_infer.py C++ Traceback (most recent call last):0 phi::OneDNNContextThreadLocals::Body::~Body() Error Message Summary:FatalError: Aborted (core dumped) |
请大神帮忙看看,我测试单个模型的相应都是毫秒级的,为什么用PP-ChatOCRv3-doc产线就需要6~7秒的时间 |
请问这个问题,有啥说法没? |
Checklist:
描述问题
腾讯云服务器上通过命令行方式运行通用OCR产线,识别速度慢,指定 --device gpu:0 平均需要6秒,指定--device cpu 平均需要12秒。
复现
命令:
paddlex --pipeline OCR
--input general_ocr_002.png
--use_doc_orientation_classify False
--use_doc_unwarping False
--use_textline_orientation False
--device gpu:0
环境
请提供您使用的PaddlePaddle和PaddleX的版本号
paddlePaddle 和PaddleX 均为最新版 V3.0.0-rc0
请提供您使用的操作系统信息,如Linux/Windows/MacOS
两卡GPU基础型 - 2*16GB+ | 16+TFlops SP
CPU - 16 核 | 内存 - 64GB
云硬盘 - 80GB
Ubuntu 20.04
Python 3.12.9
Driver 525.105.17, CUDA 12.0, cuDNN 8
The text was updated successfully, but these errors were encountered: