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
41b10e63
Commit
41b10e63
authored
May 17, 2020
by
tink2123
Browse files
update inference doc
parent
3fad8300
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
doc/inference.md
doc/inference.md
+3
-3
doc/recognition.md
doc/recognition.md
+1
-1
No files found.
doc/inference.md
View file @
41b10e63
...
@@ -91,14 +91,14 @@ python3 tools/infer/predict_det.py --image_dir="./doc/imgs_en/img_10.jpg" --det_
...
@@ -91,14 +91,14 @@ python3 tools/infer/predict_det.py --image_dir="./doc/imgs_en/img_10.jpg" --det_
超轻量中文识别模型推理,可以执行如下命令:
超轻量中文识别模型推理,可以执行如下命令:
```
```
python3 tools/infer/predict_rec.py --image_dir="./doc/imgs_words/word_4.jpg" --rec_model_dir="./inference/rec/"
python3 tools/infer/predict_rec.py --image_dir="./doc/imgs_words/
ch/
word_4.jpg" --rec_model_dir="./inference/rec/"
```
```


执行命令后,上面图像的预测结果(识别的文本和得分)会打印到屏幕上,示例如下:
执行命令后,上面图像的预测结果(识别的文本和得分)会打印到屏幕上,示例如下:
Predicts of ./doc/imgs_words/word_4.jpg:['实力活力', 0.89552695]
Predicts of ./doc/imgs_words/
ch/
word_4.jpg:['实力活力', 0.89552695]
### 2.基于CTC损失的识别模型推理
### 2.基于CTC损失的识别模型推理
...
...
doc/recognition.md
View file @
41b10e63
...
@@ -156,7 +156,7 @@ python3 tools/infer_rec.py -c configs/rec/rec_chinese_lite_train.yml -o Global.c
...
@@ -156,7 +156,7 @@ python3 tools/infer_rec.py -c configs/rec/rec_chinese_lite_train.yml -o Global.c
得到输入图像的预测结果:
得到输入图像的预测结果:
```
```
infer_img:
infer_img
/en/word_1.png
infer_img:
doc/imgs_words
/en/word_1.png
index: [19 24 18 23 29]
index: [19 24 18 23 29]
word : joint
word : joint
```
```
...
...
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