-
Notifications
You must be signed in to change notification settings - Fork 32
/
digits-finetune.sh
31 lines (22 loc) · 1.28 KB
/
digits-finetune.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
echo "/n ****** Finetune one of the fully-trained existing models: ***********"
##########rm -rf ~/tesstutorial/digits_from_full
mkdir -p ~/tesstutorial/digits_from_full
combine_tessdata -e ~/tessdata_best/eng.traineddata \
~/tesstutorial/digits_from_full/eng.lstm
lstmtraining \
--model_output ~/tesstutorial/digits_from_full/digits_plus \
--traineddata ~/tesstutorial/digits/eng/eng.traineddata \
--continue_from ~/tesstutorial/digits_from_full/eng.lstm \
--old_traineddata ~/tessdata_best/eng.traineddata \
--train_listfile ~/tesstutorial/digits/eng.training_files.txt \
--debug_interval -1 \
--max_iterations 3000
lstmtraining \
--stop_training \
--traineddata ~/tesstutorial/digits/eng/eng.traineddata \
--continue_from ~/tesstutorial/digits_from_full/digits_plus_checkpoint \
--model_output digits_plus.traineddata
lstmeval --model ~/tessdata_best/eng.traineddata --eval_listfile ~/tesstutorial/digits/eng.training_files.txt
lstmeval --model ~/tessdata_best/script/Latin.traineddata --eval_listfile ~/tesstutorial/digits/eng.training_files.txt
lstmeval --model ~/tesstutorial/digits_from_full/digits_plus_checkpoint --traineddata ~/tesstutorial/digits/eng/eng.traineddata --eval_listfile ~/tesstutorial/digits/eng.training_files.txt