提交 3602b066 编写于 作者: T tink2123

fix ic15.yml and del img_words_en

上级 ca3ea1b5
...@@ -36,12 +36,13 @@ Architecture: ...@@ -36,12 +36,13 @@ Architecture:
algorithm: CRNN algorithm: CRNN
Transform: Transform:
Backbone: Backbone:
name: ResNet name: MobileNetV3
layers: 34 scale: 0.5
model_name: large
Neck: Neck:
name: SequenceEncoder name: SequenceEncoder
encoder_type: rnn encoder_type: rnn
hidden_size: 256 hidden_size: 96
Head: Head:
name: CTCHead name: CTCHead
fc_decay: 0 fc_decay: 0
......
...@@ -353,8 +353,7 @@ python3 tools/infer_rec.py -c configs/rec/rec_icdar15_train.yml -o Global.checkp ...@@ -353,8 +353,7 @@ python3 tools/infer_rec.py -c configs/rec/rec_icdar15_train.yml -o Global.checkp
``` ```
infer_img: doc/imgs_words/en/word_1.png infer_img: doc/imgs_words/en/word_1.png
index: [19 24 18 23 29] result: ('joint', 0.9998967)
word : joint
``` ```
预测使用的配置文件必须与训练一致,如您通过 `python3 tools/train.py -c configs/rec/ch_ppocr_v2.0/rec_chinese_lite_train_v2.0.yml` 完成了中文模型的训练, 预测使用的配置文件必须与训练一致,如您通过 `python3 tools/train.py -c configs/rec/ch_ppocr_v2.0/rec_chinese_lite_train_v2.0.yml` 完成了中文模型的训练,
...@@ -373,6 +372,5 @@ python3 tools/infer_rec.py -c configs/rec/ch_ppocr_v2.0/rec_chinese_lite_train_v ...@@ -373,6 +372,5 @@ python3 tools/infer_rec.py -c configs/rec/ch_ppocr_v2.0/rec_chinese_lite_train_v
``` ```
infer_img: doc/imgs_words/ch/word_1.jpg infer_img: doc/imgs_words/ch/word_1.jpg
index: [2092 177 312 2503] result: ('韩国小馆', 0.997218)
word : 韩国小馆
``` ```
...@@ -347,8 +347,7 @@ Get the prediction result of the input image: ...@@ -347,8 +347,7 @@ Get the prediction result of the input image:
``` ```
infer_img: doc/imgs_words/en/word_1.png infer_img: doc/imgs_words/en/word_1.png
index: [19 24 18 23 29] result: ('joint', 0.9998967)
word : joint
``` ```
The configuration file used for prediction must be consistent with the training. For example, you completed the training of the Chinese model with `python3 tools/train.py -c configs/rec/ch_ppocr_v2.0/rec_chinese_lite_train_v2.0.yml`, you can use the following command to predict the Chinese model: The configuration file used for prediction must be consistent with the training. For example, you completed the training of the Chinese model with `python3 tools/train.py -c configs/rec/ch_ppocr_v2.0/rec_chinese_lite_train_v2.0.yml`, you can use the following command to predict the Chinese model:
...@@ -366,6 +365,5 @@ Get the prediction result of the input image: ...@@ -366,6 +365,5 @@ Get the prediction result of the input image:
``` ```
infer_img: doc/imgs_words/ch/word_1.jpg infer_img: doc/imgs_words/ch/word_1.jpg
index: [2092 177 312 2503] result: ('韩国小馆', 0.997218)
word : 韩国小馆
``` ```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册