Doc determination#210
Open
rdraviam wants to merge 32 commits into
Open
Conversation
rsteele5
requested changes
May 28, 2026
Collaborator
rsteele5
left a comment
There was a problem hiding this comment.
NOTE: All comments list as MINOR are not needed changes just recommendations.
rsteele5
approved these changes
May 29, 2026
Comment on lines
+367
to
+382
| # yappi.start() | ||
| enumerated_frames = tqdm( | ||
| enumerate(frames), total=len(frames), desc="page rotation", unit="frame" | ||
| ) | ||
| for i, frame in enumerated_frames: | ||
| results = detect_page_rotation(frame) | ||
| if rotation := results.get("rotate", 0): | ||
| logger.info(f"Rotating frame {i} by {rotation} degrees") | ||
| frames[i] = np.rot90(frame, k=-rotation // 90) | ||
| changed, resized = ensure_max_page_size([frames[i]]) | ||
| if changed: | ||
| logger.info(f"Resized frame {i} after rotation") | ||
| frames[i] = resized[0] | ||
| any_rotated = True | ||
| page_rotation[i] = results | ||
| # yappi.stop() |
efff7ea to
d6236ab
Compare
…utLMv3DocumentClassifier
388fef5 to
9ec2fe0
Compare
5d3a6e8 to
dd8dce0
Compare
71bf3b1 to
ce39d9b
Compare
ce39d9b to
eaf8969
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Integration of new models:
TransformersDocumentLevelClassifier&TransformersSplittingClassifier. (RenamedTransformersDocumentClassifier->TransformersPageLevelClassifier)LayoutLMv3DocumentClassifier&LayoutLMv3DocumentSplitter. Converted to huggingface format (c533a53)preprocessor_config.jsonin model directory if existsPipeline/ Executor:
DocDeterminationPipelineExecutor{0: [1,2,3], 1: [4,6,7]}will result in two classification results for that classification group in the final metadata.Include,Exclude,Split. Ex.Additional: