-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
多线程加速GPU推理 #10433
Comments
使用 en_PP-OCRv3_rec_infer 模型 |
为什么不支持多线程? |
|
图片老不显示看不到 |
不够快的话多开一些线程,做个对比就出来了! |
把初始化放在外面
|
default_engine 可能不支持可重入,多线程情况下会异常。fastdeploy有多线程/多进程示例,建议用fd提供的方法 |
该issue长时间未更新,暂将此issue关闭,如有需要可重新开启。 |
确实可以提高速度,并且显存占用也增加了(1个线程时大概1GB,4线程大概3GB),但是会大概有1/10的ocr调用出现下面这个问题 |
请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem
在ocr的gpu推理时,由于图过多,性能不能满足,所以想用多线程试试的,发现predictor不支持多线程,所以尝试了加锁方案以及创建多个predictor方案,发现性能并没有提升,不知道是为什么。 现在采用的是ch_PP-OCRv3_rec_infer里的模型加ppocr_keys_v1.txt,实际上需要识别的只有印刷体的数字和字母。请问下有什么优化方案呢?
The text was updated successfully, but these errors were encountered: