-
Notifications
You must be signed in to change notification settings - Fork 46
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
Conversation
* 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>
556cda8
to
16b78aa
Compare
2c30cd1
to
b6af75d
Compare
mindocr/models/utils/loss.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
建议审视该文件内的代码可否复用已有代码
9baac80
to
63d194b
Compare
629a0ae
to
ec1ea48
Compare
In addition, you need to install the `tiktoken` using the following shell command: | ||
|
||
``` shell | ||
pip install tiktoken |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可否加入requirements.txt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个东西对python有版本要求(>=3.8),影响比较大
There was a problem hiding this comment.
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, .”
configs/llm/vary/README.md
Outdated
|
||
#### 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是否可以直接提供转换好的weights文件供用户下载使用?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可以
…into ocr-lm-dev
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)