Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
WenmuZhou committed Sep 21, 2022
1 parent a4bc9da commit cb5d81f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions doc/doc_ch/algorithm_kie_vi_layoutxlm.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ VI-LayoutXLM基于LayoutXLM进行改进,在下游任务训练过程中,去

### 4.1 Python推理

-SER
- SER

首先将训练得到的模型转换成inference model。以VI-LayoutXLM模型在XFUND_zh数据集上训练的模型为例([模型下载地址](https://paddleocr.bj.bcebos.com/ppstructure/models/vi_layoutxlm/ser_vi_layoutxlm_xfund_pretrained.tar)),可以使用下面的命令进行转换。

Expand Down Expand Up @@ -74,7 +74,7 @@ SER可视化结果默认保存到`./output`文件夹里面,结果示例如下
<img src="../../ppstructure/docs/kie/result_ser/zh_val_42_ser.jpg" width="800">
</div>

-RE
- RE

首先将训练得到的模型转换成inference model。以VI-LayoutXLM模型在XFUND_zh数据集上训练的模型为例([模型下载地址](https://paddleocr.bj.bcebos.com/ppstructure/models/vi_layoutxlm/re_vi_layoutxlm_xfund_pretrained.tar)),可以使用下面的命令进行转换。

Expand Down
4 changes: 2 additions & 2 deletions doc/doc_en/algorithm_kie_vi_layoutxlm_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Please refer to [KIE tutorial](./kie_en.md)。PaddleOCR has modularized the code

### 4.1 Python Inference

-SER
- SER

First, we need to export the trained model into inference model. Take VI-LayoutXLM model trained on XFUND_zh as an example ([trained model download link](https://paddleocr.bj.bcebos.com/ppstructure/models/vi_layoutxlm/ser_vi_layoutxlm_xfund_pretrained.tar)). Use the following command to export.

Expand Down Expand Up @@ -70,7 +70,7 @@ The SER visualization results are saved in the `./output` folder by default. The
</div>


-RE
- RE

First, we need to export the trained model into inference model. Take VI-LayoutXLM model trained on XFUND_zh as an example ([trained model download link](https://paddleocr.bj.bcebos.com/ppstructure/models/vi_layoutxlm/re_vi_layoutxlm_xfund_pretrained.tar)). Use the following command to export.

Expand Down
4 changes: 2 additions & 2 deletions ppstructure/kie/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ wget https://paddleocr.bj.bcebos.com/ppstructure/models/vi_layoutxlm/re_vi_layou
cd ..
```

-SER
- SER

Use the following command for inference.

Expand All @@ -237,7 +237,7 @@ python3 kie/predict_kie_token_ser.py \

The visual results and text file will be saved in directory `output`.

-RE
- RE

Use the following command for inference.

Expand Down
4 changes: 2 additions & 2 deletions ppstructure/kie/README_ch.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ wget https://paddleocr.bj.bcebos.com/ppstructure/models/vi_layoutxlm/re_vi_layou
cd ..
```

-SER
- SER

执行下面的命令进行预测。

Expand All @@ -220,7 +220,7 @@ python3 kie/predict_kie_token_ser.py \

可视化结果保存在`output`目录下。

-RE
- RE

执行下面的命令进行预测。

Expand Down

0 comments on commit cb5d81f

Please sign in to comment.