-
Notifications
You must be signed in to change notification settings - Fork 0
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
Removes torch from ocr_wrapper #24
Conversation
…to remove dependency on PyTorch.
…to remove dependency on PyTorch.
…_wrapper into improvement/remove_torch
…t` class for cleanup.
…es and image data.
…ch, controlled by the `OCR_WRAPPER_USE_TORCH` environment variable.
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.
Some aspects where we can save some time in the np implementation, see specific comments
document_prop: Type[DocumentProperties], | ||
box_lst: list[Type[BoxProperties]], | ||
document_prop: DocumentProperties, | ||
box_lst: list[BoxProperties], | ||
device: str = "cpu", |
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.
The "device" arg should probably be removed everywhere
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.
Yeah, since I don't know exactly where this is being used currently, I didn't want to change the public interface. There is a possibility that we use it outside of ocr_wrapper. I'll leave it for now.
…essing logic in tilt correction modules to increase code readability and speed
No description provided.