Skip to content

update lite inference doc #751

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

Merged
merged 11 commits into from
Oct 26, 2024
Merged

update lite inference doc #751

merged 11 commits into from
Oct 26, 2024

Conversation

CaitinZhao
Copy link
Collaborator

@CaitinZhao CaitinZhao commented Oct 23, 2024

Thank you for your contribution to the MindOCR repo.
Before submitting this PR, please make sure:

Motivation

MindOCR 离线推理流程整改:

  • 重新梳理lite环境安装,补充对应的版本信息及软件下载链接
  • 由于MindX不再维护,删掉MindX相关流程
  • 梳理lite推理流程,删除冗余的介绍,重新整理推理教程
  • 刷新model list

@CaitinZhao CaitinZhao force-pushed the main branch 2 times, most recently from 8c2e4b3 to 5103013 Compare October 23, 2024 08:02
| [DBNet](https://github.com/mindspore-lab/mindocr/tree/main/configs/det/dbnet) | MobileNetV3 | en | IC15 | 76.96 | 26.19 | (1,3,736,1280) |[yaml](https://github.com/mindspore-lab/mindocr/tree/main/configs/det/dbnet/db_mobilenetv3_icdar15.yaml) | [mindir]() |
| | ResNet-18 | en | IC15 | 81.73 | 24.04 | (1,3,736,1280) | [yaml](https://github.com/mindspore-lab/mindocr/tree/main/configs/det/dbnet/db_r18_icdar15.yaml) | [mindir]() |
| | ResNet-50 | en | IC15 | 85.00 | 21.69 | (1,3,736,1280) | [yaml](https://github.com/mindspore-lab/mindocr/tree/main/configs/det/dbnet/db_r50_icdar15.yaml) | [mindir]() |
| | ResNet-50 | ch + en | 12个数据集 | 83.41 | 21.69 | (1,3,736,1280) | [yaml](https://github.com/mindspore-lab/mindocr/tree/main/configs/det/dbnet/db_r50_icdar15.yaml) | [mindir]() |
Copy link
Collaborator

Choose a reason for hiding this comment

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

12 datasets

README_CN.md Outdated
@@ -230,9 +233,7 @@ python tools/infer/text/predict_system.py --image_dir {path_to_img or dir_to_img
- 使用MindSpore进行在线推理
- [基于Python的OCR在线推理](https://github.com/mindspore-lab/mindocr/blob/main/tools/infer/text/README.md)
Copy link
Contributor

Choose a reason for hiding this comment

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

此处链接为英文版readme链接,中文版的readme链接到中文好一些
同样的还有下面的[如何自定义数据集]、[如何自定义数据增强方法]、[如何创建新的OCR模型]、[如何自定义后处理方法]、[CONTRIBUTING.md]、[Model Template and Guideline]

Copy link
Contributor

Choose a reason for hiding this comment

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

快速开始 的 1. 文字检测和识别示例 的示例代码中,可以通过加入--visualize_output true实现将可视化结果同样保存在./inference_results路径下。

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

@alien-0119 alien-0119 Oct 25, 2024

Choose a reason for hiding this comment

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

关于[MindSpore Lite]和[ACL]模型推理的支持列表, 请参见[MindOCR原生模型推理支持列表] 和 [第三方模型推理支持列表](如PaddleOCR、MMOCR等)。

-- 由于删除mindx相关内容,此处的[ACL]可以删除。
-- [MindOCR原生模型推理支持列表]、[第三方模型推理支持列表]对应的链接已失效。

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

--rec_model_name_or_config=../../configs/rec/crnn/crnn_resnet34.yaml \
--res_save_dir=det_cls_rec \
--vis_pipeline_save_dir=det_cls_rec
```
Copy link
Contributor

Choose a reason for hiding this comment

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

涉及识别的推理,可以在对应示例代码中加入--character_dict_path=/path/to/xxx_dict.txt参数来指定字典路径。


目前暂时只支持pp-ocr系列的中文DBNET、CRNN、SVTR模型。

<details>
<summary> 详情 </summary>

进入到MindOCR推理测目录下 `cd deploy/cpp_infer`,执行编译脚本 `bash build.sh`, 构建完成之后在当前路径dist目录下生成可执行文件infer。
Copy link
Contributor

Choose a reason for hiding this comment

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

cd deploy/cpp_infer -> cd deploy/cpp_infer/src

@alien-0119
Copy link
Contributor

docs/zh/datasets/converters.md中
文本识别的测试数据集转换命令有问题。少了\

913af8e17c02422f8dd59f0800172677

@alien-0119
Copy link
Contributor

docs/zh/tutorials/training_detection_custom_dataset.md中

配置训练/测试数据集中写的dbnet_r50_icdar15.yaml,但实际上并没有dbnet_r50_icdar15.yaml文件,应为db_r50_icdar15.yaml

329b1d5f80e54ff7a46f33315bbca5f1

@alien-0119
Copy link
Contributor

tools/infer/text/README_CN.md中

推理结果的评估 小节,超链接选择的字段不对:
8b2ad79d3f0d404499be7b5f8e24e80f

推理结果的评估 小节,请参考[Ascend 310上的推断] 中超链接链接的是英文readme
bd16c033e582479c8bfc833129ec2b69

@alien-0119
Copy link
Contributor

mindocr/data/README_CN.md中

请参考[定制化数据转换开发指导]超链接链接的是英文readme
824d5de5c57c4283abd23c5023641bfe

@alien-0119
Copy link
Contributor

docs/zh/inference/convert_dynamic.md

typo: batch szie -> batch size

image

@CaitinZhao CaitinZhao force-pushed the main branch 2 times, most recently from 502784a to bfe9347 Compare October 25, 2024 07:40
@CaitinZhao CaitinZhao merged commit 89831d2 into mindspore-lab:main Oct 26, 2024
2 checks passed
alien-0119 pushed a commit to alien-0119/mindocr that referenced this pull request Oct 29, 2024
* update install

* update inference tutorial

* update

* update readme

* update environment

* add 310p3 note

* update

* fix bugs

* delete cpp infer

* delete cpp infer

* update

(cherry picked from commit 89831d2)
CaitinZhao added a commit that referenced this pull request Oct 29, 2024
…st (#758)

* update lite inference doc (#751)

* update install

* update inference tutorial

* update

* update readme

* update environment

* add 310p3 note

* update

* fix bugs

* delete cpp infer

* delete cpp infer

* update

(cherry picked from commit 89831d2)

* update thirdparty_models_list (#752)

(cherry picked from commit 685ef3e)

* 更新ch_pp_det_OCRv4 config.txt 链接 (#754)

(cherry picked from commit a176ce9)

* update Lite mindocr_models_list (#753)

* test

* update doc

* update doc

* update doc

* update doc

* update doc

* Revert "test"

This reverts commit d0b6968.

* update faq

* fix ci

---------

Co-authored-by: 王天宇 <alien@wangtianyudeMacBook-Pro.local>

(cherry picked from commit 6279c79)

* fix path & ci

* update ver of git clone

---------

Co-authored-by: zhaoting <37293445+caitinzhao@users.noreply.github.com>
Co-authored-by: YMC <61680846+iugoood@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants