Tesseract failed to read .lstm file and checkpoint file

41 views
Skip to first unread message

Foong Gah Seng

unread,
Apr 21, 2025, 12:45:38 AM4/21/25
to tesseract-ocr
OS: Windows

$ make training TESSDATA=/c/Users/gahse/Desktop/Projects/lib/dup/tesstrain/data/tessdata MODEL_NAME=jpn_font START_MODEL=jpn
You are using make version: 4.4.1
tesseract "data/jpn_font-ground-truth/001pg1_1.tif" data/jpn_font-ground-truth/001pg1_1 --psm 13 lstm.train
read_params_file: Can't open lstm.train
tesseract "data/jpn_font-ground-truth/001pg1_2.tif" data/jpn_font-ground-truth/001pg1_2 --psm 13 lstm.train
read_params_file: Can't open lstm.train
tesseract "data/jpn_font-ground-truth/001pg1_3.tif" data/jpn_font-ground-truth/001pg1_3 --psm 13 lstm.train
read_params_file: Can't open lstm.train
python shuffle.py 0 "data/jpn_font/all-lstmf"
python generate_eval_train.py data/jpn_font/all-lstmf 0.90

lstmtraining \
  --debug_interval 0 \
  --traineddata data/jpn_font/jpn_font.traineddata \
  --old_traineddata C:/Users/gahse/Desktop/Projects/lib/dup/tesstrain/data/tessdata/jpn.traineddata \
  --continue_from data/jpn/jpn_font.lstm \
  --learning_rate 0.0001 \
  --model_output data/jpn_font/checkpoints/jpn_font \
  --train_listfile data/jpn_font/list.train \
  --eval_listfile data/jpn_font/list.eval \
  --max_iterations 10000 \
  --target_error_rate 0.01 \
2>&1 | tee -a data/jpn_font/training.log
Loaded file data/jpn/jpn_font.lstm, unpacking...
Failed to continue from: data/jpn/jpn_font.lstm

lstmtraining \
--stop_training \
--continue_from data/jpn_font/checkpoints/jpn_font_checkpoint \
--traineddata data/jpn_font/jpn_font.traineddata \
--model_output data/jpn_font.traineddata
Failed to read continue from: data/jpn_font/checkpoints/jpn_font_checkpoint
make: *** [Makefile:325: data/jpn_font.traineddata] Error 1

Hi im having issue
1. What is the cause that failed from .lstm?
2. The checkpoint file will auto generated or need to create manually? What is the format? 

Zdenko Podobny

unread,
Apr 21, 2025, 3:37:50 AM4/21/25
to tesser...@googlegroups.com
Dear friends,

do not try to train tesseract if you have a clue how tesseract works. You will fail, waste your time and resources.
If you are not able to solve the issue `read_params_file: Can't open...` by yourself (e.g. you did not even try to search on the internet for a solution) then tesseract is not the right tool for you. Go and use some paid solution.. 

Zdenko


po 21. 4. 2025 o 6:45 Foong Gah Seng <gahs...@gmail.com> napísal(a):
--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/tesseract-ocr/06021b9c-9296-46d0-8089-f8e41b34171an%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages