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

support Vary Toy infer #680

Merged
merged 11 commits into from
Mar 22, 2024
Merged

support Vary Toy infer #680

merged 11 commits into from
Mar 22, 2024

Conversation

panshaowu
Copy link
Collaborator

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

Motivation

Add infer support of OCR LLM Vary and Vary Toy.

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)

chengtianwu and others added 9 commits February 23, 2024 17:24
* Remove dependency of mindformers  (#666)

* Fix problems of psenet-ctw1500 training

* Fix problems of psenet-ctw1500 training

* Fix problems of psenet-ctw1500 training

* remove mindformers

* Fix problems of psenet-ctw1500 training

* remove dependency

* use transformer from mindspore

* remove code from mindformers

* revise the readme of CRNN (#672)

* revise whl deploy setting and version info

* fix issue #470

* revise the readme of CRNN

---------

Co-authored-by: panshaowu <panshaowu@huawei.com>

* fix data bug (#673)

---------

Co-authored-by: horcham <690936541@qq.com>
Co-authored-by: panshaowu <panshaowu@huawei.com>
Co-authored-by: chengtianwu <53269662+chengtianwu@users.noreply.github.com>
@chengtianwu chengtianwu force-pushed the ocr-lm-dev branch 10 times, most recently from 556cda8 to 16b78aa Compare March 20, 2024 07:47
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

建议审视该文件内的代码可否复用已有代码

@chengtianwu chengtianwu force-pushed the ocr-lm-dev branch 6 times, most recently from 9baac80 to 63d194b Compare March 21, 2024 05:34
@chengtianwu chengtianwu force-pushed the ocr-lm-dev branch 4 times, most recently from 629a0ae to ec1ea48 Compare March 21, 2024 06:08
In addition, you need to install the `tiktoken` using the following shell command:

``` shell
pip install tiktoken
Copy link
Collaborator

Choose a reason for hiding this comment

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

可否加入requirements.txt?

Copy link
Collaborator

Choose a reason for hiding this comment

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

这个东西对python有版本要求(>=3.8),影响比较大

Copy link
Collaborator Author

@panshaowu panshaowu Mar 21, 2024

Choose a reason for hiding this comment

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

需要添加说明“Note: if you want to experience Vary-toy, you shall upgrade your python to 3.8 or above version, .”


#### 3.1.3 Model Preparation

Users can download Vary-toy's [weight](https://huggingface.co/HaoranWei/Vary-toy/blob/main/pytorch_model.bin), and then perform the weight conversion according to the following steps.
Copy link
Collaborator

Choose a reason for hiding this comment

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

是否可以直接提供转换好的weights文件供用户下载使用?

Copy link
Collaborator

Choose a reason for hiding this comment

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

可以

@panshaowu panshaowu merged commit b459eae into main Mar 22, 2024
2 checks passed
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.

None yet

3 participants