Failed to continue from: /home/robert/tesstutorial/trainplusminus/eng.lstm

114 views
Skip to first unread message

roberty...@gmail.com

unread,
Aug 7, 2017, 1:47:06 AM8/7/17
to tesseract-ocr
Hello,

I'm trying to train the traineddata with the new tutorial for the finetune training: https://github.com/tesseract-ocr/tesseract/wiki/TrainingTesseract-4.00#fine-tuning-for-%C2%B1-a-few-characters

I execute the commands as the tutorial showing.  Executing the commands as following:
1. training/tesstrain.sh --fonts_dir /usr/share/fonts --lang eng --linedata_only \
  --noextract_font_properties --langdata_dir ../langdata \
  --tessdata_dir ./tessdata --output_dir ~/tesstutorial/trainplusminus
2. training/tesstrain.sh --fonts_dir /usr/share/fonts --lang eng --linedata_only \
  --noextract_font_properties --langdata_dir ../langdata \
  --tessdata_dir ./tessdata \
  --fontlist "Impact Condensed" --output_dir ~/tesstutorial/evalplusminus
3. training/combine_tessdata -e tessdata/best/eng.traineddata \ ~/tesstutorial/trainplusminus/eng.lstm 4. training/lstmtraining --model_output ~/tesstutorial/trainplusminus/plusminus \ --continue_from ~/tesstutorial/trainplusminus/eng.lstm \ --traineddata ~/tesstutorial/trainplusminus/eng/eng.traineddata \ --old_traineddata tessdata/best/eng.traineddata \ --train_listfile ~/tesstutorial/trainplusminus/eng.training_files.txt \ --max_iterations 3600


When I excute the 4th command, there is an error appears:
Failed to continue from: /home/robert/tesstutorial/trainplusminus/eng.lstm

I check the 'eng.lstm' file in the dir of
/home/robert/tesstutorial/trainplusminus, and it exists.

But why Tess4 cannot continue from the file?

roberty...@gmail.com

unread,
Aug 7, 2017, 2:22:44 AM8/7/17
to tesseract-ocr
And when I execute the 1st command. An error: Failed to read data from: ../langdata/eng/eng.config

Afreen Ferdoash

unread,
Jan 12, 2018, 11:57:03 AM1/12/18
to tesseract-ocr
In case you are still stuck here, I fixed this issue by downloading the latest version of eng.traineddata
See https://github.com/tesseract-ocr/tesseract/issues/1069
Reply all
Reply to author
Forward
0 new messages