-
Notifications
You must be signed in to change notification settings - Fork 169
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 doughnut http endpoint #230
Draft
edknv
wants to merge
46
commits into
NVIDIA:main
Choose a base branch
from
edknv:feat/doughnut-http-endpoint-1
base: main
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.
Draft
Changes from 10 commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
3fbcf68
Add doughnut http endpoint
edknv e5a281d
fix table and chart extraction
edknv d933a33
handle 202 reponses by repolling status
edknv af9ca0e
add table format in unit tests
edknv b5c992d
Merge branch 'main' into feat/doughnut-http-endpoint-1
edknv 6ad99c0
fix table and image max dimensions
edknv e511dbf
Merge branch 'feat/doughnut-http-endpoint-1' of github.com:edknv/nv-i…
edknv b3c632b
add unit tests for the helper
edknv 0deb5c9
add placeholder for url in docker compose
edknv 2e7db6d
add check for empty dataframe in table/chart extraction
edknv c5b5d3e
clean up doughnut specific confiditions in inference func
edknv bcb0037
clean up doughnut specific confiditions in inference func
edknv 187d13d
fix unit tests
edknv 51b5bca
Merge branch 'main' into feat/doughnut-http-endpoint-1
edknv 321052f
Add support for text bounding boxes
edknv a9a74b7
also add table and image bounding boxes to metadata
edknv 1d532a4
Use seprate environment variable for private endpoint
edknv e141cad
Merge branch 'main' into feat/doughnut-http-endpoint-1
edknv ea057e6
Use seprate environment variable for private endpoint
edknv be8cc68
Merge branch 'feat/doughnut-http-endpoint-1' of github.com:edknv/nv-i…
edknv 67ff768
Merge branch 'main' into feat/doughnut-http-endpoint-1
edknv 001a3b5
Merge branch 'main' into feat/doughnut-http-endpoint-1
edknv ccb9f8f
Merge branch 'main' into feat/doughnut-http-endpoint-1
edknv 8088eed
migrate to using NimClient and ModelInterface
edknv 0163880
Merge branch 'feat/doughnut-http-endpoint-1' of github.com:edknv/nv-i…
edknv 792b724
update unit tests
edknv 8f77199
Merge branch 'main' into feat/doughnut-http-endpoint-1
edknv f96d406
Merge branch 'main' into feat/doughnut-http-endpoint-1
jdye64 9a17068
Merge branch 'main' into feat/doughnut-http-endpoint-1
edknv 71d7212
lint
edknv e9f021f
fix unit test
edknv e456d9e
Merge branch 'main' into feat/doughnut-http-endpoint-1
edknv a7e0f36
Merge branch 'main' into feat/doughnut-http-endpoint-1
edknv 7e2e518
Merge branch 'main' into feat/doughnut-http-endpoint-1
edknv b833850
Merge branch 'main' into feat/doughnut-http-endpoint-1
edknv 247c431
Merge branch 'feat/doughnut-http-endpoint-1' of github.com:edknv/nv-i…
edknv 1fc1b67
Merge branch 'main' into feat/doughnut-http-endpoint-1
edknv a705846
Merge branch 'main' into feat/doughnut-http-endpoint-1
edknv e4e3406
Merge branch 'main' into feat/doughnut-http-endpoint-1
edknv 0ef5b86
Merge branch 'main' into feat/doughnut-http-endpoint-1
edknv a0c584c
Merge branch 'main' into feat/doughnut-http-endpoint-1
edknv a0befbf
Merge branch 'main' into feat/doughnut-http-endpoint-1
edknv c6b0a35
migrate doughnut config to pydantic 2
edknv 410610e
Merge branch 'feat/doughnut-http-endpoint-1' of github.com:edknv/nv-i…
edknv 23eae8f
Merge branch 'main' into feat/doughnut-http-endpoint-1
edknv 26b5e50
Merge branch 'main' into feat/doughnut-http-endpoint-1
edknv 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 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 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
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.
I don't think this is correct. Even if the table_format is image, we can still extract the content in the chart extractor. Am I thinking about this wrong?
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.
I added this so that the tables extracted from the Doughnut model don't go through the table/chart extraction stages. Doughnut tables will already have text (as LaTex), so they don't need to go through the table/chart extraction stages. YOLOX tables need text extraction in table/chart extraction stages, and they are tagged as IMAGE tables so they do get processed in these stages. I'm not sure if that made sense, but I needed a way to skip table/chart extraction for tables identified by Doughnut, and thought TableFormat could be useful here to distinguish between yolox (== TableFormatEnum.IMAGE) and doughnut (==TableFormatEnum.LATEX).