-
Notifications
You must be signed in to change notification settings - Fork 291
Added LayoutLMv3 #2178
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
Open
carrycooldude
wants to merge
42
commits into
keras-team:master
Choose a base branch
from
carrycooldude:feature/layoutlmv3-port
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Added LayoutLMv3 #2178
Changes from 22 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
ae79d15
added the files
carrycooldude 737f03a
Restructure LayoutLMv3 implementation to match KerasHub style
carrycooldude 455a140
Refactor: Move LayoutLMv3 files to models directory and make code bac…
carrycooldude d92c8c4
refactor: Move LayoutLMv3 files to dedicated directory
carrycooldude 0948f95
fix: Update LayoutLMv3 init files to follow correct format
carrycooldude 3c02f78
fix: Update LayoutLMv3 backbone to follow project standards
carrycooldude 4a79d9b
refactor: remove unnecessary files and fix imports in LayoutLMv3 module
carrycooldude c2fed4c
Add minimal stub for LayoutLMv3TransformerLayer
carrycooldude e828047
fix: resolve merge conflicts and complete rebase
carrycooldude 063054d
refactor(layoutlmv3): move usage examples to class docstrings and rem…
carrycooldude 476c0fd
style: apply code formatting and lint fixes via pre-commit
carrycooldude 4439fad
made some changes
carrycooldude ad3c758
resolve the conflict issue
carrycooldude 885f2fe
chore: update API directory and fix ruff line length in checkpoint co…
carrycooldude 5019abb
update models
carrycooldude e1fc266
made changes
carrycooldude a32555c
chore: trigger CI
carrycooldude a885afa
Update API files
carrycooldude ad004f7
changed
carrycooldude 6fb0fdc
chore: pre-commit fixes for layoutlmv3 __init__.py
carrycooldude 5aaadab
chore: commit api directory after pre-commit run
carrycooldude 8c7e989
update models
carrycooldude 5a371a5
update layoutlmv3
carrycooldude bcad8d7
Fix all LayoutLMv3 issues from PR review
carrycooldude ca96183
Final formatting fixes for CI/CD
carrycooldude 9c90753
Fix final ruff formatting issues
carrycooldude cf4b20b
Fix PyTorch backend compatibility issues - Separate ops.arange and o…
carrycooldude 193496a
Fix PyTorch compatibility and test implementation
carrycooldude 4d8604e
Simplify tests and fix imports to isolate PyTorch backend issue
carrycooldude e07224c
Fix PyTorch backend compatibility issues
carrycooldude 6187459
Auto-fix ruff formatting issues
carrycooldude 00fc976
Simplify LayoutLMv3 to use standard KerasHub patterns
carrycooldude 0d3099d
Trigger fresh push - LayoutLMv3 implementation complete
carrycooldude 82b9b93
🔧 Enhance backend compatibility and error handling
carrycooldude e40a6a0
Add comprehensive import error handling and fallbacks
carrycooldude 7796cbf
Fix all code formatting issues
carrycooldude ae239c7
Add LayoutLMv3 exports to public API
carrycooldude 6671da2
Revert " Add LayoutLMv3 exports to public API"
carrycooldude f1ac61a
Fix CI issues: bash syntax, formatting, and API generation
carrycooldude c83c124
Remove manual API imports - let auto-generation handle it
carrycooldude 2ff3157
Restructure LayoutLMv3 backbone following KerasHub patterns - Follow …
carrycooldude 87359e5
Apply comprehensive LayoutLMv3 fixes from commit bcad8d7e
carrycooldude 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
There are no files selected for viewing
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from keras_hub.src.models.layoutlmv3.layoutlmv3_backbone import ( | ||
LayoutLMv3Backbone, | ||
) | ||
from keras_hub.src.models.layoutlmv3.layoutlmv3_presets import backbone_presets | ||
from keras_hub.src.models.layoutlmv3.layoutlmv3_tokenizer import ( | ||
LayoutLMv3Tokenizer, | ||
) | ||
from keras_hub.src.utils.preset_utils import register_presets | ||
|
||
__all__ = [ | ||
"LayoutLMv3Backbone", | ||
"LayoutLMv3Tokenizer", | ||
"LayoutLMv3TransformerLayer", | ||
] | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can remove these lines |
||
register_presets(backbone_presets, LayoutLMv3Backbone) |
Oops, something went wrong.
Oops, something went wrong.
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.
LayoutLMv3Tokenizer import is not required here