-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhtune_test_hpatches.sh
81 lines (64 loc) · 2.08 KB
/
htune_test_hpatches.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/bin/bash
# ----------- MODEL SELECTION -------------------
models=(+models/shi_disk/default
+models/sift_disk/default
+models/superpoint_disk/default
+models/r2d2_disk/default
+models/keynet_disk/default
+models/disk/default
+models/rekd_disk/default
+models/shiness_disk/default)
#models=(+models/harris_disk/default
# +models/doh_disk/default
# +models/log_disk/default
# +models/dohness_disk/default
# +models/logness_disk/default)
#models=(+models/shiss_disk/default
# +models/shirs_disk/default
# +models/shiners_disk/default)
# ------------- DATASET SELECTION ----------------
test_mma_dataset=+datasets/hpatches/setup/ICCV2023/test/classical/mma=num_2k
test_rep_dataset=+datasets/hpatches/setup/ICCV2023/test/classical/rep=num_2k
htune_dataset=+datasets/hpatches/setup/ICCV2023/htune/rel_pose/h_opencv/num_2k
test_dataset=+datasets/hpatches/setup/ICCV2023/test/rel_pose/h_opencv=num_2k
# -------------------------------------------------
#check=True
check=False
# ------------------ CLASSICAL METRICS ------------------
for model in "${models[@]}"
do
python3 source/pipeline/test.py "$model=features_htune_test" \
$test_mma_dataset $check -f
done
for model in "${models[@]}"
do
python3 source/pipeline/test.py "$model=features_htune_test" \
$test_mma_dataset $check -t
done
for model in "${models[@]}"
do
python3 source/pipeline/test.py "$model=features_htune_test" \
$test_rep_dataset $check -t
done
# ------------------ HOMOGRAPHY ESTIMATION ------------------
#for model in "${models[@]}"
#do
# python3 source/pipeline/htune.py "$model=features_htune_test" \
# $htune_dataset $check -f
#done
#
#for model in "${models[@]}"
#do
# python3 source/pipeline/htune.py "$model=features_htune_test" \
# $htune_dataset $check -lr -it
#done
for model in "${models[@]}"
do
python3 source/pipeline/test.py "$model=features_htune_test" \
$test_dataset $check -f
done
for model in "${models[@]}"
do
python3 source/pipeline/test.py "$model=features_htune_test" \
$test_dataset $check -t
done