forked from Shreeshrii/tess5train-fonts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
4-plotCER.sh
executable file
·36 lines (26 loc) · 862 Bytes
/
4-plotCER.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
32
33
34
35
36
#!/bin/bash
# $1 - MODEL_NAME
# --debug=vij --trace\
# nohup bash 4-plotCER.sh engImpact 1 FineTune > data/logs/engImpact-4.log &
# nohup bash 4-plotCER.sh BrazilPlates 3 FineTune > data/logs/BrazilPlates-4.log &
# nohup bash 4-plotCER.sh engLayer 4 ReplaceLayer > data/logs/engLayer-4.log &
declare -i maxcer
maxcer=$2
echo "________________________________________________________________________"
make MODEL_NAME=$1 clean-post
echo "________________________________________________________________________"
# lstmeval and ocreval
make \
TESSDATA=data \
MODEL_NAME=$1 \
TRAIN_TYPE=$3 \
evalCER
echo "________________________________________________________________________"
# plotting
make \
TESSDATA=data \
MODEL_NAME=$1 \
Y_MAX_CER=$maxcer \
TRAIN_TYPE=$3 \
plotCER
echo "________________________________________________________________________"