-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: annotate image is fixed after refactor (#262)
Currently the code for annotate() don't add details when add_details=True, for example: ``` from unstructured_inference.inference.layout import DocumentLayout from unstructured_inference.models.base import get_model file = "example-docs/layout-parser-paper-fast.pdf" model = get_model("yolox_quantized") doc = DocumentLayout.from_file(file,model) for i,page in enumerate(doc.pages): page.annotate(add_details=True).save(f"{i}.png") ``` After this PR is merged, the resulting image should show origin for all elements using the same code.
- Loading branch information
Showing
4 changed files
with
12 additions
and
11 deletions.
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