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
05f38800
Unverified
Commit
05f38800
authored
Jun 23, 2022
by
Evezerest
Committed by
GitHub
Jun 23, 2022
Browse files
Merge pull request #6648 from nbswords/release/2.5
Fix SER and RE VQA docs command error
parents
0b34ad5b
a4f957c1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ppstructure/vqa/README.md
ppstructure/vqa/README.md
+2
-2
ppstructure/vqa/README_ch.md
ppstructure/vqa/README_ch.md
+1
-1
No files found.
ppstructure/vqa/README.md
View file @
05f38800
...
...
@@ -203,7 +203,7 @@ First use the `tools/infer_vqa_token_ser.py` script to complete the prediction o
```shell
export CUDA_VISIBLE_DEVICES=0
python3 tools/eval_with_label_end2end.py --gt_json_path XFUND/zh_val/xfun_normalize_val.json --pred_json_path output_res/infer_results.txt
python3
ppstructure/vqa/
tools/eval_with_label_end2end.py --gt_json_path XFUND/zh_val/xfun_normalize_val.json --pred_json_path output_res/infer_results.txt
````
<a name="53"></a>
...
...
@@ -247,7 +247,7 @@ Finally, `precision`, `recall`, `hmean` and other indicators will be printed
Use the following command to complete the series prediction of
`OCR engine + SER + RE`
, taking the pretrained SER and RE models as an example:
```
shell
export
CUDA_VISIBLE_DEVICES
=
0
python3 tools/infer_vqa_token_ser_re.py
-c
configs/vqa/re/layoutxlm.yml
-o
Architecture.Backbone.checkpoints
=
pretrain/re_LayoutXLM_xfun_zh/Global.infer_img
=
doc/vqa/input/zh_val_21.jpg
-c_ser
configs/vqa/ser/layoutxlm. yml
-o_ser
Architecture.Backbone.checkpoints
=
pretrain/ser_LayoutXLM_xfun_zh/
python3 tools/infer_vqa_token_ser_re.py
-c
configs/vqa/re/layoutxlm.yml
-o
Architecture.Backbone.checkpoints
=
pretrain/re_LayoutXLM_xfun_zh/
Global.infer_img
=
doc/vqa/input/zh_val_21.jpg
-c_ser
configs/vqa/ser/layoutxlm. yml
-o_ser
Architecture.Backbone.checkpoints
=
pretrain/ser_LayoutXLM_xfun_zh/
```
`
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
`
.
...
...
ppstructure/vqa/README_ch.md
View file @
05f38800
...
...
@@ -198,7 +198,7 @@ CUDA_VISIBLE_DEVICES=0 python3 tools/infer_vqa_token_ser.py -c configs/vqa/ser/l
```
shell
export
CUDA_VISIBLE_DEVICES
=
0
python3 tools/eval_with_label_end2end.py
--gt_json_path
XFUND/zh_val/xfun_normalize_val.json
--pred_json_path
output_res/infer_results.txt
python3
ppstructure/vqa/
tools/eval_with_label_end2end.py
--gt_json_path
XFUND/zh_val/xfun_normalize_val.json
--pred_json_path
output_res/infer_results.txt
```
### 5.3 RE
...
...
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