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

Implement faster-trocr code for trocr-small-handwritten/printed/stage1 #1

Open
vu0607 opened this issue Oct 23, 2023 · 2 comments
Open

Comments

@vu0607
Copy link

vu0607 commented Oct 23, 2023

Dear @IlyasMoutawwakil, I have experienced optimize trocr-small-handwritten. I have run your code with my checkpoint trocr-small-handwritten in Vietnamese language.
It didn't work well, It can't optimize time inference and predicted label always begin with "to, the, and". Ex: the chào Việt Nam
Maybe your code compatible with trocr-base or may I wrong somewhere.
Hope you can help me with this issue.
Thanks for your attention and your help <3

@IlyasMoutawwakil
Copy link
Owner

sorry but this experiment is not maintained. the trick I used is already implemented in the transformers library.
if you want to optimize your TrOCR, I would suggest using optimum.

@vu0607
Copy link
Author

vu0607 commented Oct 30, 2023

@IlyasMoutawwakil Please, can you give me link reference optimize TrOCR in optimum, thanks for you help <3

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

No branches or pull requests

2 participants