-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomplete_pipeline.sh
executable file
·43 lines (35 loc) · 1.57 KB
/
complete_pipeline.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
37
38
39
40
41
42
43
#!/bin/bash
echo 'Pipeline started.'
### Preperation ###
mkdir -p results
### Creation ###
echo '### Creation ###'
cd ./dataset/creation
echo '# Generating'
pipenv run python main.py -i ../styleCrawling/resources/urls_us -o ../../results -t 3 -b -v
### Recognition ###
echo '### Recognition ###'
## Localisation
echo '## Localisation'
cd ../../recognition/localisation/
./setup.sh
./build/localiser ../../results/dataset ../../results/dataset_tesseract_localised
## Determination on ideal
echo '## Determination on ideal'
cd ../determination/
./setup.sh
./build/determiner ../../results/dataset ../../results/dataset ../../results/dataset_tesseract_determiner
## Determination on localised (complete)
echo '## Determination on localised (complete)'
./build/determiner ../../results/dataset ../../results/dataset_tesseract_localised ../../results/dataset_tesseract_complete
## Evaluation
echo '## Evaluation'
cd ../../evaluation
# echo '# Determination'
# pipenv run python evaluation.py ../results/dataset ../results/dataset_tesseract_determiner/ -cp 0.6 -lp 0.7 -o ../results/evaluation_determiner
# echo '# Localised (complete)'
# pipenv run python evaluation.py ../results/dataset ../results/dataset_tesseract_complete/ -cp 0.6 -lp 0.7 -o ../results/evaluation_complete
echo '# Determination'
# pipenv run python evaluate_combinations.py ../results/dataset ../results/dataset_tesseract_determiner/ -o ../results/evaluation_determiner
echo '# Localised (complete)'
pipenv run python evaluate_combinations.py ../results/dataset ../results/dataset_tesseract_complete/ -o ../results/evaluation_complete