LSTMTRAINING(1)
π lstmtraining(1) π
okay bestie, welcome to lstmtraining(1) β literally the training program for LSTM-based networks, and yes she's iconic, yes she's a little extra, and yes we're gonna get through all of it together π«Ά
β¨ NAME β¨
lstmtraining β Training program for LSTM-based networks. that's it, that's the vibe π
π¦ SYNOPSIS π¦
lstmtraining --continue_from train_output_dir/continue_from_lang.lstm
--old_traineddata bestdata_dir/continue_from_lang.traineddata
--traineddata train_output_dir/lang/lang.traineddata --max_iterations
NNN --debug_interval 0|-1 --train_listfile
train_output_dir/lang.training_files.txt --model_output
train_output_dir/newlstmmodel
πΈ DESCRIPTION πΈ
so lstmtraining(1) trains LSTM-based networks, and the main input situation is: a list of lstmf files π plus a starter traineddata file. that's the whole main-character setup.
real talk though β training from scratch is not recommended to be done by users, no cap. like, don't. π
what you can do instead is finetuning (the example command up in the synopsis is literally the finetuning example, iykyk) or replacing a layer via the options. and heads up: different options apply to different types of training, so not every flag is gonna slay in every scenario.
read the training documentation for the details, bestie: https://tesseract-ocr.github.io/tessdoc/TrainingTesseract-4.00.html
π OPTIONS π
--debug_intervalβ how often to display the alignment. (type:intdefault:0)--net_modeβ controls network behavior. (type:intdefault:192)--perfect_sample_delayβ how many imperfect samples between perfect ones. (type:intdefault:0)--max_image_MBβ max memory to use for images. (type:intdefault:6000)--append_indexβ index incontinue_fromNetwork at which to attach the new network defined bynet_spec. (type:intdefault:-1)--max_iterationsβ if set, exit after this many iterations. a negative value is interpreted as epochs,0means infinite iterations. (type:intdefault:0)--target_error_rateβ final error rate in percent. (type:doubledefault:0.01)--weight_rangeβ range of initial random weights. (type:doubledefault:0.1)--learning_rateβ weight factor for new deltas. (type:doubledefault:0.001)--momentumβ decay factor for repeating deltas. (type:doubledefault:0.5)--adam_betaβ decay factor for repeating deltas. (type:doubledefault:0.999)--stop_trainingβ just convert the training model to a runtime model. (type:booldefault:false)--convert_to_intβ convert the recognition model to an integer model. (type:booldefault:false)--sequential_trainingβ use the training files sequentially instead of round-robin. (type:booldefault:false)--debug_networkβ get info on distribution of weight values. (type:booldefault:false)--randomly_rotateβ train OSD and randomly turn training samples upside-down. (type:booldefault:false)--net_specβ network specification. (type:stringdefault: empty)--continue_fromβ existing model to extend. (type:stringdefault: empty)--model_outputβ basename for output models. (type:stringdefault:lstmtrain)--train_listfileβ file listing training files inlstmftraining format. (type:stringdefault: empty)--eval_listfileβ file listing eval files inlstmftraining format. (type:stringdefault: empty)--traineddataβ starter traineddata with combined Dawgs/Unicharset/Recoder for language model. (type:stringdefault: empty)--old_traineddataβ when changing the character set, this specifies the traineddata with the old character set that is to be replaced. (type:stringdefault: empty)
π HISTORY π
lstmtraining(1) was first made available for tesseract4.00.00alpha. she's been serving since day one, periodt π
π RESOURCES π
- Main web site:
https://github.com/tesseract-ocr - Information on training tesseract LSTM:
https://tesseract-ocr.github.io/tessdoc/TrainingTesseract-4.00.html
π₯ SEE ALSO π₯
tesseract(1)β the whole reason we're here, go read her too π«Ά
π COPYING π
Copyright (C) 2012 Google, Inc. Licensed under the Apache License, Version 2.0 β keep the license intact bestie, it's the law β¨
π AUTHOR π
The Tesseract OCR engine was written by Ray Smith and his research groups at Hewlett Packard (1985-1995) and Google (2006-2018). literal legends, no cap π
okay that's the whole page, you ate that π
this was the lstmtraining(1) page, dated 2026-09-28 β go train something iconic, mwah ππ
π¦ where this page comes from
- opensuse-leap 16.0: tesseract-ocr 5.5.3-bp160.2.1 Β· Apache-2.0 AND GPL-2.0-or-later
- opensuse-leap 16.0: tesseract-ocr 5.5.3-bp160.2.1 Β· Apache-2.0 AND GPL-2.0-or-later
- opensuse-leap 16.0: tesseract-ocr 5.5.3-bp160.2.1 Β· Apache-2.0 AND GPL-2.0-or-later
- opensuse-leap 16.0: tesseract-ocr 5.5.3-bp160.2.1 Β· Apache-2.0 AND GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms