Skip to content
New issue

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

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

Already on GitHub? # to your account

DocTr++论文复现 #11475

Closed
wants to merge 3 commits into from
Closed

Conversation

chenjjcccc
Copy link

@chenjjcccc chenjjcccc commented Jan 8, 2024

DocTr++论文复现

Copy link

paddle-bot bot commented Jan 8, 2024

Thanks for your contribution!

@chenjjcccc chenjjcccc changed the title My app doc 提pr弄错了 Jan 8, 2024
@chenjjcccc chenjjcccc changed the title 提pr弄错了 提pr弄错了,请删除 Jan 8, 2024
@CLAassistant
Copy link

CLAassistant commented Jan 8, 2024

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
0 out of 2 committers have signed the CLA.

❌ chenjiajun05
❌ paddle-models


chenjiajun05 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@chenjjcccc chenjjcccc changed the base branch from release/2.7 to dygraph January 8, 2024 10:08
@chenjjcccc chenjjcccc changed the title 提pr弄错了,请删除 DocTr++论文复现 Jan 8, 2024
Copy link
Collaborator

@tink2123 tink2123 left a comment

Choose a reason for hiding this comment

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

非常感谢您的贡献~ 请提交训练参数和inference模型方便我们进行验证。 另外辛苦将代码融合进PaddleOCR框架,可以参考:
https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.7/applications/%E9%AB%98%E7%B2%BE%E5%BA%A6%E4%B8%AD%E6%96%87%E8%AF%86%E5%88%AB%E6%A8%A1%E5%9E%8B.md

image_path = os.path.join(self.root, "img", image_name + ".png")
image = cv2.imread(image_path)

# if image is None:
Copy link
Collaborator

Choose a reason for hiding this comment

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

删除多余代码

echo " # done"
}

doc3d_download "http://vision.cs.stonybrook.edu/~sagnik/doc3d/img_1.zip" "$outputPath/" "img_1.zip"
Copy link
Collaborator

Choose a reason for hiding this comment

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

建议写一个循环,把文件名放在一个list中

export FLAGS_logtostderr=0
export CUDA_VISIBLE_DEVICES=4

python train.py --data-root /ssd1/chenjiajun05/chenjiajun05/doc3d \
Copy link
Collaborator

Choose a reason for hiding this comment

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

不要包含个人目录,建议删除sh脚本,将启动训练说明写在文档中

./train.sh
```
每个époch后,会进行验证集评估,保存best_model以及last_model。
## 7. 模型评估
Copy link
Collaborator

Choose a reason for hiding this comment

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

请给出评估精度指标

chmod +x train.sh
./train.sh
```
每个époch后,会进行验证集评估,保存best_model以及last_model。
Copy link
Collaborator

Choose a reason for hiding this comment

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

epoch

准备工作完成后,即可开始进行模型训练。本项目提供训练脚本train.sh。其中需要自行修改数据集路径--data-root
```python
# 模型训练
chmod +x train.sh
Copy link
Collaborator

Choose a reason for hiding this comment

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

将脚本替换为完整启动命令,参考:

python3 tools/train.py -c configs/rec/PP-OCRv3/en_PP-OCRv3_rec.yml -o Global.checkpoints=./your/trained/model

python eval_DocUNet.py --i ./crop/ --m pretrained_model --o output_val --g ./scan/
```
效果如下:

Copy link
Collaborator

Choose a reason for hiding this comment

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

请增加推理部署相关说明:包括单图推理脚本,inference模型导出命令,以及基于inference模型预测脚本。参考:
https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.7/doc/doc_ch/algorithm_rec_nrtr.md#4-%E6%8E%A8%E7%90%86%E9%83%A8%E7%BD%B2

@nissansz
Copy link

这个有训练好的模型吗?怎么使用?

@jzhang533 jzhang533 deleted the branch PaddlePaddle:dygraph April 22, 2024 03:26
@jzhang533 jzhang533 closed this Apr 22, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 11, 2024
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants