mgr_.Init(traineddata_path.c_str()):Error:Assert failed:in file ../../src/lstm/lstmtrainer.h, line 110 Illegal instruction (core dumped)

14 views
Skip to first unread message

Jennil Thiyam

unread,
May 30, 2019, 6:35:03 AM5/30/19
to tesser...@googlegroups.com
lstmtraining --model_output ~/tesstutorial/train_wa/wa \
> --continue_from ~/tesstutorial/train_wa/ben.lstm \
> --traineddata ~/tesstitorial/train_wa/ben/ben.traineddata \
> --old_traineddata tessdata/best/ben.traineddata \
> --train_listfile ~/tesstutorial/train_wa/ben.training_files.txt \
> --max_iterations 3600


As you, shree Devi suggested, i download ben.traindata from the source and extract the lstm file from it and then after making training data, when i tried to run lstm, the same error that i got before  shows up again, shree help me out.

Shree Devi Kumar

unread,
May 30, 2019, 7:12:42 AM5/30/19
to tesser...@googlegroups.com
--traineddata ~/tesstitorial/train_wa/ben/ben.traineddata \

Typo tere tutorial check spelling

--
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 post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/CAJxgood2-zYCstEN%2BHY6dzfF4S_PJuwriR0ET%3Do4ip3964O6Kg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Jennil Thiyam

unread,
May 30, 2019, 10:14:16 AM5/30/19
to tesser...@googlegroups.com
thanks shree, it was my silly mistake, but

lstmtraining --model_output ~/tesstutorial/train_wa/wa
--continue_from ~/tesstutorial/train_wa/ben.lstm
--traineddata ~/tesstutorial/train_wa/ben/ben.traineddata
--old_traineddata /home/vesper2/tesstutorial/tesseract/tessdata/best/ben.traineddata
--train_listfile ~/tesstutorial/train_wa/ben.training_files.txt
--max_iterations 3600

after getting so many checkpoits, it is finished, it says

Finished! Error rate = 3.901

But i dont get any model in my output directory, its empty


Shree Devi Kumar

unread,
May 30, 2019, 10:26:27 AM5/30/19
to tesser...@googlegroups.com
You have to convert the checkpoint to traineddata - run lstmtraining with --stop_training flag


For more options, visit https://groups.google.com/d/optout.


--

____________________________________________________________
भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com

Jennil Thiyam

unread,
May 30, 2019, 11:27:52 AM5/30/19
to tesser...@googlegroups.com
training/lstmtraining --stop_training \
  --continue_from ~/tesstutorial/eng_from_chi/base_checkpoint \
  --traineddata ~/tesstutorial/engtrain/eng/eng.traineddata \
  --model_output ~/tesstutorial/eng_from_chi/eng.traineddata

Is the eng.traineddata(ben.traineddata, in my case) the new traineddata(that I got as an output of tesstrain.sh)
or is it the old traineddata?


Jennil Thiyam

unread,
May 30, 2019, 12:15:32 PM5/30/19
to tesser...@googlegroups.com
The character that i added is still not recognized, do you have any idea ?

Reply all
Reply to author
Forward
0 new messages