-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
56 lines (36 loc) · 1.27 KB
/
run.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
44
45
46
47
48
49
50
51
52
53
54
55
#!/usr/bin/bash
set -eo pipefail
# from https://stackoverflow.com/questions/4774054/reliable-way-for-a-bash-script-to-get-the-full-path-to-itself
export base="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
### retrieve dataset ###
# download and unpack datasets
cd $base/data
time bash download_unpack.sh
### preprocessing ###
# conversion and downscaling coins
cd $base/code
time bash downscale_coins.sh
cd $base/code
time bash correct_bendings.sh
### global similarity ###
cd $base/code
time bash histogram_dists.sh
# parameter study for coin detection
cd $base/code
time bash detect_coins.sh
# parameter analysis with detected vs. labelled coins
cd $base/code
echo "#accum_idx quantile_idx quantile_value accum_mean hit_mean hit2_mean dist_center dist_inner_mean dist_outer_mean" > detections_parameters.txt
time bash analyse_detections.sh >> detections_parameters.txt
time python3 plot_analysed_detections.py
time python3 plot_labels_detections.py
mv detections_parameters* $base/results/
mv detections_*.pdf $base/results/
# compare coins wrt various similarity measures
cd $base/code
time bash compare_coins.sh
### analysis ###
cd $base/code
time python3 analyse_histogram_dist.py
time python3 analyse_globalsim.py $base/output/global_sim_rot/
mv *.pdf $base/results/