Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleOCR
提交
1af833e2
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看板
提交
1af833e2
编写于
9月 23, 2020
作者:
L
LDOUBLEV
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix doc typo
上级
d8b9e7a0
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
6 deletion
+6
-6
doc/doc_ch/inference.md
doc/doc_ch/inference.md
+2
-2
doc/doc_en/inference_en.md
doc/doc_en/inference_en.md
+4
-4
未找到文件。
doc/doc_ch/inference.md
浏览文件 @
1af833e2
...
@@ -95,7 +95,7 @@ python3 tools/export_model.py -c configs/rec/ch_ppocr_v1.1/rec_chinese_lite_trai
...
@@ -95,7 +95,7 @@ python3 tools/export_model.py -c configs/rec/ch_ppocr_v1.1/rec_chinese_lite_trai
下载方向分类模型:
下载方向分类模型:
```
```
wget -P ./ch_lite/ https://paddleocr.bj.bcebos.com/20-09-22/cls/ch_ppocr_mobile
-v1.1.cls_pre.tar && tar xf ./ch_lite/ch_ppocr_mobile-v1.1.cls_pre
.tar -C ./ch_lite/
wget -P ./ch_lite/ https://paddleocr.bj.bcebos.com/20-09-22/cls/ch_ppocr_mobile
_v1.1_cls_train.tar && tar xf ./ch_lite/ch_ppocr_mobile_v1.1_cls_train
.tar -C ./ch_lite/
```
```
方向分类模型转inference模型与检测的方式相同,如下:
方向分类模型转inference模型与检测的方式相同,如下:
...
@@ -105,7 +105,7 @@ wget -P ./ch_lite/ https://paddleocr.bj.bcebos.com/20-09-22/cls/ch_ppocr_mobile-
...
@@ -105,7 +105,7 @@ wget -P ./ch_lite/ https://paddleocr.bj.bcebos.com/20-09-22/cls/ch_ppocr_mobile-
# Global.checkpoints参数设置待转换的训练模型地址,不用添加文件后缀.pdmodel,.pdopt或.pdparams。
# Global.checkpoints参数设置待转换的训练模型地址,不用添加文件后缀.pdmodel,.pdopt或.pdparams。
# Global.save_inference_dir参数设置转换的模型将保存的地址。
# Global.save_inference_dir参数设置转换的模型将保存的地址。
python3 tools/export_model.py -c configs/cls/cls_mv3.yml -o Global.checkpoints=./ch_lite/c
ls_model
/best_accuracy \
python3 tools/export_model.py -c configs/cls/cls_mv3.yml -o Global.checkpoints=./ch_lite/c
h_ppocr_mobile_v1.1_cls_train
/best_accuracy \
Global.save_inference_dir=./inference/cls/
Global.save_inference_dir=./inference/cls/
```
```
...
...
doc/doc_en/inference_en.md
浏览文件 @
1af833e2
...
@@ -29,7 +29,7 @@ Next, we first introduce how to convert a trained model into an inference model,
...
@@ -29,7 +29,7 @@ Next, we first introduce how to convert a trained model into an inference model,
-
[
4. SRN-BASED TEXT RECOGNITION MODEL INFERENCE
](
#SRN-BASED_RECOGNITION
)
-
[
4. SRN-BASED TEXT RECOGNITION MODEL INFERENCE
](
#SRN-BASED_RECOGNITION
)
-
[
5. TEXT RECOGNITION MODEL INFERENCE USING CUSTOM CHARACTERS DICTIONARY
](
#USING_CUSTOM_CHARACTERS
)
-
[
5. TEXT RECOGNITION MODEL INFERENCE USING CUSTOM CHARACTERS DICTIONARY
](
#USING_CUSTOM_CHARACTERS
)
-
[
6. MULTILINGUAL MODEL INFERENCE
](
MULTILINGUAL_MODEL_INFERENCE
)
-
[
6. MULTILINGUAL MODEL INFERENCE
](
MULTILINGUAL_MODEL_INFERENCE
)
-
[
ANGLE CLASSIFICATION MODEL INFERENCE
](
#ANGLE_CLASS_MODEL_INFERENCE
)
-
[
ANGLE CLASSIFICATION MODEL INFERENCE
](
#ANGLE_CLASS_MODEL_INFERENCE
)
-
[
1. ANGLE CLASSIFICATION MODEL INFERENCE
](
#ANGLE_CLASS_MODEL_INFERENCE
)
-
[
1. ANGLE CLASSIFICATION MODEL INFERENCE
](
#ANGLE_CLASS_MODEL_INFERENCE
)
...
@@ -98,7 +98,7 @@ After the conversion is successful, there are two files in the directory:
...
@@ -98,7 +98,7 @@ After the conversion is successful, there are two files in the directory:
Download the angle classification model:
Download the angle classification model:
```
```
wget -P ./ch_lite/ https://paddleocr.bj.bcebos.com/20-09-22/cls/ch_ppocr_mobile
-v1.1.cls_pre.tar && tar xf ./ch_lite/ch_ppocr_mobile-v1.1.cls_pre
.tar -C ./ch_lite/
wget -P ./ch_lite/ https://paddleocr.bj.bcebos.com/20-09-22/cls/ch_ppocr_mobile
_v1.1_cls_train.tar && tar xf ./ch_lite/ch_ppocr_mobile_v1.1_cls_train
.tar -C ./ch_lite/
```
```
The angle classification model is converted to the inference model in the same way as the detection, as follows:
The angle classification model is converted to the inference model in the same way as the detection, as follows:
...
@@ -108,7 +108,7 @@ The angle classification model is converted to the inference model in the same w
...
@@ -108,7 +108,7 @@ The angle classification model is converted to the inference model in the same w
# Global.checkpoints parameter Set the training model address to be converted without adding the file suffix .pdmodel, .pdopt or .pdparams.
# Global.checkpoints parameter Set the training model address to be converted without adding the file suffix .pdmodel, .pdopt or .pdparams.
# Global.save_inference_dir Set the address where the converted model will be saved.
# Global.save_inference_dir Set the address where the converted model will be saved.
python3 tools/export_model.py -c configs/cls/cls_mv3.yml -o Global.checkpoints=./ch_lite/c
ls_model
/best_accuracy \
python3 tools/export_model.py -c configs/cls/cls_mv3.yml -o Global.checkpoints=./ch_lite/c
h_ppocr_mobile_v1.1_cls_train
/best_accuracy \
Global.save_inference_dir=./inference/cls/
Global.save_inference_dir=./inference/cls/
```
```
...
@@ -304,7 +304,7 @@ dict_character = list(self.character_str)
...
@@ -304,7 +304,7 @@ dict_character = list(self.character_str)
<a
name=
"SRN-BASED_RECOGNITION"
></a>
<a
name=
"SRN-BASED_RECOGNITION"
></a>
### 4. SRN-BASED TEXT RECOGNITION MODEL INFERENCE
### 4. SRN-BASED TEXT RECOGNITION MODEL INFERENCE
The recognition model based on SRN requires additional setting of the recognition algorithm parameter --rec_algorithm="SRN".
The recognition model based on SRN requires additional setting of the recognition algorithm parameter --rec_algorithm="SRN".
At the same time, it is necessary to ensure that the predicted shape is consistent with the training, such as: --rec_image_shape="1, 64, 256"
At the same time, it is necessary to ensure that the predicted shape is consistent with the training, such as: --rec_image_shape="1, 64, 256"
```
```
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录