From c2a7fe92c75a330b5d6a839dc7ef9954bbcddcad Mon Sep 17 00:00:00 2001 From: nbswords Date: Wed, 15 Jun 2022 23:59:51 +0800 Subject: [PATCH] Fix OCR engine + SER command in vqa readme --- ppstructure/vqa/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ppstructure/vqa/README.md b/ppstructure/vqa/README.md index e3a10671..66cc5b93 100644 --- a/ppstructure/vqa/README.md +++ b/ppstructure/vqa/README.md @@ -192,7 +192,7 @@ Finally, `precision`, `recall`, `hmean` and other indicators will be printed Use the following command to complete the series prediction of `OCR engine + SER`, taking the pretrained SER model as an example: ```shell -CUDA_VISIBLE_DEVICES=0 python3 tools/infer_vqa_token_ser.py -c configs/vqa/ser/layoutxlm.yml -o Architecture.Backbone.checkpoints=pretrain/ser_LayoutXLM_xfun_zh/Global.infer_img=doc/vqa/input/zh_val_42.jpg +CUDA_VISIBLE_DEVICES=0 python3 tools/infer_vqa_token_ser.py -c configs/vqa/ser/layoutxlm.yml -o Architecture.Backbone.checkpoints=pretrain/ser_LayoutXLM_xfun_zh/ Global.infer_img=doc/vqa/input/zh_val_42.jpg ```` Finally, the prediction result visualization image and the prediction result text file will be saved in the directory configured by the `config.Global.save_res_path` field. The prediction result text file is named `infer_results.txt`. -- GitLab