-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
多卡性能比单卡慢 #1726
Comments
hub serving start -c deploy/hubserving/ocr_system/config.json { |
其实还有一个问题: |
开单卡,30张图片,总耗时:72.8076696395874 |
目前hub serving命令的背后支持三种形式:Flask、Gunicorn+Flask和ZMQ+Flask。
回复中给出的配置如下,因为最外层没有设置
如果需要多卡预测,需要更改为:
根据https://github.com/PaddlePaddle/PaddleOCR/tree/release/2.3/deploy/hubserving#%E5%8F%91%E9%80%81%E9%A2%84%E6%B5%8B%E8%AF%B7%E6%B1%82 的预测脚本,要测试多卡时需要启用多进程同时发送多个预测请求,改成10个并发请求后,运行预测测试,第一种配置耗时7.04秒,第二种配置耗时1.329秒,多卡serving可以正常使用。 |
请看一下我按照您说的设置遇到的情况,#2293 |
欢迎您反馈PaddleHub使用问题,非常感谢您对PaddleHub的贡献!
在留下您的问题时,辛苦您同步提供如下信息:
1)PaddleHub2.1,PaddlePaddle-GPU 2.2
2)PaddleHub的docker环境
开启GPU,设置多卡后,比如100张图片,预测,总耗时比单卡还慢。但是我看咱们宣传的是性能会大幅度提升。是我没设置对么?
设置的参数是--use_gpu --gpu 0,1,2,3
The text was updated successfully, but these errors were encountered: