-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun_all_interpolation_var_test_means.sh
41 lines (34 loc) · 1.5 KB
/
run_all_interpolation_var_test_means.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/sh
# Main dataset path
main_path="/mnt/disk2/ranked_MNIST_family"
num_epoch=50
backbone="resnet18"
# Save path
save_path="interpolation_var_test_results"
# If does not exist, create
if [ ! -d "$save_path" ]; then
mkdir $save_path
fi
# Create run setups
modes=( "gray" "color" "gray" "color" "gray" "gray" "color" "color")
interpolations=("scale" "scale" "brightness" "brightness" "scale" "brightness" "scale" "brightness")
randomize=( "None" "None" "None" "None" "brightness" "scale" "brightness" "scale")
static=( "brightness" "brightness" "scale" "scale" "None" "None" "None" "None")
methods=("gaussian_mlr")
supervisions=("strong" "weak")
# Run for loop for idxs in range(len(modes))
for idx in $(seq 0 $((${#modes[@]}-1)))
do
for method in "${methods[@]}"
do
for supervision in "${supervisions[@]}"
do
mode=${modes[$idx]}
interpolate=${interpolations[$idx]}
randomize=${randomize[$idx]}
static=${static[$idx]}
echo "mode=$mode, interpolate=$interpolate, randomize=$randomize, static=$static", method=$method, supervision=$supervision
python interpolation_var_test_mean.py --mode $mode --interpolate $interpolate --randomize $randomize --static $static --backbone $backbone --method $method --supervision $supervision
done
done
done