Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleOCR
提交
df1e8b53
P
PaddleOCR
项目概览
PaddlePaddle
/
PaddleOCR
大约 1 年 前同步成功
通知
1528
Star
32962
Fork
6643
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
108
列表
看板
标记
里程碑
合并请求
7
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleOCR
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
108
Issue
108
列表
看板
标记
里程碑
合并请求
7
合并请求
7
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
df1e8b53
编写于
5月 20, 2021
作者:
B
bjjwwang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
support serving 0.6.0
上级
e609c3f3
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
13 addition
and
20 deletion
+13
-20
deploy/pdserving/README.md
deploy/pdserving/README.md
+6
-8
deploy/pdserving/README_CN.md
deploy/pdserving/README_CN.md
+6
-8
deploy/pdserving/web_service.py
deploy/pdserving/web_service.py
+1
-4
未找到文件。
deploy/pdserving/README.md
浏览文件 @
df1e8b53
...
...
@@ -37,13 +37,11 @@ PaddleOCR operating environment and Paddle Serving operating environment are nee
Install serving which used to start the service
```
pip3 install paddle-serving-server==0.
5
.0 # for CPU
pip3 install paddle-serving-server-gpu==0.
5
.0 # for GPU
pip3 install paddle-serving-server==0.
6
.0 # for CPU
pip3 install paddle-serving-server-gpu==0.
6
.0 # for GPU
# Other GPU environments need to confirm the environment and then choose to execute the following commands
pip3 install paddle-serving-server-gpu==0.5.0.post9 # GPU with CUDA9.0
pip3 install paddle-serving-server-gpu==0.5.0.post10 # GPU with CUDA10.0
pip3 install paddle-serving-server-gpu==0.5.0.post101 # GPU with CUDA10.1 + TensorRT6
pip3 install paddle-serving-server-gpu==0.5.0.post11 # GPU with CUDA10.1 + TensorRT7
pip3 install paddle-serving-server-gpu==0.6.0.post101 # GPU with CUDA10.1 + TensorRT6
pip3 install paddle-serving-server-gpu==0.6.0.post11 # GPU with CUDA11 + TensorRT7
```
3.
Install the client to send requests to the service
...
...
@@ -51,13 +49,13 @@ PaddleOCR operating environment and Paddle Serving operating environment are nee
The python3.7 version is recommended here:
```
wget https://paddle-serving.bj.bcebos.com/whl/paddle_serving_client-0.0.0-cp37-none-any.whl
wget https://paddle-serving.bj.bcebos.com/
test-dev/
whl/paddle_serving_client-0.0.0-cp37-none-any.whl
pip3 install paddle_serving_client-0.0.0-cp37-none-any.whl
```
4.
Install serving-app
```
pip3 install paddle-serving-app==0.
3.1
pip3 install paddle-serving-app==0.
6.0
```
**note:**
If you want to install the latest version of PaddleServing, refer to
[
link
](
https://github.com/PaddlePaddle/Serving/blob/develop/doc/LATEST_PACKAGES.md
)
.
...
...
deploy/pdserving/README_CN.md
浏览文件 @
df1e8b53
...
...
@@ -36,26 +36,24 @@ PaddleOCR提供2种服务部署方式:
1.
安装serving,用于启动服务
```
pip3 install paddle-serving-server==0.
5
.0 # for CPU
pip3 install paddle-serving-server-gpu==0.
5
.0 # for GPU
pip3 install paddle-serving-server==0.
6
.0 # for CPU
pip3 install paddle-serving-server-gpu==0.
6
.0 # for GPU
# 其他GPU环境需要确认环境再选择执行如下命令
pip3 install paddle-serving-server-gpu==0.5.0.post9 # GPU with CUDA9.0
pip3 install paddle-serving-server-gpu==0.5.0.post10 # GPU with CUDA10.0
pip3 install paddle-serving-server-gpu==0.5.0.post101 # GPU with CUDA10.1 + TensorRT6
pip3 install paddle-serving-server-gpu==0.5.0.post11 # GPU with CUDA10.1 + TensorRT7
pip3 install paddle-serving-server-gpu==0.6.0.post101 # GPU with CUDA10.1 + TensorRT6
pip3 install paddle-serving-server-gpu==0.6.0.post11 # GPU with CUDA11 + TensorRT7
```
2.
安装client,用于向服务发送请求
在
[
下载链接
](
https://github.com/PaddlePaddle/Serving/blob/develop/doc/LATEST_PACKAGES.md
)
中找到对应python版本的client安装包,这里推荐python3.7版本:
```
wget https://paddle-serving.bj.bcebos.com/whl/paddle_serving_client-0.0.0-cp37-none-any.whl
wget https://paddle-serving.bj.bcebos.com/
test-dev/
whl/paddle_serving_client-0.0.0-cp37-none-any.whl
pip3 install paddle_serving_client-0.0.0-cp37-none-any.whl
```
3.
安装serving-app
```
pip3 install paddle-serving-app==0.
3.1
pip3 install paddle-serving-app==0.
6.0
```
**Note:** 如果要安装最新版本的PaddleServing参考[链接](https://github.com/PaddlePaddle/Serving/blob/develop/doc/LATEST_PACKAGES.md)。
...
...
deploy/pdserving/web_service.py
浏览文件 @
df1e8b53
...
...
@@ -11,10 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
try
:
from
paddle_serving_server_gpu.web_service
import
WebService
,
Op
except
ImportError
:
from
paddle_serving_server.web_service
import
WebService
,
Op
from
paddle_serving_server.web_service
import
WebService
,
Op
import
logging
import
numpy
as
np
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录