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

Deserialize header failed #4110

Open
coremuscle opened this issue Jul 28, 2023 · 1 comment
Open

Deserialize header failed #4110

coremuscle opened this issue Jul 28, 2023 · 1 comment

Comments

@coremuscle
Copy link

Current Behavior

C:\Users\lgh\Desktop\abc>lstmtraining --model_output C:\Users\lgh\Desktop\abc\lstm --continue_from C:\Users\lgh\Desktop\best\eng.lstm --train_listfile C:\Users\lgh\Desktop\abc\eng.abc.exp0.lstmf --traineddata C:\Users\lgh\Desktop\best\eng.traineddata --debug_interval -1 --max_iterations 400
Loaded file C:\Users\lgh\Desktop\best\eng.lstm, unpacking...
Warning: LSTMTrainer deserialized an LSTMRecognizer!
Continuing from C:\Users\lgh\Desktop\best\eng.lstm
Deserialize header failed: �
Deserialize header failed: �
Deserialize header failed:
Deserialize header failed: y^w훩좇\漠[s?큍????A?b?�훠?C퐘j4C壁??r虹a.W뗏폇;�훠bF8?<!쀷쏴?쮡??��鑿燾?/?46�?むrCGg"H�?끲R?얲)?�쇕璉�?Fブ+
Deserialize header failed: 垓%?f?3?FQYı?�n?丞�&%?굵?
Load of page 0 failed!
Load of images failed!!

abc.zip

Expected Behavior

No response

Suggested Fix

No response

tesseract -v

C:\Users\lgh\Desktop\abc>tesseract --version
tesseract v5.2.0.20220712
leptonica-1.78.0
libgif 5.1.4 : libjpeg 8d (libjpeg-turbo 1.5.3) : libpng 1.6.34 : libtiff 4.0.9 : zlib 1.2.11 : libwebp 0.6.1 : libopenjp2 2.3.0
Found AVX2
Found AVX
Found FMA
Found SSE4.1
Found libarchive 3.5.0 zlib/1.2.11 liblzma/5.2.3 bz2lib/1.0.6 liblz4/1.7.5 libzstd/1.4.5
Found libcurl/7.77.0-DEV Schannel zlib/1.2.11 zstd/1.4.5 libidn2/2.0.4 nghttp2/1.31.0

Operating System

Windows 10

Other Operating System

No response

uname -a

No response

Compiler

No response

CPU

AMD Ryzen 5 3400G with Radeon Vega Graphics 3.70 GHz

Virtualization / Containers

No response

Other Information

I tried with tesseract v.5.3.1 but same error occurs. It was confirmed that tif, box, and traineddata were created and recognized well by tess4j, but this is an error that occurs when performing lstmtraining. Could it be cpu related?

@zdenop
Copy link
Contributor

zdenop commented Jan 13, 2024

  1. Try to use the latest tesseract version
  2. Can you provide minimum data/files for reproducing the problem?

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

No branches or pull requests

2 participants