OS Manuals

/usr/bin/lstmtraining

Tesseract Open Source OCR Engine

From tesseract 5.5.2-r8 (os), captured 2026-11-05 by running lstmtraining --help (exit 0). permalink

Also provided by 1 other package version
Usage:
  /usr/bin/lstmtraining -v | --version | /usr/bin/lstmtraining [.tr files ...] [OPTION ...]

  --debug_level  Level of Trainer debugging  (type:int default:0)
  --load_images  Load images with tr files  (type:int default:0)
  --debug_interval  How often to display the alignment.  (type:int default:0)
  --net_mode  Controls network behavior.  (type:int default:192)
  --perfect_sample_delay  How many imperfect samples between perfect ones.  (type:int default:0)
  --max_image_MB  Max memory to use for images.  (type:int default:6000)
  --append_index  Index in continue_from Network at which to attach the new network defined by net_spec  (type:int default:-1)
  --max_iterations  If set, exit after this many iterations  (type:int default:0)
  --clusterconfig_min_samples_fraction  Min number of samples per proto as % of total  (type:double default:0.625)
  --clusterconfig_max_illegal  Max percentage of samples in a cluster which have more than 1 feature in that cluster  (type:double default:0.05)
  --clusterconfig_independence  Desired independence between dimensions  (type:double default:1)
  --clusterconfig_confidence  Desired confidence in prototypes created  (type:double default:1e-06)
  --target_error_rate  Final error rate in percent.  (type:double default:0.01)
  --weight_range  Range of initial random weights.  (type:double default:0.1)
  --learning_rate  Weight factor for new deltas.  (type:double default:0.001)
  --momentum  Decay factor for repeating deltas.  (type:double default:0.5)
  --adam_beta  Decay factor for repeating deltas.  (type:double default:0.999)
  --reset_learning_rate  Resets all stored learning rates to the value specified by --learning_rate.  (type:bool default:false)
  --debug_float  Raise error on certain float errors.  (type:bool default:false)
  --stop_training  Just convert the training model to a runtime model.  (type:bool default:false)
  --convert_to_int  Convert the recognition model to an integer model.  (type:bool default:false)
  --sequential_training  Use the training files sequentially instead of round-robin.  (type:bool default:false)
  --debug_network  Get info on distribution of weight values  (type:bool default:false)
  --randomly_rotate  Train OSD and randomly turn training samples upside-down  (type:bool default:false)
  --configfile  File to load more configs from  (type:string default:)
  --D  Directory to write output files to  (type:string default:)
  --F  File listing font properties  (type:string default:font_properties)
  --X  File listing font xheights  (type:string default:)
  --U  File to load unicharset from  (type:string default:unicharset)
  --O  File to write unicharset to  (type:string default:)
  --output_trainer  File to write trainer to  (type:string default:)
  --test_ch  UTF8 test character string  (type:string default:)
  --fonts_dir    (type:string default:)
  --fontconfig_tmpdir    (type:string default:)
  --net_spec  Network specification  (type:string default:)
  --continue_from  Existing model to extend  (type:string default:)
  --model_output  Basename for output models  (type:string default:lstmtrain)
  --train_listfile  File listing training files in lstmf training format.  (type:string default:)
  --eval_listfile  File listing eval files in lstmf training format.  (type:string default:)
  --traineddata  Combined Dawgs/Unicharset/Recoder for language model  (type:string default:)
  --old_traineddata  When changing the character set, this specifies the old character set that is to be replaced  (type:string default:)
Options (41)
OptionDescriptionSource
--debug_levelLevel of Trainer debugging (type:int default:0)help
--load_imagesLoad images with tr files (type:int default:0)help
--debug_intervalHow often to display the alignment.help
--net_modeControls network behavior.help
--perfect_sample_delayHow many imperfect samples between perfect ones.help
--max_image_MBMax memory to use for images.help
--append_indexIndex in continue_from Network at which to attach the new network defined by net_spec (type:int default:-1)help
--max_iterationsIf set, exit after this many iterations (type:int default:0)help
--clusterconfig_min_samples_fractionMin number of samples per proto as % of total (type:double default:0.625)help
--clusterconfig_max_illegalMax percentage of samples in a cluster which have more than 1 feature in that cluster (type:double default:0.05)help
--clusterconfig_independenceDesired independence between dimensions (type:double default:1)help
--clusterconfig_confidenceDesired confidence in prototypes created (type:double default:1e-06)help
--target_error_rateFinal error rate in percent.help
--weight_rangeRange of initial random weights.help
--learning_rateWeight factor for new deltas.help
--momentumDecay factor for repeating deltas.help
--adam_betaDecay factor for repeating deltas.help
--reset_learning_rateResets all stored learning rates to the value specified by --learning_rate.help
--debug_floatRaise error on certain float errors.help
--stop_trainingJust convert the training model to a runtime model.help
--convert_to_intConvert the recognition model to an integer model.help
--sequential_trainingUse the training files sequentially instead of round-robin.help
--debug_networkGet info on distribution of weight values (type:bool default:false)help
--randomly_rotateTrain OSD and randomly turn training samples upside-down (type:bool default:false)help
--configfileFile to load more configs from (type:string default:)help
--DDirectory to write output files to (type:string default:)help
--FFile listing font properties (type:string default:font_properties)help
--XFile listing font xheights (type:string default:)help
--UFile to load unicharset from (type:string default:unicharset)help
--OFile to write unicharset to (type:string default:)help
--output_trainerFile to write trainer to (type:string default:)help
--test_chUTF8 test character string (type:string default:)help
--fonts_dir(type:string default:)help
--fontconfig_tmpdir(type:string default:)help
--net_specNetwork specification (type:string default:)help
--continue_fromExisting model to extend (type:string default:)help
--model_outputBasename for output models (type:string default:lstmtrain)help
--train_listfileFile listing training files in lstmf training format.help
--eval_listfileFile listing eval files in lstmf training format.help
--traineddataCombined Dawgs/Unicharset/Recoder for language model (type:string default:)help
--old_traineddataWhen changing the character set, this specifies the old character set that is to be replaced (type:string default:)help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.