提交 94faae6c 编写于 作者: littletomatodonkey's avatar littletomatodonkey

fix export

上级 8293b6b0
...@@ -5,9 +5,7 @@ from __future__ import print_function ...@@ -5,9 +5,7 @@ from __future__ import print_function
import os import os
import sys import sys
__dir__ = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, ".")
sys.path.append(__dir__)
sys.path.append(os.path.abspath(os.path.join(__dir__, '../../../')))
import argparse import argparse
import ast import ast
......
...@@ -5,9 +5,7 @@ from __future__ import print_function ...@@ -5,9 +5,7 @@ from __future__ import print_function
import os import os
import sys import sys
__dir__ = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, ".")
sys.path.append(__dir__)
sys.path.append(os.path.abspath(os.path.join(__dir__, '../../../')))
import argparse import argparse
import ast import ast
......
...@@ -5,10 +5,7 @@ from __future__ import print_function ...@@ -5,10 +5,7 @@ from __future__ import print_function
import os import os
import sys import sys
sys.path.insert(0, ".")
__dir__ = os.path.dirname(os.path.abspath(__file__))
sys.path.append(__dir__)
sys.path.append(os.path.abspath(os.path.join(__dir__, '../../../')))
import argparse import argparse
import ast import ast
......
[English](readme_en.md) | 简体中文 [English](readme_en.md) | 简体中文
PaddleOCR提供2种服务部署方式: PaddleOCR提供2种服务部署方式:
- 基于PaddleHub Serving的部署:代码路径为"`./deploy/hubserving`",按照本教程使用; - 基于PaddleHub Serving的部署:代码路径为"`./deploy/hubserving`",按照本教程使用;
- 基于PaddleServing的部署:代码路径为"`./deploy/pdserving`",使用方法参考[文档](../pdserving/readme.md) - 基于PaddleServing的部署:代码路径为"`./deploy/pdserving`",使用方法参考[文档](../pdserving/readme.md)
# 基于PaddleHub Serving的服务部署 # 基于PaddleHub Serving的服务部署
...@@ -29,12 +29,6 @@ deploy/hubserving/ocr_system/ ...@@ -29,12 +29,6 @@ deploy/hubserving/ocr_system/
```shell ```shell
# 安装paddlehub # 安装paddlehub
pip3 install paddlehub --upgrade -i https://pypi.tuna.tsinghua.edu.cn/simple pip3 install paddlehub --upgrade -i https://pypi.tuna.tsinghua.edu.cn/simple
# 在Linux下设置环境变量
export PYTHONPATH=.
# 或者,在Windows下设置环境变量
SET PYTHONPATH=.
``` ```
### 2. 下载推理模型 ### 2. 下载推理模型
......
English | [简体中文](readme.md) English | [简体中文](readme.md)
PaddleOCR provides 2 service deployment methods: PaddleOCR provides 2 service deployment methods:
- Based on **PaddleHub Serving**: Code path is "`./deploy/hubserving`". Please follow this tutorial. - Based on **PaddleHub Serving**: Code path is "`./deploy/hubserving`". Please follow this tutorial.
- Based on **PaddleServing**: Code path is "`./deploy/pdserving`". Please refer to the [tutorial](../pdserving/readme_en.md) for usage. - Based on **PaddleServing**: Code path is "`./deploy/pdserving`". Please refer to the [tutorial](../pdserving/readme_en.md) for usage.
# Service deployment based on PaddleHub Serving # Service deployment based on PaddleHub Serving
...@@ -30,12 +30,6 @@ The following steps take the 2-stage series service as an example. If only the d ...@@ -30,12 +30,6 @@ The following steps take the 2-stage series service as an example. If only the d
```shell ```shell
# Install paddlehub # Install paddlehub
pip3 install paddlehub --upgrade -i https://pypi.tuna.tsinghua.edu.cn/simple pip3 install paddlehub --upgrade -i https://pypi.tuna.tsinghua.edu.cn/simple
# Set environment variables on Linux
export PYTHONPATH=.
# Set environment variables on Windows
SET PYTHONPATH=.
``` ```
### 2. Download inference model ### 2. Download inference model
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册