Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while training tesseract OCR on custom font #2

Open
arroobamaqsood opened this issue Mar 21, 2023 · 1 comment
Open

Error while training tesseract OCR on custom font #2

arroobamaqsood opened this issue Mar 21, 2023 · 1 comment

Comments

@arroobamaqsood
Copy link

Hello. I have been following your tutorial to train the Tesseract OCR for a new font. (https://www.youtube.com/watch?v=KE4xEzFGSU8&t=39s)
I have exactly followed the steps that you have mentioned but when i run the training command, it shows me the following errors:

data/radical-stroke.txt 100%[===================================================================================================>] 323.12K 1.00MB/s in 0.3s

2023-03-21 15:34:24 (1.00 MB/s) - 'data/radical-stroke.txt' saved [330874/330874]

combine_lang_model
--input_unicharset data/Apex/unicharset
--script_dir data
--numbers data/Apex/Apex.numbers
--puncs data/Apex/Apex.punc
--words data/Apex/Apex.wordlist
--output_dir data

--lang Apex
Failed to read data from: data/Apex/Apex.wordlist
Failed to read data from: data/Apex/Apex.punc
Failed to read data from: data/Apex/Apex.numbers
Loaded unicharset of size 112 from file data/Apex/unicharset
Setting unichar properties
Other case É of é is not in unicharset
Setting script properties
Failed to load script unicharset from:data/Latin.unicharset
Warning: properties incomplete for index 3 = C
Warning: properties incomplete for index 4 = H
Warning: properties incomplete for index 5 = E
Warning: properties incomplete for index 6 = S
Warning: properties incomplete for index 7 = -
Warning: properties incomplete for index 8 = R
Warning: properties incomplete for index 9 = I
Warning: properties incomplete for index 10 = K
Warning: properties incomplete for index 11 = N
Warning: properties incomplete for index 12 = G
Warning: properties incomplete for index 13 = B
Warning: properties incomplete for index 14 = 8
Warning: properties incomplete for index 15 = 5
Warning: properties incomplete for index 16 = F
Warning: properties incomplete for index 17 = ,
Warning: properties incomplete for index 18 = (
Warning: properties incomplete for index 19 = /
Warning: properties incomplete for index 20 = L
Warning: properties incomplete for index 21 = T
Warning: properties incomplete for index 22 = )
Warning: properties incomplete for index 23 = O
Warning: properties incomplete for index 24 = Y
Warning: properties incomplete for index 25 = .
Warning: properties incomplete for index 26 = D
Warning: properties incomplete for index 27 = A
Warning: properties incomplete for index 28 = M
Warning: properties incomplete for index 29 = U
Warning: properties incomplete for index 30 = P
Warning: properties incomplete for index 31 = [
Warning: properties incomplete for index 32 = ]
Warning: properties incomplete for index 33 = 9
Warning: properties incomplete for index 34 = 7
Warning: properties incomplete for index 35 = 0
Warning: properties incomplete for index 36 = 1
Warning: properties incomplete for index 37 = 4
Warning: properties incomplete for index 38 = 2
Warning: properties incomplete for index 39 = W
Warning: properties incomplete for index 40 = 3
Warning: properties incomplete for index 41 = <
Warning: properties incomplete for index 42 = >
Warning: properties incomplete for index 43 = "
Warning: properties incomplete for index 44 = V
Warning: properties incomplete for index 45 = X
Warning: properties incomplete for index 46 = '
Warning: properties incomplete for index 47 = ~
Warning: properties incomplete for index 48 = !
Warning: properties incomplete for index 49 = J
Warning: properties incomplete for index 50 = Q
Warning: properties incomplete for index 51 = Z
Warning: properties incomplete for index 52 = +
Warning: properties incomplete for index 53 = @
Warning: properties incomplete for index 54 = &
Warning: properties incomplete for index 55 = ’
Warning: properties incomplete for index 56 = =
Warning: properties incomplete for index 57 = _
Warning: properties incomplete for index 58 = €
Warning: properties incomplete for index 59 = ™
Warning: properties incomplete for index 60 = “
Warning: properties incomplete for index 61 = |
Warning: properties incomplete for index 62 = ?
Warning: properties incomplete for index 63 = :
Warning: properties incomplete for index 64 = 6
Warning: properties incomplete for index 65 = {
Warning: properties incomplete for index 66 = }
Warning: properties incomplete for index 67 = $
Warning: properties incomplete for index 68 = ;
Warning: properties incomplete for index 69 =
Warning: properties incomplete for index 70 = —
Warning: properties incomplete for index 71 = ”
Warning: properties incomplete for index 72 = *
Warning: properties incomplete for index 73 = #
Warning: properties incomplete for index 74 = »
Warning: properties incomplete for index 75 = ®
Warning: properties incomplete for index 76 = %
Warning: properties incomplete for index 77 = £
Warning: properties incomplete for index 78 = «
Warning: properties incomplete for index 79 = °
Warning: properties incomplete for index 80 = ©
Warning: properties incomplete for index 81 = §
Warning: properties incomplete for index 82 = ¥
Warning: properties incomplete for index 83 = ¢
Warning: properties incomplete for index 84 = ‘
Warning: properties incomplete for index 85 = i
Warning: properties incomplete for index 86 = n
Warning: properties incomplete for index 87 = c
Warning: properties incomplete for index 88 = u
Warning: properties incomplete for index 89 = l
Warning: properties incomplete for index 90 = a
Warning: properties incomplete for index 91 = t
Warning: properties incomplete for index 92 = e
Warning: properties incomplete for index 93 = m
Warning: properties incomplete for index 94 = o
Warning: properties incomplete for index 95 = s
Warning: properties incomplete for index 96 = g
Warning: properties incomplete for index 97 = h
Warning: properties incomplete for index 98 = b
Warning: properties incomplete for index 99 = z
Warning: properties incomplete for index 100 = v
Warning: properties incomplete for index 101 = q
Warning: properties incomplete for index 102 = f
Warning: properties incomplete for index 103 = r
Warning: properties incomplete for index 104 = w
Warning: properties incomplete for index 105 = p
Warning: properties incomplete for index 106 = d
Warning: properties incomplete for index 107 = k
Warning: properties incomplete for index 108 = x
Warning: properties incomplete for index 109 = y
Warning: properties incomplete for index 110 = j
Warning: properties incomplete for index 111 = é
Config file is optional, continuing...
Failed to read data from: data/Apex/Apex.config
Null char=2
lstmtraining
--debug_interval 0
--traineddata data/Apex/Apex.traineddata
--old_traineddata ../tesseract/tessdata/eng.traineddata
--continue_from data/eng/Apex.lstm
--learning_rate 0.0001
--model_output data/Apex/checkpoints/Apex
--train_listfile data/Apex/list.train
--eval_listfile data/Apex/list.eval
--max_iterations 2
--target_error_rate 0.01
Loaded file data/eng/Apex.lstm, unpacking...
Warning: LSTMTrainer deserialized an LSTMRecognizer!
Error, data/eng/Apex.lstm is an integer (fast) model, cannot continue training
Failed to continue from: data/eng/Apex.lstm
make: *** [Makefile:278: data/Apex/checkpoints/Apex_checkpoint] Error 1

@arroobamaqsood
Copy link
Author

Screenshot from 2023-03-21 15-35-29
Screenshot from 2023-03-21 15-35-53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant