Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

预测结果保存增加换行 #5149

Merged
merged 13 commits into from
Jan 28, 2022
Merged

预测结果保存增加换行 #5149

merged 13 commits into from
Jan 28, 2022

Conversation

livingbody
Copy link
Contributor

第140行 fout.write(file + "\t" + info) 改为 fout.write(file + "\t" + info + "\n")
原代码保存结果没有换行,格式各记录粘在一起了。

第140行  fout.write(file + "\t" + info)  改为  fout.write(file + "\t" + info + "\n")
@paddle-bot-old
Copy link

paddle-bot-old bot commented Jan 1, 2022

Thanks for your contribution!

Add English readme for PaddleOCR/ppstructure/vqa
--infer_imgs "images/input/zh_val_21.jpg"
```

## Reference Link
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reference Link -> Reference

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done


```

* Recovery training
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resume training

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

--infer_imgs "images/input/zh_val_0.jpg"
```

* End to end evaluation of OCR engine + SER prediction system
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

End to end -> End-to-end

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

pip install -r requirements.txt
```

## 4. Use
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usage

```


- **(4)Requirements for installing VQA`**
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Install requirements for VQA

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

**Note**: This project is based on the open source implementation of [LayoutXLM](https://arxiv.org/pdf/2104.08836.pdf) on Paddle 2.2, and at the same time, after in-depth polishing by the flying Paddle team and the Industrial and **Commercial Bank of China** in the scene of real estate certificate, jointly open source.


## 1 .Performance
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 . -> 1.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -0,0 +1,331 @@
# Document Visual Q&A(DOC-VQA)

Document Visual Q&A,Mainly for the image content of the question and answer, DOC-VQA is a type of VQA task,DOC-VQA mainly asks questions about the textual content of text images.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mainly -> mainly

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

"""
parameter:
    pdf_file : the pdf file for convert 
    img_dir : the dir to save images

return:    
    pic_list: image list for pdf file
"""
modify some translation errors
modify some punctunation mistakes
修改序号错误和标点错误
bold for little title
bold little title
get basename of  filename
@Evezerest
Copy link
Collaborator

您好,感谢您的贡献

pdf2img.py的修改请您单独开放一个repo或者一个AI Studio项目,后续会将项目链接补充在社区贡献的文档中,目前不需要放在此PR里

同时请将上述修改同步cherry-pick到dygraph分支上,再次感谢!

@Evezerest Evezerest added the community Improvement from the community label Jan 26, 2022
@Evezerest Evezerest self-assigned this Jan 26, 2022
Copy link
Collaborator

@Evezerest Evezerest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Evezerest Evezerest merged commit b756bf5 into PaddlePaddle:release/2.4 Jan 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Improvement from the community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants