From 41b10e633b8b55cebb99476ebfe03ca10f863da4 Mon Sep 17 00:00:00 2001 From: tink2123 Date: Sun, 17 May 2020 17:12:26 +0800 Subject: [PATCH] update inference doc --- doc/inference.md | 6 +++--- doc/recognition.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/inference.md b/doc/inference.md index d6bebf59..c0b5ea28 100644 --- a/doc/inference.md +++ b/doc/inference.md @@ -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/" ``` -![](imgs_words/word_4.jpg) +![](imgs_words/ch/word_4.jpg) 执行命令后,上面图像的预测结果(识别的文本和得分)会打印到屏幕上,示例如下: -Predicts of ./doc/imgs_words/word_4.jpg:['实力活力', 0.89552695] +Predicts of ./doc/imgs_words/ch/word_4.jpg:['实力活力', 0.89552695] ### 2.基于CTC损失的识别模型推理 diff --git a/doc/recognition.md b/doc/recognition.md index 196f81ba..bd13ddaf 100644 --- a/doc/recognition.md +++ b/doc/recognition.md @@ -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] word : joint ``` -- GitLab