-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrain_htune_test.sh
41 lines (30 loc) · 1.06 KB
/
train_htune_test.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
#!/bin/bash
# ----------- MODEL SELECTION -------------------
models=(+models/shiness_disk/default
+models/shiners_disk/default)
criteria=(+criteria=ss_loss/shi
+criteria=rs_loss/shi)
# ------------- DATASET SELECTION ----------------
train_dataset=+datasets/megadepth/setup/ICCV2023=train
val_dataset=+datasets/imcpt/setup/ICCV2023/train_val/rel_pose/f_pydegensac=num_2k
htune_dataset=+datasets/imcpt/setup/ICCV2023/htune/rel_pose/f_pydegensac/num_2k
test_dataset=+datasets/imcpt/setup/ICCV2023/test/rel_pose/f_pydegensac=num_2k
# -------------------------------------------------
optimizer=+optimizer=default
#check=True
check=False
for i in "${!models[@]}"
do
python3 source/pipeline/train.py "${models[i]}=train" \
$train_dataset "${criteria[i]}" $optimizer $val_dataset $check
done
for i in "${!models[@]}"
do
python3 source/pipeline/htune.py "${models[i]}=features_htune_test" \
$htune_dataset $check
done
for i in "${!models[@]}"
do
python3 source/pipeline/test.py "${models[i]}=features_htune_test" \
$test_dataset $check
done