Skip to content

add dynamic shape support for infer #545

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 1 commit into from
Aug 4, 2023
Merged

add dynamic shape support for infer #545

merged 1 commit into from
Aug 4, 2023

Conversation

liangxhao
Copy link
Contributor

@liangxhao liangxhao commented Aug 3, 2023

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

Motivation

支持自研模型的动态Shape推理

1. 实现逻辑:
如果是动态shape模型,则优先加载训练侧的数据预处理模块
如果是静态shape/分档模型,则优先加载推理侧适配的数据预处理

2. 增加了cls_batch_num和rec_batch_num参数
和ppocr对齐,默认值取6,当模型的batch size是动态时,就从该参数中取值

Test Plan

(How should this PR be tested? Do you require special setup to run the test or repro the fixed bug?)

Related Issues and PRs

(Is this PR part of a group of changes? Link the other relevant PRs and Issues here. Use https://help.github.com/en/articles/closing-issues-using-keywords for help on GitHub syntax)

liangxhao

This comment was marked as outdated.

@liangxhao liangxhao merged commit 670e9cc into mindspore-lab:main Aug 4, 2023
VictorHe-1 pushed a commit to VictorHe-1/mindocr that referenced this pull request Aug 9, 2023
VictorHe-1 added a commit that referenced this pull request Aug 9, 2023
* add dynamic shape support for infer (#545)

* dbnet ic15 config fix (#554)

* add pubtabnet dataset convert (#547)

* add pubtabnet dataset convert

* Update pubtab.md

* Update pubtab.md

* update

* Update pubtabnet.py

* update

---------

Co-authored-by: songyuanwei <song.yuanwei@huawei.com>
Co-authored-by: HaoyangLI <417493727@qq.com>

* [VisionLAN]Modify the mindir download url (#558)

* add svtr lite infer (#564)

* Add LayoutXLM Tokenizer

---------

Co-authored-by: liangxhao <liangxhao@gmail.com>
Co-authored-by: Rustam Khadipash <16683750+hadipash@users.noreply.github.com>
Co-authored-by: Songyuanwei <52945530+Songyuanwei@users.noreply.github.com>
Co-authored-by: songyuanwei <song.yuanwei@huawei.com>
Co-authored-by: HaoyangLI <417493727@qq.com>
Co-authored-by: jianyunchao <43231325+jianyunchao@users.noreply.github.com>
@liangxhao liangxhao deleted the add_infer_dyn branch August 17, 2023 10:00
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.

3 participants