-
Notifications
You must be signed in to change notification settings - Fork 27.8k
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
Add TrOCR + VisionEncoderDecoderModel #13874
Merged
Merged
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
26b79a6
First draft
NielsRogge eebfafa
Update self-attention of RoBERTa as proposition
NielsRogge adf1cb3
Improve conversion script
NielsRogge be7ec13
Add TrOCR decoder-only model
NielsRogge 1ec88d5
More improvements
NielsRogge 7ded83b
Make forward pass with pretrained weights work
NielsRogge 9b4189f
More improvements
NielsRogge 9b6f68b
Some more improvements
NielsRogge 1127064
More improvements
NielsRogge ac5440d
Make conversion work
NielsRogge 6c5d947
Clean up print statements
NielsRogge b54e32e
Add documentation, processor
NielsRogge d47b5f1
Add test files
NielsRogge b1a85a6
Small improvements
NielsRogge 76f3a66
Some more improvements
NielsRogge 1d8ed6b
Make fix-copies, improve docs
NielsRogge 2c4337e
Make all vision encoder decoder model tests pass
NielsRogge cc4eb2c
Make conversion script support other models
NielsRogge 170f905
Update URL for OCR image
NielsRogge 28bdf18
Update conversion script
NielsRogge 890dd70
Fix style & quality
NielsRogge 15f797d
Add support for the large-printed model
NielsRogge f490e3a
Fix some issues
NielsRogge 2230eb0
Add print statement for debugging
NielsRogge f8ad61d
Add print statements for debugging
NielsRogge e5f6983
Make possible fix for sinusoidal embedding
NielsRogge 643c21d
Further debugging
NielsRogge b7c5bf8
Potential fix v2
NielsRogge 6c4435d
Add more print statements for debugging
NielsRogge 1a6825f
Add more print statements for debugging
NielsRogge 667b03c
Deubg more
NielsRogge bf49483
Comment out print statements
NielsRogge f0c8b59
Make conversion of large printed model possible, address review comments
NielsRogge 6f1d7fa
Make it possible to convert the stage1 checkpoints
NielsRogge c38904b
Clean up code, apply suggestions from code review
NielsRogge 6e6b947
Apply suggestions from code review, use Microsoft models in tests
NielsRogge b1fedab
Rename encoder_hidden_size to cross_attention_hidden_size
NielsRogge f3d9e94
Improve docs
NielsRogge File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Make all vision encoder decoder model tests pass
- Loading branch information
commit 2c4337eb14bada93dd6c57aab274c41c95bfce13
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
this isn't used anywhere no? Is it just here since
attention_mask
is often passed ingenerate()
?