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

Place TFloat type in the tesseract namespace #8

Closed
wants to merge 18 commits into from

Conversation

GerHobbelt
Copy link

Place TFloat type in the tesseract namespace, same as has been done with all other tesseract defined types, to prevent collisions with thirdparty software.

stweil and others added 18 commits July 14, 2021 22:20
Up to now Tesseract used double for training and recognition
with "best" models.

This commit replaces double by a new data type TFloat which
is double by default, but float if FAST_FLOAT is defined.

Ideally this should allow faster training.

Signed-off-by: Stefan Weil <[email protected]>
Signed-off-by: Stefan Weil <[email protected]>
Signed-off-by: Stefan Weil <[email protected]>
…vector (8x32) (contrasting 4 double FPs: 4*64)
…6d scale01234567 = _mm256_loadu_ps(scales)`, i.e. loading float vectors into double vector types. Extract from tesseract-ocr#3490.
…ith all other tesseract defined types, to prevent collisions with thirdparty software.
@stweil
Copy link
Owner

stweil commented Jul 15, 2021

Merged by cherry picking the relevant commit, thanks.

@stweil stweil closed this Jul 15, 2021
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