Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
7ec71754
Commit
7ec71754
authored
Mar 24, 2021
by
LDOUBLEV
Browse files
refine server readme
parent
90c3304c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
deploy/pdserving/README.md
deploy/pdserving/README.md
+7
-4
deploy/pdserving/README_CN.md
deploy/pdserving/README_CN.md
+4
-0
No files found.
deploy/pdserving/README.md
View file @
7ec71754
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
(English|
[
简体中文
](
./README_CN.md
)
)
(English|
[
简体中文
](
./README_CN.md
)
)
PaddleOCR provides
2
service deployment methods:
PaddleOCR provides
two
service deployment methods:
-
Based on
**PaddleHub Serving**
: Code path is "
`./deploy/hubserving`
". Please refer to the
[
tutorial
](
../../deploy/hubserving/readme_en.md
)
-
Based on
**PaddleHub Serving**
: Code path is "
`./deploy/hubserving`
". Please refer to the
[
tutorial
](
../../deploy/hubserving/readme_en.md
)
-
Based on
**PaddleServing**
: Code path is "
`./deploy/pdserving`
". Please follow this tutorial.
-
Based on
**PaddleServing**
: Code path is "
`./deploy/pdserving`
". Please follow this tutorial.
...
@@ -27,11 +27,11 @@ The introduction and tutorial of Paddle Serving service deployment framework ref
...
@@ -27,11 +27,11 @@ The introduction and tutorial of Paddle Serving service deployment framework ref
<a
name=
"environmental-preparation"
></a>
<a
name=
"environmental-preparation"
></a>
## Environmental preparation
## Environmental preparation
Need to prepare
PaddleOCR operating environment and Paddle Serving operating environment.
PaddleOCR operating environment and Paddle Serving operating environment
are needed
.
1.
Prepare PaddleOCR operating environment reference
[
link
](
../../doc/doc_ch/installation.md
)
.
1.
P
lease p
repare PaddleOCR operating environment reference
[
link
](
../../doc/doc_ch/installation.md
)
.
2.
Prepare the operating environment of PaddleServing, the steps
are as follows
2.
The steps of PaddleServing operating environment prepare
are as follows
:
Install serving which used to start the service
Install serving which used to start the service
```
```
...
@@ -78,6 +78,9 @@ wget https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_server_v2.0_det_in
...
@@ -78,6 +78,9 @@ wget https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_server_v2.0_det_in
# Download and unzip the OCR text recognition model
# Download and unzip the OCR text recognition model
wget https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_server_v2.0_rec_infer.tar && tar xf ch_ppocr_server_v2.0_rec_infer.tar
wget https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_server_v2.0_rec_infer.tar && tar xf ch_ppocr_server_v2.0_rec_infer.tar
```
Then, you can use installed paddle_serving_client tool to convert inference model to server model.
```
# Detection model conversion
# Detection model conversion
python3 -m paddle_serving_client.convert --dirname ./ch_ppocr_server_v2.0_det_infer/ \
python3 -m paddle_serving_client.convert --dirname ./ch_ppocr_server_v2.0_det_infer/ \
--model_filename inference.pdmodel \
--model_filename inference.pdmodel \
...
...
deploy/pdserving/README_CN.md
View file @
7ec71754
...
@@ -79,7 +79,11 @@ PaddleOCR提供2种服务部署方式:
...
@@ -79,7 +79,11 @@ PaddleOCR提供2种服务部署方式:
wget https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_server_v2.0_det_infer.tar && tar xf ch_ppocr_server_v2.0_det_infer.tar
wget https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_server_v2.0_det_infer.tar && tar xf ch_ppocr_server_v2.0_det_infer.tar
# 下载并解压 OCR 文本识别模型
# 下载并解压 OCR 文本识别模型
wget https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_server_v2.0_rec_infer.tar && tar xf ch_ppocr_server_v2.0_rec_infer.tar
wget https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_server_v2.0_rec_infer.tar && tar xf ch_ppocr_server_v2.0_rec_infer.tar
```
接下来,用安装的paddle_serving_client把下载的inference模型转换成易于server部署的模型格式。
```
# 转换检测模型
# 转换检测模型
python3 -m paddle_serving_client.convert --dirname ./ch_ppocr_server_v2.0_det_infer/ \
python3 -m paddle_serving_client.convert --dirname ./ch_ppocr_server_v2.0_det_infer/ \
--model_filename inference.pdmodel \
--model_filename inference.pdmodel \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment