text:
Infinite Loop of Compute CTC targets failed!

Environment

Tesseract Version: 4.0.0-beta.1-306-g45b11cd
Commit Number: 4.0.0-beta.1-306-g45b11cd
Platform: Ubuntu x86_64 GNU/Linux

Current Behavior:
Infinite loop of Compute CTC targets failed
I have a box file and tif images and i run the below script for training.

ALL_BOXES = data/all-boxes
ALL_LSTMF = data/all-lstmf

# Create unicharset
unicharset: data/unicharset

# Create lists of lstmf filenames for training and eval
lists: $(ALL_LSTMF) data/list.train data/list.eval

data/list.train: $(ALL_LSTMF)
	total=`cat $(ALL_LSTMF) | wc -l` \
	   no=`echo "$$total * $(RATIO_TRAIN) / 1" | bc`; \
	   head -n "$$no" $(ALL_LSTMF) > "$@"

data/list.eval: $(ALL_LSTMF)
	total=`cat $(ALL_LSTMF) | wc -l` \
	   no=`echo "($$total - $$total * $(RATIO_TRAIN)) / 1" | bc`; \
	   tail -n "+$$no" $(ALL_LSTMF) > "$@"

# Start training
training: data/$(MODEL_NAME).traineddata

data/unicharset: $(ALL_BOXES)

	combine_tessdata -u $(TESSDATA)/eng.traineddata  $(TESSDATA)/$(MODEL_NAME).
	unicharset_extractor --output_unicharset "$(TRAIN)/my.unicharset" --norm_mode $(NORM_MODE) "$(ALL_BOXES)"
	merge_unicharsets $(TESSDATA)/$(MODEL_NAME).lstm-unicharset $(TRAIN)/my.unicharset  "$@"

$(ALL_BOXES): $(sort $(patsubst %.tif,%.box,$(wildcard $(TRAIN)/*.tif)))
	find $(TRAIN) -name '*.box' -exec cat {} \; > "$@"

#$(TRAIN)/%.box: $(TRAIN)/%.tif $(TRAIN)/%.gt.txt
	#python3 generate_line_box.py -i "$(TRAIN)/$*.tif" -t "$(TRAIN)/$*.gt.txt" > "$@"

$(ALL_LSTMF): $(sort $(patsubst %.tif,%.lstmf,$(wildcard $(TRAIN)/*.tif)))
	find $(TRAIN) -name '*.lstmf' -exec echo {} \; | sort -R -o "$@"

$(TRAIN)/%.lstmf: $(TRAIN)/%.box
	tesseract $(TRAIN)/$*.tif $(TRAIN)/$* --psm $(PSM) lstm.train

# Build the proto model
proto-model: data/$(MODEL_NAME)/$(MODEL_NAME).traineddata

data/$(MODEL_NAME)/$(MODEL_NAME).traineddata: $(LANGDATA) data/unicharset
	combine_lang_model \
	  --input_unicharset data/unicharset \
	  --script_dir $(LANGDATA) \
	  --output_dir data/ \
	  --lang $(MODEL_NAME)

data/checkpoints/$(MODEL_NAME)_checkpoint: unicharset lists proto-model
	mkdir -p data/checkpoints
	lstmtraining \
	  --traineddata data/$(MODEL_NAME)/$(MODEL_NAME).traineddata \
	  --net_spec "[1,36,0,1 Ct3,3,16 Mp3,3 Lfys48 Lfx96 Lrx96 Lfx256 O1c`head -n1 data/unicharset`]" \
	  --model_output data/checkpoints/$(MODEL_NAME) \
	  --learning_rate 20e-4 \
	  --train_listfile data/list.train \
	  --eval_listfile data/list.eval \
	  --max_iterations 10000

Here is the Logs including the error .
find data/train -name '*.box' -exec cat {} \; > "data/all-boxes"
#python3 generate_line_box.py -i "data/train/.tif" -t "data/train/.gt.txt" > "data/all-boxes"
combine_tessdata -u /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/eng.traineddata  /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.
Version string:4.00.00alpha:eng:synth20170629:[1,36,0,1Ct3,3,16Mp3,3Lfys64Lfx96Lrx96Lfx512O1c1]
1:unicharset:size=7477, offset=192
2:unicharambigs:size=1047, offset=7669
3:inttemp:size=976552, offset=8716
4:pffmtable:size=844, offset=985268
5:normproto:size=13408, offset=986112
6:punc-dawg:size=4322, offset=999520
7:word-dawg:size=1082890, offset=1003842
8:number-dawg:size=6426, offset=2086732
9:freq-dawg:size=1410, offset=2093158
13:shapetable:size=63346, offset=2094568
14:bigram-dawg:size=16109842, offset=2157914
17:lstm:size=1487588, offset=18267756
18:lstm-punc-dawg:size=4322, offset=19755344
19:lstm-word-dawg:size=3694794, offset=19759666
20:lstm-number-dawg:size=4738, offset=23454460
21:lstm-unicharset:size=6360, offset=23459198
22:lstm-recoder:size=1012, offset=23465558
23:version:size=80, offset=23466570
Extracting tessdata components from /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/eng.traineddata
Wrote /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.unicharset
Wrote /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.unicharambigs
Wrote /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.inttemp
Wrote /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.pffmtable
Wrote /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.normproto
Wrote /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.punc-dawg
Wrote /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.word-dawg
Wrote /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.number-dawg
Wrote /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.freq-dawg
Wrote /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.shapetable
Wrote /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.bigram-dawg
Wrote /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.lstm
Wrote /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.lstm-punc-dawg
Wrote /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.lstm-word-dawg
Wrote /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.lstm-number-dawg
Wrote /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.lstm-unicharset
Wrote /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.lstm-recoder
Wrote /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.version
unicharset_extractor --output_unicharset "data/train/my.unicharset" --norm_mode 2 "data/all-boxes"
Extracting unicharset from box file data/all-boxes
Other case f of F is not in unicharset
Other case d of D is not in unicharset
Other case h of H is not in unicharset
Other case z of Z is not in unicharset
Other case k of K is not in unicharset
Other case w of W is not in unicharset
Other case v of V is not in unicharset
Other case j of J is not in unicharset
Other case b of B is not in unicharset
Other case q of Q is not in unicharset
Wrote unicharset file data/train/my.unicharset
merge_unicharsets /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.lstm-unicharset data/train/my.unicharset  "data/unicharset"
Loaded unicharset of size 112 from file /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.lstm-unicharset
Loaded unicharset of size 62 from file data/train/my.unicharset
Wrote unicharset file data/unicharset.
tesseract data/train/10_0.tif data/train/10_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/11_0.tif data/train/11_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/12_0.tif data/train/12_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/13_0.tif data/train/13_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/14_0.tif data/train/14_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/15_0.tif data/train/15_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/16_0.tif data/train/16_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/17_0.tif data/train/17_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/18_0.tif data/train/18_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/19_0.tif data/train/19_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/1_0.tif data/train/1_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/20_0.tif data/train/20_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/21_0.tif data/train/21_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/22_0.tif data/train/22_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/23_0.tif data/train/23_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/24_0.tif data/train/24_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/25_0.tif data/train/25_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/26_0.tif data/train/26_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/27_0.tif data/train/27_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/28_0.tif data/train/28_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/29_0.tif data/train/29_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/2_0.tif data/train/2_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/30_0.tif data/train/30_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/31_0.tif data/train/31_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/32_0.tif data/train/32_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/33_0.tif data/train/33_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/3_0.tif data/train/3_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/4_0.tif data/train/4_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/5_0.tif data/train/5_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/6_0.tif data/train/6_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/7_0.tif data/train/7_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/8_0.tif data/train/8_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/9_0.tif data/train/9_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
find data/train -name '*.lstmf' -exec echo {} \; | sort -R -o "data/all-lstmf"
total=`cat data/all-lstmf | wc -l` \
   no=`echo "$total * 0.90 / 1" | bc`; \
   head -n "$no" data/all-lstmf > "data/list.train"
total=`cat data/all-lstmf | wc -l` \
   no=`echo "($total - $total * 0.90) / 1" | bc`; \
   tail -n "+$no" data/all-lstmf > "data/list.eval"
combine_lang_model \
  --input_unicharset data/unicharset \
  --script_dir /mnt/Training_Tesseract/ocrd-train/langdata-master \
  --output_dir data/ \
  --lang Invoice
Loaded unicharset of size 112 from file data/unicharset
Setting unichar properties
Other case É of é is not in unicharset
Setting script properties
Config file is optional, continuing...
Failed to read data from: /mnt/Training_Tesseract/ocrd-train/langdata-master/Invoice/Invoice.config
Null char=2
mkdir -p data/checkpoints
lstmtraining \
  --traineddata data/Invoice/Invoice.traineddata \
  --net_spec "[1,36,0,1 Ct3,3,16 Mp3,3 Lfys48 Lfx96 Lrx96 Lfx256 O1c`head -n1 data/unicharset`]" \
  --model_output data/checkpoints/Invoice \
  --learning_rate 20e-4 \
  --train_listfile data/list.train \
  --eval_listfile data/list.eval \
  --max_iterations 10000
Warning: given outputs 112 not equal to unicharset of 111.
Num outputs,weights in Series:
  1,36,0,1:1, 0
Num outputs,weights in Series:
  C3,3:9, 0
  Ft16:16, 160
Total weights = 160
  [C3,3Ft16]:16, 160
  Mp3,3:16, 0
  Lfys48:48, 12480
  Lfx96:96, 55680
  Lrx96:96, 74112
  Lfx256:256, 361472
  Fc111:111, 28527
Total weights = 532431
Built network:[1,36,0,1[C3,3Ft16]Mp3,3Lfys48Lfx96Lrx96Lfx256Fc111] from request [1,36,0,1 Ct3,3,16 Mp3,3 Lfys48 Lfx96 Lrx96 Lfx256 O1c112]
Training parameters:
  Debug interval = 0, weights = 0.1, learning rate = 0.002, momentum=0.5
null char=110
Loaded 1/1 pages (1-1) of document data/train/14_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/22_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/8_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/24_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/33_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/2_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/17_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/20_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/12_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/33_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/24_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/13_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/21_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/11_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/31_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/16_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/6_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/25_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/5_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/26_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/18_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/7_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/9_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/30_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/32_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/29_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/28_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/1_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/15_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/27_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/19_0.lstmf
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!

I have added a sample for the training data
train.zip

Your box file has WORDS.
SPIN 234 682 410 689 0
MASTER 234 682 410 689 0
TOYS 234 682 410 689 0
FAR 234 682 410 689 0
EAST 234 682 410 689 0
LTD 234 682 410 689 0
RM 253 670 391 677 0
1113, 253 670 391 677 0
It should be in the following format.
c 2086 4566 2110 4593 0
a 2114 4565 2139 4593 0
n 2143 4565 2167 4592 0
2167 4554 2188 4601 0
| 2188 4554 2193 4601 0
2193 4554 2215 4601 0
m 2215 4565 2254 4592 0
a 2258 4565 2283 4592 0
y 2284 4555 2311 4591 0
2311 4555 2326 4592 0
s 2326 4564 2351 4592 0
u 2356 4564 2380 4590 0
c 2385 4564 2409 4591 0
h 2414 4564 2438 4600 0
2438 4599 2439 4600 0
On Fri, Aug 17, 2018 at 4:36 PM, Ahmed Osama notifications@github.com
wrote:

Environment

Tesseract Version: 4.0.0-beta.1-306-g45b11cd
Commit Number: 4.0.0-beta.1-306-g45b11cd
Platform: Ubuntu x86_64 GNU/Linux

Current Behavior:
Infinite loop of Compute CTC targets failed
I have a box file and tif images and i run the below script for training.
ALL_BOXES = data/all-boxes
ALL_LSTMF = data/all-lstmf
Create unicharset
unicharset: data/unicharset
Create lists of lstmf filenames for training and eval
lists: $(ALL_LSTMF) data/list.train data/list.eval
data/list.train: $(ALL_LSTMF)
total=cat $(ALL_LSTMF) | wc -l
no=echo "$$total * $(RATIO_TRAIN) / 1" | bc;
head -n "$$no" $(ALL_LSTMF) > "$@"
data/list.eval: $(ALL_LSTMF)
total=cat $(ALL_LSTMF) | wc -l
no=echo "($$total - $$total * $(RATIO_TRAIN)) / 1" | bc;
tail -n "+$$no" $(ALL_LSTMF) > "$@"
Start training
training: data/$(MODEL_NAME).traineddata
data/unicharset: $(ALL_BOXES)
combine_tessdata -u $(TESSDATA)/eng.traineddata  $(TESSDATA)/$(MODEL_NAME).
unicharset_extractor --output_unicharset "$(TRAIN)/my.unicharset" --norm_mode $(NORM_MODE) "$(ALL_BOXES)"
merge_unicharsets $(TESSDATA)/$(MODEL_NAME).lstm-unicharset $(TRAIN)/my.unicharset  "$@"
$(ALL_BOXES): $(sort $(patsubst %.tif,%.box,$(wildcard $(TRAIN)/.tif)))
find $(TRAIN) -name '.box' -exec cat {} ; > "$@"
#$(TRAIN)/%.box: $(TRAIN)/%.tif $(TRAIN)/%.gt.txt
#python3 generate_line_box.py -i "$(TRAIN)/$.tif" -t "$(TRAIN)/$.gt.txt" > "$@"
$(ALL_LSTMF): $(sort $(patsubst %.tif,%.lstmf,$(wildcard $(TRAIN)/.tif)))
find $(TRAIN) -name '.lstmf' -exec echo {} ; | sort -R -o "$@"
$(TRAIN)/%.lstmf: $(TRAIN)/%.box
tesseract $(TRAIN)/$.tif $(TRAIN)/$ --psm $(PSM) lstm.train
Build the proto model
proto-model: data/$(MODEL_NAME)/$(MODEL_NAME).traineddata
data/$(MODEL_NAME)/$(MODEL_NAME).traineddata: $(LANGDATA) data/unicharset
combine_lang_model
--input_unicharset data/unicharset
--script_dir $(LANGDATA)
--output_dir data/
--lang $(MODEL_NAME)
data/checkpoints/$(MODEL_NAME)_checkpoint: unicharset lists proto-model
mkdir -p data/checkpoints
lstmtraining
--traineddata data/$(MODEL_NAME)/$(MODEL_NAME).traineddata
--net_spec "[1,36,0,1 Ct3,3,16 Mp3,3 Lfys48 Lfx96 Lrx96 Lfx256 O1chead -n1 data/unicharset]"
--model_output data/checkpoints/$(MODEL_NAME)
--learning_rate 20e-4
--train_listfile data/list.train
--eval_listfile data/list.eval
--max_iterations 10000
Here is the Logs including the error .
find data/train -name '.box' -exec cat {} ; > "data/all-boxes"
#python3 generate_line_box.py -i "data/train/.tif" -t "data/train/.gt.txt" > "data/all-boxes"
combine_tessdata -u /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/eng.traineddata  /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.
Version string:4.00.00alpha:eng:synth20170629:[1,36,0,1Ct3,3,16Mp3,3Lfys64Lfx96Lrx96Lfx512O1c1]
1:unicharset:size=7477, offset=192
2:unicharambigs:size=1047, offset=7669
3:inttemp:size=976552, offset=8716
4:pffmtable:size=844, offset=985268
5:normproto:size=13408, offset=986112
6:punc-dawg:size=4322, offset=999520
7:word-dawg:size=1082890, offset=1003842
8:number-dawg:size=6426, offset=2086732
9:freq-dawg:size=1410, offset=2093158
13:shapetable:size=63346, offset=2094568
14:bigram-dawg:size=16109842, offset=2157914
17:lstm:size=1487588, offset=18267756
18:lstm-punc-dawg:size=4322, offset=19755344
19:lstm-word-dawg:size=3694794, offset=19759666
20:lstm-number-dawg:size=4738, offset=23454460
21:lstm-unicharset:size=6360, offset=23459198
22:lstm-recoder:size=1012, offset=23465558
23:version:size=80, offset=23466570
Extracting tessdata components from /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/eng.traineddata
Wrote /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.unicharset
Wrote /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.unicharambigs
Wrote /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.inttemp
Wrote /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.pffmtable
Wrote /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.normproto
Wrote /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.punc-dawg
Wrote /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.word-dawg
Wrote /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.number-dawg
Wrote /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.freq-dawg
Wrote /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.shapetable
Wrote /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.bigram-dawg
Wrote /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.lstm
Wrote /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.lstm-punc-dawg
Wrote /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.lstm-word-dawg
Wrote /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.lstm-number-dawg
Wrote /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.lstm-unicharset
Wrote /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.lstm-recoder
Wrote /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.version
unicharset_extractor --output_unicharset "data/train/my.unicharset" --norm_mode 2 "data/all-boxes"
Extracting unicharset from box file data/all-boxes
Other case f of F is not in unicharset
Other case d of D is not in unicharset
Other case h of H is not in unicharset
Other case z of Z is not in unicharset
Other case k of K is not in unicharset
Other case w of W is not in unicharset
Other case v of V is not in unicharset
Other case j of J is not in unicharset
Other case b of B is not in unicharset
Other case q of Q is not in unicharset
Wrote unicharset file data/train/my.unicharset
merge_unicharsets /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.lstm-unicharset data/train/my.unicharset  "data/unicharset"
Loaded unicharset of size 112 from file /mnt/Training_Tesseract/ocrd-train/usr/share/tessdata/Invoice.lstm-unicharset
Loaded unicharset of size 62 from file data/train/my.unicharset
Wrote unicharset file data/unicharset.
tesseract data/train/10_0.tif data/train/10_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/11_0.tif data/train/11_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/12_0.tif data/train/12_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/13_0.tif data/train/13_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/14_0.tif data/train/14_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/15_0.tif data/train/15_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/16_0.tif data/train/16_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/17_0.tif data/train/17_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/18_0.tif data/train/18_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/19_0.tif data/train/19_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/1_0.tif data/train/1_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/20_0.tif data/train/20_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/21_0.tif data/train/21_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/22_0.tif data/train/22_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/23_0.tif data/train/23_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/24_0.tif data/train/24_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/25_0.tif data/train/25_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/26_0.tif data/train/26_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/27_0.tif data/train/27_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/28_0.tif data/train/28_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/29_0.tif data/train/29_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/2_0.tif data/train/2_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/30_0.tif data/train/30_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/31_0.tif data/train/31_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/32_0.tif data/train/32_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/33_0.tif data/train/33_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/3_0.tif data/train/3_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/4_0.tif data/train/4_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/5_0.tif data/train/5_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/6_0.tif data/train/6_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/7_0.tif data/train/7_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/8_0.tif data/train/8_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/9_0.tif data/train/9_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
find data/train -name '.lstmf' -exec echo {} ; | sort -R -o "data/all-lstmf"
total=cat data/all-lstmf | wc -l
no=echo "$total * 0.90 / 1" | bc;
head -n "$no" data/all-lstmf > "data/list.train"
total=cat data/all-lstmf | wc -l
no=echo "($total - $total * 0.90) / 1" | bc;
tail -n "+$no" data/all-lstmf > "data/list.eval"
combine_lang_model
--input_unicharset data/unicharset
--script_dir /mnt/Training_Tesseract/ocrd-train/langdata-master
--output_dir data/
--lang Invoice
Loaded unicharset of size 112 from file data/unicharset
Setting unichar properties
Other case É of é is not in unicharset
Setting script properties
Config file is optional, continuing...
Failed to read data from: /mnt/Training_Tesseract/ocrd-train/langdata-master/Invoice/Invoice.config
Null char=2
mkdir -p data/checkpoints
lstmtraining
--traineddata data/Invoice/Invoice.traineddata
--net_spec "[1,36,0,1 Ct3,3,16 Mp3,3 Lfys48 Lfx96 Lrx96 Lfx256 O1chead -n1 data/unicharset]"
--model_output data/checkpoints/Invoice
--learning_rate 20e-4
--train_listfile data/list.train
--eval_listfile data/list.eval
--max_iterations 10000
Warning: given outputs 112 not equal to unicharset of 111.
Num outputs,weights in Series:
1,36,0,1:1, 0
Num outputs,weights in Series:
C3,3:9, 0
Ft16:16, 160
Total weights = 160
[C3,3Ft16]:16, 160
Mp3,3:16, 0
Lfys48:48, 12480
Lfx96:96, 55680
Lrx96:96, 74112
Lfx256:256, 361472
Fc111:111, 28527
Total weights = 532431
Built network:[1,36,0,1[C3,3Ft16]Mp3,3Lfys48Lfx96Lrx96Lfx256Fc111] from request [1,36,0,1 Ct3,3,16 Mp3,3 Lfys48 Lfx96 Lrx96 Lfx256 O1c112]
Training parameters:
Debug interval = 0, weights = 0.1, learning rate = 0.002, momentum=0.5
null char=110
Loaded 1/1 pages (1-1) of document data/train/14_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/22_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/8_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/24_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/33_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/2_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/17_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/20_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/12_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/33_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/24_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/13_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/21_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/11_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/31_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/16_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/6_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/25_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/5_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/26_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/18_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/7_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/9_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/30_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/32_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/29_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/28_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/1_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/15_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/27_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/19_0.lstmf
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
I have added a sample for the training data
train.zip
https://github.com/tesseract-ocr/tesseract/files/2296951/train.zip
Expected Behavior:
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/1848, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AE2_oxLPelhT1h0rHMFRZXYJqDg8H5txks5uRqOrgaJpZM4WBYf7
.

--

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

Failed also.
I have distributed the characters in and keep the box coordinates the same for every line as

S 234 682 410 689 0
P 234 682 410 689 0
I 234 682 410 689 0
N 234 682 410 689 0
  234 682 410 689 0
M 234 682 410 689 0
A 234 682 410 689 0
S 234 682 410 689 0
T 234 682 410 689 0
E 234 682 410 689 0
R 234 682 410 689 0
  234 682 410 689 0
T 234 682 410 689 0
O 234 682 410 689 0
Y 234 682 410 689 0
S 234 682 410 689 0
  234 682 410 689 0
F 234 682 410 689 0
A 234 682 410 689 0
R 234 682 410 689 0
  234 682 410 689 0
E 234 682 410 689 0
A 234 682 410 689 0
S 234 682 410 689 0
T 234 682 410 689 0
  234 682 410 689 0

Is this valid  ?
train.zip

I made tesseract generate the box files then trained it with generated files and I have the same error

$(TRAIN)/%.lstmf: $(TRAIN)/%.box
	tesseract $(TRAIN)/$*.tif $(TRAIN)/$* --psm $(PSM) lstm.train

# Build the proto model
proto-model: data/$(MODEL_NAME)/$(MODEL_NAME).traineddata

data/$(MODEL_NAME)/$(MODEL_NAME).traineddata: $(LANGDATA) data/unicharset
	combine_lang_model \
	  --input_unicharset data/unicharset \
	  --script_dir $(LANGDATA) \
	  --output_dir data/ \
	  --lang $(MODEL_NAME)

data/checkpoints/$(MODEL_NAME)_checkpoint: unicharset lists proto-model
	mkdir -p data/checkpoints
	lstmtraining \
	  --traineddata data/$(MODEL_NAME)/$(MODEL_NAME).traineddata \
	  --net_spec "[1,36,0,1 Ct3,3,16 Mp3,3 Lfys48 Lfx96 Lrx96 Lfx256 O1c`head -n1 data/unicharset`]" \
	  --model_output data/checkpoints/$(MODEL_NAME) \
	  --learning_rate 20e-4 \
	  --train_listfile data/list.train \
	  --eval_listfile data/list.eval \
	  --max_iterations 10000

tesseract data/train/10_0.tif data/train/10_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/11_0.tif data/train/11_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/12_0.tif data/train/12_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/13_0.tif data/train/13_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/14_0.tif data/train/14_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/15_0.tif data/train/15_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/16_0.tif data/train/16_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/17_0.tif data/train/17_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/18_0.tif data/train/18_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/19_0.tif data/train/19_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/1_0.tif data/train/1_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/20_0.tif data/train/20_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/21_0.tif data/train/21_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/22_0.tif data/train/22_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/23_0.tif data/train/23_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/24_0.tif data/train/24_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/25_0.tif data/train/25_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/26_0.tif data/train/26_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/27_0.tif data/train/27_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/28_0.tif data/train/28_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/29_0.tif data/train/29_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/2_0.tif data/train/2_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/30_0.tif data/train/30_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/31_0.tif data/train/31_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/32_0.tif data/train/32_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/33_0.tif data/train/33_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/34_0.tif data/train/34_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/35_0.tif data/train/35_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/36_0.tif data/train/36_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/37_0.tif data/train/37_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/38_0.tif data/train/38_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/39_0.tif data/train/39_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/3_0.tif data/train/3_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/40_0.tif data/train/40_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/44_0.tif data/train/44_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/4_0.tif data/train/4_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/5_0.tif data/train/5_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/6_0.tif data/train/6_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/7_0.tif data/train/7_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/8_0.tif data/train/8_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/9_0.tif data/train/9_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
find data/train -name '*.lstmf' -exec echo {} \; | sort -R -o "data/all-lstmf"
total=`cat data/all-lstmf | wc -l` \
   no=`echo "$total * 0.90 / 1" | bc`; \
   head -n "$no" data/all-lstmf > "data/list.train"
total=`cat data/all-lstmf | wc -l` \
   no=`echo "($total - $total * 0.90) / 1" | bc`; \
   tail -n "+$no" data/all-lstmf > "data/list.eval"
combine_lang_model \
  --input_unicharset data/unicharset \
  --script_dir /mnt/e/freelance_projects/Training_Tesseract/ocrd-train/langdata-master \
  --output_dir data/ \
  --lang Invoice
Loaded unicharset of size 112 from file data/unicharset
Setting unichar properties
Other case É of é is not in unicharset
Setting script properties
Config file is optional, continuing...
Failed to read data from: /mnt/e/freelance_projects/Training_Tesseract/ocrd-train/langdata-master/Invoice/Invoice.config
Null char=2
mkdir -p data/checkpoints
lstmtraining \
  --traineddata data/Invoice/Invoice.traineddata \
  --net_spec "[1,36,0,1 Ct3,3,16 Mp3,3 Lfys48 Lfx96 Lrx96 Lfx256 O1c`head -n1 data/unicharset`]" \
  --model_output data/checkpoints/Invoice \
  --learning_rate 20e-4 \
  --train_listfile data/list.train \
  --eval_listfile data/list.eval \
  --max_iterations 10000
Warning: given outputs 112 not equal to unicharset of 111.
Num outputs,weights in Series:
  1,36,0,1:1, 0
Num outputs,weights in Series:
  C3,3:9, 0
  Ft16:16, 160
Total weights = 160
  [C3,3Ft16]:16, 160
  Mp3,3:16, 0
  Lfys48:48, 12480
  Lfx96:96, 55680
  Lrx96:96, 74112
  Lfx256:256, 361472
  Fc111:111, 28527
Total weights = 532431
Built network:[1,36,0,1[C3,3Ft16]Mp3,3Lfys48Lfx96Lrx96Lfx256Fc111] from request [1,36,0,1 Ct3,3,16 Mp3,3 Lfys48 Lfx96 Lrx96 Lfx256 O1c112]
Training parameters:
  Debug interval = 0, weights = 0.1, learning rate = 0.002, momentum=0.5
null char=110
Loaded 1/1 pages (1-1) of document data/train/26_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/20_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/37_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/25_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/4_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/34_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/36_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/31_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/5_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/25_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/37_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/30_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/35_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/17_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/40_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/32_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/7_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/27_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/33_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/13_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/1_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/12_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/8_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/39_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/16_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/21_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/28_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/15_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/29_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/9_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/3_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/14_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/38_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/23_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/2_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/19_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/6_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/44_0.lstmf
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!

I made tesseract generate the box files then trained it with generated files and I have the same error

$(TRAIN)/%.lstmf: $(TRAIN)/%.box
	tesseract $(TRAIN)/$*.tif $(TRAIN)/$* --psm $(PSM) lstm.train

# Build the proto model
proto-model: data/$(MODEL_NAME)/$(MODEL_NAME).traineddata

data/$(MODEL_NAME)/$(MODEL_NAME).traineddata: $(LANGDATA) data/unicharset
	combine_lang_model \
	  --input_unicharset data/unicharset \
	  --script_dir $(LANGDATA) \
	  --output_dir data/ \
	  --lang $(MODEL_NAME)

data/checkpoints/$(MODEL_NAME)_checkpoint: unicharset lists proto-model
	mkdir -p data/checkpoints
	lstmtraining \
	  --traineddata data/$(MODEL_NAME)/$(MODEL_NAME).traineddata \
	  --net_spec "[1,36,0,1 Ct3,3,16 Mp3,3 Lfys48 Lfx96 Lrx96 Lfx256 O1c`head -n1 data/unicharset`]" \
	  --model_output data/checkpoints/$(MODEL_NAME) \
	  --learning_rate 20e-4 \
	  --train_listfile data/list.train \
	  --eval_listfile data/list.eval \
	  --max_iterations 10000

tesseract data/train/10_0.tif data/train/10_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/11_0.tif data/train/11_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/12_0.tif data/train/12_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/13_0.tif data/train/13_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/14_0.tif data/train/14_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/15_0.tif data/train/15_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/16_0.tif data/train/16_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/17_0.tif data/train/17_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/18_0.tif data/train/18_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/19_0.tif data/train/19_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/1_0.tif data/train/1_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/20_0.tif data/train/20_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/21_0.tif data/train/21_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/22_0.tif data/train/22_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/23_0.tif data/train/23_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/24_0.tif data/train/24_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/25_0.tif data/train/25_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/26_0.tif data/train/26_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/27_0.tif data/train/27_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/28_0.tif data/train/28_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/29_0.tif data/train/29_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/2_0.tif data/train/2_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/30_0.tif data/train/30_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/31_0.tif data/train/31_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/32_0.tif data/train/32_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/33_0.tif data/train/33_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/34_0.tif data/train/34_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/35_0.tif data/train/35_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/36_0.tif data/train/36_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/37_0.tif data/train/37_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/38_0.tif data/train/38_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/39_0.tif data/train/39_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/3_0.tif data/train/3_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/40_0.tif data/train/40_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/44_0.tif data/train/44_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/4_0.tif data/train/4_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/5_0.tif data/train/5_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/6_0.tif data/train/6_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/7_0.tif data/train/7_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/8_0.tif data/train/8_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
tesseract data/train/9_0.tif data/train/9_0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Page 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
find data/train -name '*.lstmf' -exec echo {} \; | sort -R -o "data/all-lstmf"
total=`cat data/all-lstmf | wc -l` \
   no=`echo "$total * 0.90 / 1" | bc`; \
   head -n "$no" data/all-lstmf > "data/list.train"
total=`cat data/all-lstmf | wc -l` \
   no=`echo "($total - $total * 0.90) / 1" | bc`; \
   tail -n "+$no" data/all-lstmf > "data/list.eval"
combine_lang_model \
  --input_unicharset data/unicharset \
  --script_dir /mnt/e/freelance_projects/Training_Tesseract/ocrd-train/langdata-master \
  --output_dir data/ \
  --lang Invoice
Loaded unicharset of size 112 from file data/unicharset
Setting unichar properties
Other case É of é is not in unicharset
Setting script properties
Config file is optional, continuing...
Failed to read data from: /mnt/e/freelance_projects/Training_Tesseract/ocrd-train/langdata-master/Invoice/Invoice.config
Null char=2
mkdir -p data/checkpoints
lstmtraining \
  --traineddata data/Invoice/Invoice.traineddata \
  --net_spec "[1,36,0,1 Ct3,3,16 Mp3,3 Lfys48 Lfx96 Lrx96 Lfx256 O1c`head -n1 data/unicharset`]" \
  --model_output data/checkpoints/Invoice \
  --learning_rate 20e-4 \
  --train_listfile data/list.train \
  --eval_listfile data/list.eval \
  --max_iterations 10000
Warning: given outputs 112 not equal to unicharset of 111.
Num outputs,weights in Series:
  1,36,0,1:1, 0
Num outputs,weights in Series:
  C3,3:9, 0
  Ft16:16, 160
Total weights = 160
  [C3,3Ft16]:16, 160
  Mp3,3:16, 0
  Lfys48:48, 12480
  Lfx96:96, 55680
  Lrx96:96, 74112
  Lfx256:256, 361472
  Fc111:111, 28527
Total weights = 532431
Built network:[1,36,0,1[C3,3Ft16]Mp3,3Lfys48Lfx96Lrx96Lfx256Fc111] from request [1,36,0,1 Ct3,3,16 Mp3,3 Lfys48 Lfx96 Lrx96 Lfx256 O1c112]
Training parameters:
  Debug interval = 0, weights = 0.1, learning rate = 0.002, momentum=0.5
null char=110
Loaded 1/1 pages (1-1) of document data/train/26_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/20_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/37_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/25_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/4_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/34_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/36_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/31_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/5_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/25_0.lstmf
Loaded 1/1 pages (1-1) of document data/train/37_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/30_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/35_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/17_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/40_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/32_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/7_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/27_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/33_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/13_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/1_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/12_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/8_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/39_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/16_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/21_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/28_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/15_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/29_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/9_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/3_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/14_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/38_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/23_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/2_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/19_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/6_0.lstmf
Compute CTC targets failed!
Loaded 1/1 pages (1-1) of document data/train/44_0.lstmf
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!

Do you have tabs to mark end of line in the box file?

Hi @Shreeshrii
I think this was the issue . after adding \t to mark the end of the line . the training started  but I still see
Compute CTC targets failed!
At iteration 1467/1500/1528, Mean rms=4.846%, delta=32.769%, char train=94.339%, word train=96.603%, skip ratio=1.7%,  New best char error = 94.339 wrote checkpoint.
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
At iteration 1567/1600/1632, Mean rms=4.796%, delta=32.109%, char train=94.882%, word train=96.103%, skip ratio=1.9%,  New worst char error = 94.882 wrote checkpoint.

At iteration 1667/1700/1732, Mean rms=4.776%, delta=31.759%, char train=95.781%, word train=96.003%, skip ratio=1.7%,  New worst char error = 95.781 wrote checkpoint.

Compute CTC targets failed!
At iteration 1767/1800/1833, Mean rms=4.761%, delta=31.369%, char train=96.509%, word train=95.746%, skip ratio=1.8%,  New worst char error = 96.509 wrote checkpoint.

Compute CTC targets failed!
At iteration 1867/1900/1934, Mean rms=4.738%, delta=31%, char train=96.528%, word train=95.496%, skip ratio=1.7%,  New worst char error = 96.528 wrote checkpoint.

Compute CTC targets failed!

The format of box file now
S 236 683 408 694 0
P 236 683 408 694 0
I 236 683 408 694 0
N 236 683 408 694 0
  236 683 408 694 0
M 236 683 408 694 0
A 236 683 408 694 0
S 236 683 408 694 0
T 236 683 408 694 0
E 236 683 408 694 0
R 236 683 408 694 0
  236 683 408 694 0
T 236 683 408 694 0
O 236 683 408 694 0
Y 236 683 408 694 0
S 236 683 408 694 0
  236 683 408 694 0
F 236 683 408 694 0
A 236 683 408 694 0
R 236 683 408 694 0
  236 683 408 694 0
E 236 683 408 694 0
A 236 683 408 694 0
S 236 683 408 694 0
T 236 683 408 694 0
  236 683 408 694 0
L 236 683 408 694 0
T 236 683 408 694 0
D 236 683 408 694 0
	 408 694 408 695 0
R 255 673 389 682 0
M 255 673 389 682 0
  255 673 389 682 0
1 255 673 389 682 0
1 255 673 389 682 0
1 255 673 389 682 0
3 255 673 389 682 0
, 255 673 389 682 0
  255 673 389 682 0
C 255 673 389 682 0
H 255 673 389 682 0
I 255 673 389 682 0
N 255 673 389 682 0
A 255 673 389 682 0
C 255 673 389 682 0
H 255 673 389 682 0
E 255 673 389 682 0
M 255 673 389 682 0
  255 673 389 682 0
G 255 673 389 682 0
O 255 673 389 682 0
L 255 673 389 682 0
D 255 673 389 682 0
E 255 673 389 682 0
N 255 673 389 682 0
  255 673 389 682 0
P 255 673 389 682 0
L 255 673 389 682 0
A 255 673 389 682 0
Z 255 673 389 682 0
A 255 673 389 682 0
, 255 673 389 682 0
	 389 682 389 683 0

I think something is missing , how i can validate this format if possible

how i can validate this format if possible

As far as I know, there is no separator validator for box files.
You seem to want to improve recognition of invoices that are in English. I will suggest that you try to finetune the existing eng.traineddata rather than train from scratch.
Please see https://github.com/tesseract-ocr/tesseract/wiki/TrainingTesseract-4.00#fine-tuning-for-impact for instructions.
You can use the lstmf files that you have generated and finetune should need only 300-400 iterations.

@Shreeshrii
I have tried to finetune an existing eng.traineddata but I got an error Segmentation fault (core dumped)
I think I am doing something wrong.
First I do unpacking of an existing eng.traineddata
data/$(MODEL_NAME)/$(MODEL_NAME).traineddata: $(LANGDATA) data/unicharset
	combine_tessdata -e $(TESSDATA_PREFIX)/eng.traineddata \
		data/eng.lstm

Then i do finetuning using
lstmtraining --model_output data/$(MODEL_NAME)  \
		--continue_from data/eng.lstm \
		--traineddata $(TESSDATA_PREFIX)/eng.traineddata \
		--perfect_sample_delay 0\
		--debug_interval 0 \
		--max_iterations 10000 \
		--target_error_rate 0.01 \
		--train_listfile data/list.train

I get this error
lstmtraining --model_output data/Invoice  \
        --continue_from data/eng.lstm \
        --traineddata usr/share/tessdata/eng.traineddata \
        --perfect_sample_delay 0\
        --debug_interval 0 \
        --max_iterations 10000 \
        --target_error_rate 0.01 \
        --train_listfile data/list.train
Loaded file data/eng.lstm, unpacking...
Warning: LSTMTrainer deserialized an LSTMRecognizer!
Continuing from data/eng.lstm
Loaded 19/19 pages (1-19) of document data/train/91485493_0.lstmf
Loaded 19/19 pages (1-19) of document data/train/91478875_0.lstmf
Loaded 19/19 pages (1-19) of document data/train/91486264_0.lstmf
Loaded 20/20 pages (1-20) of document data/train/91484574_0.lstmf
Loaded 19/19 pages (1-19) of document data/train/91484577_0.lstmf
Loaded 19/19 pages (1-19) of document data/train/91484569_0.lstmf
Loaded 19/19 pages (1-19) of document data/train/91484572_0.lstmf
Loaded 19/19 pages (1-19) of document data/train/91486272_0.lstmf
Loaded 24/24 pages (1-24) of document data/train/91486291_0.lstmf
!int_mode_:Error:Assert failed:in file weightmatrix.cpp, line 244
Makefile:133: recipe for target 'data/checkpoints/Invoice_checkpoint' failed
make: *** [data/checkpoints/Invoice_checkpoint] Segmentation fault (core dumped)

You need to use eng.traineddata from tessdata_best repo for training
purposes.
If your tessdata_prefix is pointing to either tessdata_fast or tessdata,
training will not work.
On Mon 20 Aug, 2018, 3:58 AM Ahmed Osama, notifications@github.com wrote:

@Shreeshrii https://github.com/Shreeshrii
I have tried to finetune an existing eng.traineddata but I got an error Segmentation
fault (core dumped)
I think I am doing something wrong.
First I do unpacking of an existing eng.traineddata
data/$(MODEL_NAME)/$(MODEL_NAME).traineddata: $(LANGDATA) data/unicharset
combine_tessdata -e $(TESSDATA_PREFIX)/eng.traineddata
data/eng.lstm
Then i do finetuning using
lstmtraining --model_output data/$(MODEL_NAME)
--continue_from data/eng.lstm
--traineddata $(TESSDATA_PREFIX)/eng.traineddata
--perfect_sample_delay 0
--debug_interval 0
--max_iterations 10000
--target_error_rate 0.01
--train_listfile data/list.train
I get this error
lstmtraining --model_output data/Invoice
--continue_from data/eng.lstm
--traineddata usr/share/tessdata/eng.traineddata
--perfect_sample_delay 0
--debug_interval 0
--max_iterations 10000
--target_error_rate 0.01
--train_listfile data/list.train
Loaded file data/eng.lstm, unpacking...
Warning: LSTMTrainer deserialized an LSTMRecognizer!
Continuing from data/eng.lstm
Loaded 19/19 pages (1-19) of document data/train/91485493_0.lstmf
Loaded 19/19 pages (1-19) of document data/train/91478875_0.lstmf
Loaded 19/19 pages (1-19) of document data/train/91486264_0.lstmf
Loaded 20/20 pages (1-20) of document data/train/91484574_0.lstmf
Loaded 19/19 pages (1-19) of document data/train/91484577_0.lstmf
Loaded 19/19 pages (1-19) of document data/train/91484569_0.lstmf
Loaded 19/19 pages (1-19) of document data/train/91484572_0.lstmf
Loaded 19/19 pages (1-19) of document data/train/91486272_0.lstmf
Loaded 24/24 pages (1-24) of document data/train/91486291_0.lstmf
!int_mode_:Error:Assert failed:in file weightmatrix.cpp, line 244
Makefile:133: recipe for target 'data/checkpoints/Invoice_checkpoint' failed
make: *** [data/checkpoints/Invoice_checkpoint] Segmentation fault (core dumped)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/1848#issuecomment-414160488,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AE2_o3mAMn531Hfo6T93_I7w1eCfTiA_ks5uSeaZgaJpZM4WBYf7
.

the error rate is very high
I have used to do replacing top layer  when I make max_iterations 300 or 400 error is 100 .
I also see some CTC Failure again . is this related to the training data and also small image to scale .
what do you suggest here @Shreeshrii  ?
lstmtraining --model_output data/checkpoints/$(MODEL_NAME)  \
		--continue_from data/eng.lstm \
		--traineddata $(TESSDATA_PREFIX)/eng.traineddata \
		--max_iterations 10000 \
		--append_index 5 --net_spec '[Lfx256 O1c111]'\
		--debug_interval -1 \
		--target_error_rate 0.01 \
		--train_listfile data/list.train\
		--learning_rate 20e-4 \
		--eval_listfile data/list.eval

2 Percent improvement time=1100, best error was 97.006 @ 100
At iteration 1200/1200/1208, Mean rms=5.202%, delta=36.778%, char train=94.985%, word train=98.452%, skip ratio=0.8%,  New best char error = 94.985 wrote checkpoint.

Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
At iteration 1300/1300/1311, Mean rms=5.21%, delta=37.214%, char train=95.098%, word train=98.424%, skip ratio=0.9%,  New worst char error = 95.098 wrote checkpoint.

Compute CTC targets failed!
At iteration 1400/1400/1412, Mean rms=5.21%, delta=37.31%, char train=95.332%, word train=98.493%, skip ratio=0.9%,  New worst char error = 95.332 wrote checkpoint.

Image too small to scale!! (1x36 vs min width of 3)
Line cannot be recognized!!
Image not trainable
Compute CTC targets failed!
At iteration 1500/1500/1514, Mean rms=5.218%, delta=37.724%, char train=95.496%, word train=98.295%, skip ratio=1.1%,  New worst char error = 95.496 wrote checkpoint.

Compute CTC targets failed!
2 Percent improvement time=1499, best error was 97.006 @ 100
At iteration 1599/1600/1615, Mean rms=5.203%, delta=37.647%, char train=94.883%, word train=98.145%, skip ratio=1.2%,  New best char error = 94.883 wrote checkpoint.

At iteration 1698/1700/1715, Mean rms=5.221%, delta=38.039%, char train=95.268%, word train=98.239%, skip ratio=1.1%,  New worst char error = 95.268 wrote checkpoint.

Image too small to scale!! (3x36 vs min width of 3)
Line cannot be recognized!!
Image not trainable
2 Percent improvement time=1696, best error was 97.006 @ 100
At iteration 1796/1800/1816, Mean rms=5.219%, delta=38.371%, char train=94.867%, word train=98.062%, skip ratio=1%,  New best char error = 94.867 wrote checkpoint.

At iteration 1896/1900/1916, Mean rms=5.234%, delta=38.579%, char train=95.056%, word train=98.163%, skip ratio=1%,  New worst char error = 95.056 wrote checkpoint.

Image too small to scale!! (2x36 vs min width of 3)
Line cannot be recognized!!
Image not trainable
At iteration 1996/2000/2017, Mean rms=5.226%, delta=38.566%, char train=95.075%, word train=98.126%, skip ratio=0.9%,  New worst char error = 95.075 wrote checkpoint.

Compute CTC targets failed!
At iteration 2096/2100/2118, Mean rms=5.237%, delta=38.903%, char train=95.703%, word train=98.322%, skip ratio=1%,  New worst char error = 95.703 wrote checkpoint.

Compute CTC targets failed!
At iteration 2196/2200/2219, Mean rms=5.252%, delta=39.286%, char train=96.011%, word train=98.244%, skip ratio=1.1%,  New worst char error = 96.011 wrote checkpoint.

At iteration 2295/2300/2319, Mean rms=5.239%, delta=39.135%, char train=95.976%, word train=98.084%, skip ratio=0.8%,  New worst char error = 95.976 wrote checkpoint.

Compute CTC targets failed!
At iteration 2395/2400/2420, Mean rms=5.229%, delta=39.249%, char train=95.767%, word train=97.69%, skip ratio=0.8%,  New worst char error = 95.767 wrote checkpoint.

Image too small to scale!! (2x36 vs min width of 3)
Line cannot be recognized!!
Image not trainable
At iteration 2495/2500/2521, Mean rms=5.228%, delta=39.251%, char train=95.657%, word train=97.785%, skip ratio=0.7%,  New worst char error = 95.657 wrote checkpoint.

Compute CTC targets failed!
At iteration 2588/2600/2622, Mean rms=5.206%, delta=39.257%, char train=95.045%, word train=97.092%, skip ratio=0.7%,  New worst char error = 95.045 wrote checkpoint.

Compute CTC targets failed!
2 Percent improvement time=2385, best error was 96.739 @ 300
At iteration 2685/2700/2723, Mean rms=5.187%, delta=39.292%, char train=94.583%, word train=96.6%, skip ratio=0.8%,  New best char error = 94.583 wrote checkpoint.

Compute CTC targets failed!
At iteration 2782/2800/2824, Mean rms=5.168%, delta=38.824%, char train=95.118%, word train=96.362%, skip ratio=0.8%,  New worst char error = 95.118 wrote checkpoint.

Compute CTC targets failed!
Image too small to scale!! (1x36 vs min width of 3)
Line cannot be recognized!!
Image not trainable
At iteration 2881/2900/2926, Mean rms=5.145%, delta=38.571%, char train=95.304%, word train=96.149%, skip ratio=1%,  New worst char error = 95.304 wrote checkpoint.

Compute CTC targets failed!
Compute CTC targets failed!
At iteration 2978/3000/3028, Mean rms=5.118%, delta=38.166%, char train=94.862%, word train=95.778%, skip ratio=1.1%,  New worst char error = 94.862 wrote checkpoint.

Image too small to scale!! (1x36 vs min width of 3)
Line cannot be recognized!!
Image not trainable
Compute CTC targets failed!
2 Percent improvement time=2774, best error was 96.739 @ 300
At iteration 3074/3100/3130, Mean rms=5.086%, delta=37.933%, char train=94.525%, word train=94.982%, skip ratio=1.2%,  New best char error = 94.525 wrote checkpoint.

Compute CTC targets failed!
At iteration 3173/3200/3231, Mean rms=5.078%, delta=37.812%, char train=94.816%, word train=94.747%, skip ratio=1.2%,  New worst char error = 94.816 wrote checkpoint.

At iteration 3270/3300/3331, Mean rms=5.046%, delta=37.361%, char train=94.709%, word train=94.53%, skip ratio=1.2%,  New worst char error = 94.709 wrote checkpoint.

Compute CTC targets failed!
Compute CTC targets failed!
2 Percent improvement time=2966, best error was 95.943 @ 400
At iteration 3366/3400/3433, Mean rms=5.007%, delta=36.782%, char train=93.925%, word train=94.093%, skip ratio=1.3%,  New best char error = 93.925 wrote checkpoint.

2 Percent improvement time=2359, best error was 95.621 @ 1100
At iteration 3459/3500/3533, Mean rms=4.967%, delta=36.269%, char train=93.443%, word train=93.484%, skip ratio=1.2%,  New best char error = 93.443 wrote checkpoint.

Image too small to scale!! (1x36 vs min width of 3)
Line cannot be recognized!!
Image not trainable
Compute CTC targets failed!
2 Percent improvement time=2454, best error was 95.621 @ 1100
At iteration 3554/3600/3635, Mean rms=4.933%, delta=35.63%, char train=93.351%, word train=93.347%, skip ratio=1.3%,  New best char error = 93.351 wrote checkpoint.

Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
2 Percent improvement time=2553, best error was 95.621 @ 1100
At iteration 3653/3700/3739, Mean rms=4.917%, delta=35.034%, char train=93.331%, word train=93.546%, skip ratio=1.6%,  New best char error = 93.331 wrote checkpoint.

Compute CTC targets failed!
2 Percent improvement time=1954, best error was 94.867 @ 1796
At iteration 3750/3800/3840, Mean rms=4.901%, delta=34.75%, char train=92.704%, word train=93.357%, skip ratio=1.6%,  New best char error = 92.704 wrote checkpoint.

Compute CTC targets failed!
2 Percent improvement time=771, best error was 94.525 @ 3074
At iteration 3845/3900/3941, Mean rms=4.864%, delta=33.963%, char train=92.2%, word train=93.045%, skip ratio=1.5%,  New best char error = 92.2 wrote checkpoint.

Compute CTC targets failed!
At iteration 3941/4000/4042, Mean rms=4.84%, delta=33.416%, char train=92.551%, word train=93.044%, skip ratio=1.4%,  New worst char error = 92.551 wrote checkpoint.

Compute CTC targets failed!
At iteration 4037/4100/4143, Mean rms=4.85%, delta=33.448%, char train=92.707%, word train=93.365%, skip ratio=1.3%,  New worst char error = 92.707 wrote checkpoint.

Compute CTC targets failed!
2 Percent improvement time=768, best error was 93.925 @ 3366
At iteration 4134/4200/4244, Mean rms=4.805%, delta=32.783%, char train=91.83%, word train=93.119%, skip ratio=1.3%,  New best char error = 91.83 wrote checkpoint.

Compute CTC targets failed!
2 Percent improvement time=868, best error was 93.925 @ 3366
At iteration 4234/4300/4345, Mean rms=4.821%, delta=32.895%, char train=91.573%, word train=93.036%, skip ratio=1.4%,  New best char error = 91.573 wrote checkpoint.

Compute CTC targets failed!
At iteration 4333/4400/4446, Mean rms=4.836%, delta=33.14%, char train=92.847%, word train=92.934%, skip ratio=1.3%,  New worst char error = 92.847 wrote checkpoint.

Image too small to scale!! (2x36 vs min width of 3)
Line cannot be recognized!!
Image not trainable
Compute CTC targets failed!
At iteration 4430/4500/4548, Mean rms=4.813%, delta=32.771%, char train=92.606%, word train=92.376%, skip ratio=1.5%,  New worst char error = 92.606 wrote checkpoint.

Image too small to scale!! (1x36 vs min width of 3)
Line cannot be recognized!!
Image not trainable
At iteration 4526/4600/4649, Mean rms=4.811%, delta=32.62%, char train=92.737%, word train=92.085%, skip ratio=1.4%,  New worst char error = 92.737 wrote checkpoint.

Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
At iteration 4622/4700/4752, Mean rms=4.785%, delta=32.187%, char train=93.599%, word train=91.53%, skip ratio=1.3%,  New worst char error = 93.599 wrote checkpoint.

At iteration 4721/4800/4852, Mean rms=4.805%, delta=32.395%, char train=94.063%, word train=91.488%, skip ratio=1.2%,  New worst char error = 94.063 wrote checkpoint.

At iteration 4812/4900/4952, Mean rms=4.781%, delta=32.38%, char train=93.769%, word train=90.892%, skip ratio=1.1%,  New worst char error = 93.769 wrote checkpoint.

Compute CTC targets failed!
At iteration 4908/5000/5053, Mean rms=4.797%, delta=32.758%, char train=93.338%, word train=90.798%, skip ratio=1.1%,  New worst char error = 93.338 wrote checkpoint.

At iteration 5006/5100/5153, Mean rms=4.768%, delta=32.146%, char train=92.804%, word train=90.411%, skip ratio=1%,  New worst char error = 92.804 wrote checkpoint.

Compute CTC targets failed!
At iteration 5102/5200/5254, Mean rms=4.768%, delta=32.125%, char train=92.574%, word train=90.324%, skip ratio=1%,  New worst char error = 92.574 wrote checkpoint.

At iteration 5196/5300/5354, Mean rms=4.771%, delta=32.486%, char train=93.081%, word train=90.167%, skip ratio=0.9%,  New worst char error = 93.081 wrote checkpoint.

2 Percent improvement time=1633, best error was 93.331 @ 3653
At iteration 5286/5400/5454, Mean rms=4.729%, delta=31.867%, char train=90.97%, word train=89.912%, skip ratio=0.8%,  New best char error = 90.97 wrote checkpoint.

Compute CTC targets failed!
Image too small to scale!! (1x36 vs min width of 3)
Line cannot be recognized!!
Image not trainable
2 Percent improvement time=1730, best error was 93.331 @ 3653
At iteration 5383/5500/5556, Mean rms=4.736%, delta=31.949%, char train=90.728%, word train=90.137%, skip ratio=0.8%,  New best char error = 90.728 wrote checkpoint.

Compute CTC targets failed!
2 Percent improvement time=1731, best error was 92.704 @ 3750
At iteration 5481/5600/5657, Mean rms=4.768%, delta=32.531%, char train=90.382%, word train=90.811%, skip ratio=0.8%,  New best char error = 90.382 wrote checkpoint.

Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
2 Percent improvement time=1338, best error was 91.573 @ 4234
At iteration 5572/5700/5760, Mean rms=4.75%, delta=32.446%, char train=89.213%, word train=91.057%, skip ratio=0.8%,  New best char error = 89.213 wrote checkpoint.

Compute CTC targets failed!
2 Percent improvement time=186, best error was 90.382 @ 5481
At iteration 5667/5800/5861, Mean rms=4.726%, delta=32.233%, char train=88.254%, word train=90.971%, skip ratio=0.9%,  New best char error = 88.254 wrote checkpoint.

2 Percent improvement time=275, best error was 90.382 @ 5481
At iteration 5756/5900/5961, Mean rms=4.739%, delta=32.374%, char train=87.937%, word train=90.965%, skip ratio=0.9%,  New best char error = 87.937 wrote checkpoint.

Compute CTC targets failed!
2 Percent improvement time=272, best error was 89.213 @ 5572
At iteration 5844/6000/6062, Mean rms=4.697%, delta=32.218%, char train=86.827%, word train=89.968%, skip ratio=0.9%,  New best char error = 86.827 wrote checkpoint.

2 Percent improvement time=175, best error was 87.937 @ 5756
At iteration 5931/6100/6162, Mean rms=4.666%, delta=32.309%, char train=85.637%, word train=89.046%, skip ratio=0.9%,  New best char error = 85.637 wrote checkpoint.

Compute CTC targets failed!
Image too small to scale!! (1x36 vs min width of 3)
Line cannot be recognized!!
Image not trainable
2 Percent improvement time=267, best error was 87.937 @ 5756
At iteration 6023/6200/6264, Mean rms=4.655%, delta=32.37%, char train=85.46%, word train=88.515%, skip ratio=1%,  New best char error = 85.46 wrote checkpoint.

2 Percent improvement time=88, best error was 85.46 @ 6023
At iteration 6111/6300/6364, Mean rms=4.584%, delta=31.468%, char train=83.393%, word train=87.4%, skip ratio=1%,  New best char error = 83.393 wrote checkpoint.

Compute CTC targets failed!
Compute CTC targets failed!
At iteration 6208/6400/6466, Mean rms=4.607%, delta=31.939%, char train=84.07%, word train=87.3%, skip ratio=1.2%,  New worst char error = 84.07 wrote checkpoint.

2 Percent improvement time=274, best error was 85.46 @ 6023
At iteration 6297/6500/6566, Mean rms=4.561%, delta=31.653%, char train=82.962%, word train=86.402%, skip ratio=1%,  New best char error = 82.962 wrote checkpoint.

Image too small to scale!! (1x36 vs min width of 3)
Line cannot be recognized!!
Image not trainable
Compute CTC targets failed!
Compute CTC targets failed!
2 Percent improvement time=364, best error was 85.46 @ 6023
At iteration 6387/6600/6669, Mean rms=4.513%, delta=31.267%, char train=82.307%, word train=85.197%, skip ratio=1.2%,  New best char error = 82.307 wrote checkpoint.

2 Percent improvement time=449, best error was 85.46 @ 6023
At iteration 6472/6700/6769, Mean rms=4.492%, delta=31.447%, char train=81.775%, word train=83.786%, skip ratio=0.9%,  New best char error = 81.775 wrote checkpoint.

Compute CTC targets failed!
2 Percent improvement time=450, best error was 83.393 @ 6111
At iteration 6561/6800/6870, Mean rms=4.457%, delta=31.274%, char train=80.987%, word train=82.896%, skip ratio=0.9%,  New best char error = 80.987 wrote checkpoint.

2 Percent improvement time=260, best error was 82.307 @ 6387
At iteration 6647/6900/6970, Mean rms=4.442%, delta=31.452%, char train=80.291%, word train=82.152%, skip ratio=0.9%,  New best char error = 80.291 wrote checkpoint.

At iteration 6737/7000/7070, Mean rms=4.448%, delta=31.424%, char train=80.785%, word train=82.164%, skip ratio=0.8%,  New worst char error = 80.785 wrote checkpoint.

Compute CTC targets failed!
Compute CTC targets failed!
At iteration 6822/7100/7172, Mean rms=4.441%, delta=31.545%, char train=80.427%, word train=81.869%, skip ratio=1%,  New worst char error = 80.427 wrote checkpoint.

2 Percent improvement time=434, best error was 81.775 @ 6472
At iteration 6906/7200/7272, Mean rms=4.413%, delta=31.189%, char train=79.744%, word train=81.604%, skip ratio=0.8%,  New best char error = 79.744 wrote checkpoint.

Compute CTC targets failed!
At iteration 6993/7300/7373, Mean rms=4.422%, delta=31.464%, char train=79.819%, word train=81.686%, skip ratio=0.9%,  New worst char error = 79.819 wrote checkpoint.

Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
2 Percent improvement time=610, best error was 81.775 @ 6472
At iteration 7082/7400/7477, Mean rms=4.407%, delta=31.226%, char train=79.684%, word train=81.674%, skip ratio=1.1%,  New best char error = 79.684 wrote checkpoint.

At iteration 7169/7500/7577, Mean rms=4.397%, delta=31.27%, char train=79.786%, word train=81.271%, skip ratio=1.1%,  New worst char error = 79.786 wrote checkpoint.

Compute CTC targets failed!
Compute CTC targets failed!
Image too small to scale!! (1x36 vs min width of 3)
Line cannot be recognized!!
Image not trainable
2 Percent improvement time=780, best error was 81.775 @ 6472
At iteration 7252/7600/7680, Mean rms=4.392%, delta=31.249%, char train=79.63%, word train=81.217%, skip ratio=1.1%,  New best char error = 79.63 wrote checkpoint.

2 Percent improvement time=863, best error was 81.775 @ 6472
At iteration 7335/7700/7780, Mean rms=4.387%, delta=31.092%, char train=79.002%, word train=81.285%, skip ratio=1.1%,  New best char error = 79.002 wrote checkpoint.

Image too small to scale!! (1x36 vs min width of 3)
Line cannot be recognized!!
Image not trainable
At iteration 7426/7800/7881, Mean rms=4.407%, delta=31.247%, char train=79.636%, word train=81.725%, skip ratio=1.1%,  New worst char error = 79.636 wrote checkpoint.

At iteration 7511/7900/7981, Mean rms=4.385%, delta=30.878%, char train=79.223%, word train=81.668%, skip ratio=1.1%,  New worst char error = 79.223 wrote checkpoint.

Compute CTC targets failed!
At iteration 7598/8000/8082, Mean rms=4.386%, delta=31.08%, char train=79.055%, word train=81.677%, skip ratio=1.2%,  New worst char error = 79.055 wrote checkpoint.

Compute CTC targets failed!
2 Percent improvement time=1114, best error was 80.987 @ 6561
At iteration 7675/8100/8183, Mean rms=4.352%, delta=30.582%, char train=78.523%, word train=81.333%, skip ratio=1.1%,  New best char error = 78.523 wrote checkpoint.

2 Percent improvement time=1112, best error was 80.291 @ 6647
At iteration 7759/8200/8283, Mean rms=4.333%, delta=30.531%, char train=78.046%, word train=80.76%, skip ratio=1.1%,  New best char error = 78.046 wrote checkpoint.

Image too small to scale!! (2x36 vs min width of 3)
Line cannot be recognized!!
Image not trainable
At iteration 7845/8300/8384, Mean rms=4.347%, delta=30.692%, char train=78.819%, word train=81.015%, skip ratio=1.1%,  New worst char error = 78.819 wrote checkpoint.

2 Percent improvement time=1280, best error was 80.291 @ 6647
At iteration 7927/8400/8484, Mean rms=4.323%, delta=30.655%, char train=77.95%, word train=80.297%, skip ratio=0.7%,  New best char error = 77.95 wrote checkpoint.

Compute CTC targets failed!
At iteration 8025/8500/8585, Mean rms=4.392%, delta=31.111%, char train=79.438%, word train=81.685%, skip ratio=0.8%,  New worst char error = 79.438 wrote checkpoint.

At iteration 8105/8600/8685, Mean rms=4.381%, delta=31.051%, char train=78.715%, word train=81.279%, skip ratio=0.5%,  New worst char error = 78.715 wrote checkpoint.

Image too small to scale!! (2x36 vs min width of 3)
Line cannot be recognized!!
Image not trainable
At iteration 8189/8700/8786, Mean rms=4.385%, delta=30.966%, char train=78.921%, word train=81.315%, skip ratio=0.6%,  New worst char error = 78.921 wrote checkpoint.

Compute CTC targets failed!
Compute CTC targets failed!
2 Percent improvement time=1365, best error was 79.744 @ 6906
At iteration 8271/8800/8888, Mean rms=4.342%, delta=30.556%, char train=77.722%, word train=80.115%, skip ratio=0.7%,  New best char error = 77.722 wrote checkpoint.

2 Percent improvement time=1101, best error was 79.63 @ 7252
At iteration 8353/8900/8988, Mean rms=4.329%, delta=30.315%, char train=77.607%, word train=79.662%, skip ratio=0.7%,  New best char error = 77.607 wrote checkpoint.

Compute CTC targets failed!
2 Percent improvement time=1102, best error was 79.002 @ 7335
At iteration 8437/9000/9089, Mean rms=4.3%, delta=29.917%, char train=76.914%, word train=79.407%, skip ratio=0.7%,  New best char error = 76.914 wrote checkpoint.

At iteration 8525/9100/9189, Mean rms=4.337%, delta=30.247%, char train=78.278%, word train=80.031%, skip ratio=0.6%,  New worst char error = 78.278 wrote checkpoint.

Compute CTC targets failed!
At iteration 8616/9200/9290, Mean rms=4.366%, delta=30.447%, char train=78.938%, word train=80.982%, skip ratio=0.7%,  New worst char error = 78.938 wrote checkpoint.

At iteration 8702/9300/9390, Mean rms=4.354%, delta=30.304%, char train=78.31%, word train=80.904%, skip ratio=0.6%,  New worst char error = 78.31 wrote checkpoint.

Image too small to scale!! (2x36 vs min width of 3)
Line cannot be recognized!!
Image not trainable
At iteration 8784/9400/9491, Mean rms=4.328%, delta=29.927%, char train=77.979%, word train=80.389%, skip ratio=0.7%,  New worst char error = 77.979 wrote checkpoint.

Compute CTC targets failed!
Compute CTC targets failed!
2 Percent improvement time=1535, best error was 79.002 @ 7335
At iteration 8870/9500/9593, Mean rms=4.297%, delta=29.545%, char train=76.799%, word train=79.93%, skip ratio=0.8%,  New best char error = 76.799 wrote checkpoint.

At iteration 8960/9600/9693, Mean rms=4.31%, delta=29.367%, char train=78.125%, word train=80.711%, skip ratio=0.8%,  New worst char error = 78.125 wrote checkpoint.

Compute CTC targets failed!
At iteration 9049/9700/9794, Mean rms=4.305%, delta=29.149%, char train=77.933%, word train=81.157%, skip ratio=0.8%,  New worst char error = 77.933 wrote checkpoint.

Compute CTC targets failed!
At iteration 9137/9800/9895, Mean rms=4.293%, delta=28.615%, char train=78.196%, word train=81.996%, skip ratio=0.7%,  New worst char error = 78.196 wrote checkpoint.

Image too small to scale!! (2x36 vs min width of 3)
Line cannot be recognized!!
Image not trainable
At iteration 9221/9900/9996, Mean rms=4.322%, delta=28.896%, char train=79.178%, word train=82.741%, skip ratio=0.8%,  New worst char error = 79.178 wrote checkpoint.

Compute CTC targets failed!
At iteration 9306/10000/10097, Mean rms=4.317%, delta=28.487%, char train=79.685%, word train=82.836%, skip ratio=0.8%,  New worst char error = 79.685 wrote checkpoint.

Finished! Error rate = 76.799

replacing top layer when I make max_iterations 300 or 400 error is 100 .

300-400 iterations are for finetuning.
For replacing a layer, need hundreds of thousands iterations.
This what was used by Ray for tessdata_fast - see
https://github.com/tesseract-ocr/tesseract/wiki/Data-Files-in-tessdata_fast#version-string--40000alpha--network-specification
Version string:4.00.00alpha:ara:synth20170629
LSTM training info:Network
str:[1,48,0,1Ct3,3,16Mp3,3Lfys64Lfx96Lrx96Lfx192O1c1],
flags=41,
iteration=5521100, sample_iteration=5544718,
null_char=2,
learning_rate=0.001, momentum=0.5, adam_beta=0.999

I have used 	--net_spec '[Lfx256 O1c111]' this is the only one working.
when i use Information specific to tessdata_fast i get
Continuing from data/eng.lstm
Appending a new network to an old one!!Invalid network spec:1,36,0,1Ct3,3,16Mp3,3Lfys48Lfx96Lrx96Lfx192O1c1]
Missing ] at end of [Series]!
Failed to create network from spec: [1,36,0,1Ct3,3,16Mp3,3Lfys48Lfx96Lrx96Lfx192O1c1]
Makefile:133: recipe for target 'data/checkpoints/Invoice_checkpoint' failed
make: *** [data/checkpoints/Invoice_checkpoint] Error 1

lstmtraining --model_output data/checkpoints/$(MODEL_NAME)
--continue_from data/eng.lstm
--traineddata $(TESSDATA_PREFIX)/eng.traineddata
--max_iterations 10000
--append_index 5 --net_spec '[Lfx256 O1c111]'
--debug_interval -1
--target_error_rate 0.01
--train_listfile data/list.train
--learning_rate 20e-4
--eval_listfile data/list.eval
the output is like this
File data/train/91563139esdr_0.lstmf page 18 :
Mean rms=4.379%, delta=29.005%, train=80.688%(82.89%), skip ratio=0.7%
Iteration 9997: ALIGNED TRUTH : DATE: 04/11//2018
Iteration 9997: BEST OCR TEXT : Gloel ngs
File data/train/91570665E_0.lstmf page 18 :
Mean rms=4.378%, delta=28.975%, train=80.731%(82.89%), skip ratio=0.7%
Iteration 9998: ALIGNED TRUTH : This Electrrooonic  Shhiipping Docummeent Receipt does not kmit tW Walmaart or any of itts subsiddiariies or affiliates'
Iteration 9998: BEST OCR TEXT : uniig Docucmmme eeeeeeeeedoo ot itti'
File data/train/91521397_0.lstmf page 18 :
Mean rms=4.377%, delta=28.948%, train=80.702%(82.89%), skip ratio=0.7%
Iteration 9999: ALIGNED TRUTH : Globaal Logistics
Iteration 9999: BEST OCR TEXT : On5eg
File data/train/91574077E_0.lstmf page 18 :
Mean rms=4.375%, delta=28.917%, train=80.714%(82.89%), skip ratio=0.7%
At iteration 9540/10000/10085, Mean rms=4.375%, delta=28.917%, char train=80.714%, word train=82.89%, skip ratio=0.7%,  wrote checkpoint.

Finished! Error rate = 78.332
num_docs > 0:Error:Assert failed:in file imagedata.cpp, line 651
Makefile:133: recipe for target 'data/checkpoints/Invoice_checkpoint' failed
make: *** [data/checkpoints/Invoice_checkpoint] Segmentation fault (core dumped)
make: *** Deleting file 'data/checkpoints/Invoice_checkpoint'

I am very confused now, how I can go lower in error rate. the test is processed right as
File data/train/91506774_0.lstmf page 18 :
Mean rms=4.395%, delta=29.497%, train=82.122%(83.09%), skip ratio=0.7%
Iteration 9875: ALIGNED TRUTH : Walmart Inc., and its subsidiaries and affiliates reserve the right to hold the above-named supplier
Iteration 9875: BEST OCR TEXT : Walmart Inc., and its subsidiaries and affiliates reserve the right to hold the above-named supplier

so no problem in the data set

Please share your latest box/tif and lstmf files for me to test,

Kindly find the link for the latest box/tif and lstmf train

Your box coordinates are incorrect.
I checked with one file. 91506821E_0.tif
You have the following:
D 1095 120 1154 138 0
a 1095 120 1154 138 0
t 1095 120 1154 138 0
e 1095 120 1154 138 0
: 1095 120 1154 138 0
1095 120 1154 138 0
2 1191 121 1282 138 0
0 1191 121 1282 138 0
1 1191 121 1282 138 0
8 1191 121 1282 138 0

1191 121 1282 138 0
2 1191 121 1282 138 0
1191 121 1282 138 0
7 1191 121 1282 138 0
1282 138 1282 139 0

tesseract with makebox gives the following:
D 1095 2062 1106 2080 0
a 1106 2062 1111 2080 0
t 1119 2062 1133 2079 0
e 1135 2062 1144 2076 0
: 1151 2062 1154 2075 0
2 1191 2062 1200 2079 0
0 1204 2062 1211 2079 0
1 1218 2062 1223 2079 0
8 1229 2062 1235 2079 0

1235 2062 1240 2079 0
2 1245 2062 1256 2079 0
1262 2067 1267 2069 0
7 1271 2062 1282 2079 0

On Thu, Aug 23, 2018 at 12:10 AM Ahmed Osama notifications@github.com
wrote:

Kindly find the link for the latest box/tif and lstmf train
http://www.mediafire.com/file/nw4rgqr2fn7zaia/train.zip
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/1848#issuecomment-415136216,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AE2_o9awC0mUssnIaVNsPRSfeq4SRhZXks5uTaWXgaJpZM4WBYf7
.

--

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

The problem here that I used the same automated method from here
How to automate this instead of getting each character coordinates. I make it word coordinates and end line with \t
for line in lines:
    for i in range(1, len(line)):
        char = line[i]
        prev_char = line[i-1]
        if unicodedata.combining(char):
            print(u"%s %d %d %d %d 0" % ((prev_char + char), 0, 0, width, height))
        elif not unicodedata.combining(prev_char):
            print(u"%s %d %d %d %d 0" % (prev_char, 0, 0, width, height))
    if not unicodedata.combining(line[-1]):
        print(u"%s %d %d %d %d 0" % (line[-1], 0, 0, width, height))
    print(u"%s %d %d %d %d 0" % ("\t", width, height, width+1, height+1))

That method is for a single line. You are applying it to a page, hence the height coordinates are incorrect.

I applied it line by line for example . I calculate the coordinates word by word in each line and break line by \t
Is this valid or i need to break page into lines and apply the script .
for line in lines
	words = line.find_all('span',class_='ocrx_word')
	for word in words :
		for character in word.get_text():
			if character:
				outputFile.write(u"%s %d %d %d %d 0 \n" % (character,bbox[0], bbox[1], bbox[2], bbox[3]))
		#print (word.get_text() , words[-1].get_text() )
		if word.get_text() != words[-1].get_text() :
			outputFile.write(u"%s %d %d %d %d 0 \n" % (" ", bbox[0], bbox[1], bbox[2], bbox[3]))
outputFile.write(u"%s %d %d %d %d 0 \n" % ("\t", int(bbox[2]), int (bbox[3]), int(bbox[2])+1, int(bbox[3])+1))

Please ask ocrd-train related questions in their repo.
Your issue of Infinite Loop of Compute CTC targets failed! was because of
missing tabs.
So, please close this issue.
On Thu, Aug 23, 2018 at 3:47 AM Ahmed Osama notifications@github.com
wrote:

I applied it line by line for example . I calculate the coordinates word
by word in each line and break line by \t
Is this valid or i need to break page into lines and apply the script .
for line in lines
words = line.find_all('span',class_='ocrx_word')
for word in words :
for character in word.get_text():
if character:
outputFile.write(u"%s %d %d %d %d 0 \n" % (character,bbox[0], bbox[1], bbox[2], bbox[3]))
#print (word.get_text() , words[-1].get_text() )
if word.get_text() != words[-1].get_text() :
outputFile.write(u"%s %d %d %d %d 0 \n" % (" ", bbox[0], bbox[1], bbox[2], bbox[3]))
outputFile.write(u"%s %d %d %d %d 0 \n" % ("\t", int(bbox[2]), int (bbox[3]), int(bbox[2])+1, int(bbox[3])+1))
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/1848#issuecomment-415199825,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AE2_oxEOxVxfVYlrh72BPR6gzEyyKTY2ks5uTdh0gaJpZM4WBYf7
.

--

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

I try with the guide of:https://tesseract-ocr.github.io/tessdoc/TrainingTesseract-4.00.html#lstmtraining-command-line
I manually edited my box and tif files. Here is my training code:
nour@nour:~/Desktop/fine_tuning$ lstmtraining --model_output /home/nour/Desktop/fine_tuning/ \ --continue_from my_output_checkpoint
--traineddata langdata_best/tessdata_best/tur.traineddata
--perfect_sample_delay 0
--debug_interval 0
--max_iterations 0
--target_error_rate 0.01
--train_listfile font_name.training_files.txt
Must provide a --traineddata see training documentation
nour@nour:~/Desktop/fine_tuning$
here is the font_name.training_files.txt:
box_tif_files/font_name.font.exp1.lstmf
box_tif_files/font_name.font.exp2.lstmf
box_tif_files/font_name.font.exp3.lstmf
box_tif_files/font_name.font.exp4.lstmf
box_tif_files/font_name.font.exp5.lstmf
box_tif_files/font_name.font.exp6.lstmf
box_tif_files/font_name.font.exp7.lstmf
box_tif_files/font_name.font.exp8.lstmf
the txt file is in the fine_tuning folder.
changing the directory for the lstmf files is not working. In Further i can share the files if needed.
`

authors: Shreeshrii engahmed1190 nourey

repo: tesseract-ocr/tesseract