Skip to content
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

Merged
merged 11 commits into from
Oct 30, 2024
Merged

Removes torch from ocr_wrapper #24

merged 11 commits into from
Oct 30, 2024

Conversation

Paethon
Copy link
Contributor

@Paethon Paethon commented Oct 28, 2024

No description provided.

Copy link
Contributor

@phschoepf phschoepf left a 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",
Copy link
Contributor

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

Copy link
Contributor Author

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.

ocr_wrapper/tilt_correction_torch.py Outdated Show resolved Hide resolved
ocr_wrapper/tilt_correction.py Outdated Show resolved Hide resolved
ocr_wrapper/tilt_correction_numpy.py Outdated Show resolved Hide resolved
ocr_wrapper/tilt_correction_numpy.py Outdated Show resolved Hide resolved
ocr_wrapper/tilt_correction_numpy.py Show resolved Hide resolved
…essing logic in tilt correction modules to increase code readability and speed
@Paethon Paethon merged commit 52c524a into main Oct 30, 2024
2 checks passed
@Paethon Paethon deleted the improvement/remove_torch branch October 30, 2024 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants