-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfinal_run.sh
More file actions
65 lines (55 loc) · 3.93 KB
/
final_run.sh
File metadata and controls
65 lines (55 loc) · 3.93 KB
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
#!/bin/bash
# command to run: nohup bash final_run.sh &> final_no_hup.out &
# check for changes: iron measure, class number, epoch number, batch normalization, augmentation of training images, create attention maps
export PYTHONUNBUFFERED=true
# #### 3 CLASS BATCH MODEL Specific dataset
# echo "full data"
# for i in $(seq 47 51);
# do
# echo "full: hb 3 batch $i"
# CUDA_VISIBLE_DEVICES=0,1,2,3,4 python3 final_main.py --iron hb_concent --class_nb 3 --eps 100 --batch batch --no-augment --create_maps --seed $i --label_path swi_brain_vol_info_cognition.csv >> log_final_hb_concent_batch_100eps_3class_full_s$i.txt
# cd results
# CUDA_VISIBLE_DEVICES=0,1,2,3,4 python3 image_averaging.py --iron hb_concent --class_nb 3 --eps 100 --batch batch --no-augment --create_maps --seed $i --label_path swi_brain_vol_info_cognition.csv --group full >> log_final_hb_concent_batch_100eps_3class_full_s$i.txt
# cd ..
# done
# echo "male data"
# for i in $(seq 47 51);
# do
# echo "male: hb 3 batch $i"
# CUDA_VISIBLE_DEVICES=0,1,2,3,4 python3 final_main.py --iron hb_concent --class_nb 3 --eps 100 --batch batch --no-augment --create_maps --seed $i --label_path swi_brain_vol_male_info.csv >> log_final_hb_concent_batch_100eps_3class_male_s$i.txt
# cd results
# CUDA_VISIBLE_DEVICES=0,1,2,3,4 python3 image_averaging.py --iron hb_concent --class_nb 3 --eps 100 --batch batch --no-augment --create_maps --seed $i --label_path swi_brain_vol_male_info.csv --group male >> log_final_hb_concent_batch_100eps_3class_male_s$i.txt
# cd ..
# done
# echo "female data"
# for i in $(seq 47 51);
# do
# echo "female: hb 3 batch $i"
# CUDA_VISIBLE_DEVICES=1,2,3,4,5 python3 final_main.py --iron hb_concent --class_nb 3 --eps 100 --batch batch --no-augment --create_maps --seed $i --label_path swi_brain_vol_female_info.csv >> log_final_hb_concent_batch_100eps_3class_female_s$i.txt
# cd results
# CUDA_VISIBLE_DEVICES=0,1,2,3,4 python3 image_averaging.py --iron hb_concent --class_nb 3 --eps 100 --batch batch --no-augment --create_maps --seed $i --label_path swi_brain_vol_female_info.csv --group female >> log_final_hb_concent_batch_100eps_3class_female_s$i.txt#
# cd ..
# done
# echo "halfed data"
# for i in $(seq 47 51);
# do
# echo "halfed: hb 3 batch $i"
# CUDA_VISIBLE_DEVICES=0,1,4,5,6 python3 final_main.py --iron hb_concent --class_nb 3 --eps 100 --batch batch --no-augment --create_maps --seed $i --label_path swi_brain_vol_halfed_info.csv >> log_final_hb_concent_batch_100eps_3class_half_s$i.txt
# cd results
# CUDA_VISIBLE_DEVICES=0,1,2,3,4 python3 image_averaging.py --iron hb_concent --class_nb 3 --eps 100 --batch batch --no-augment --create_maps --seed $i --label_path swi_brain_vol_halfed_info.csv --group halfed >> log_final_hb_concent_batch_100eps_3class_half_s$i.txt
# cd ..
# done
#### 10 CLASS BATCH MODEL MAPS
#echo "hb 10 batch maps"
CUDA_VISIBLE_DEVICES=0,1,2,3,4 python3 final_main.py --iron hb_concent --class_nb 10 --eps 100 --batch batch --no-augment --create_maps --seed 1337 --label_path swi_brain_vol_info_cognition.csv >> log_final_hb_concent_batch_100eps_10class_s1337.txt
cd results
CUDA_VISIBLE_DEVICES=0,1,2,3,4 python3 image_averaging.py --iron hb_concent --class_nb 10 --eps 100 --batch batch --no-augment --create_maps --seed 1337 --label_path swi_brain_vol_info_cognition.csv --group full >> log_final_hb_concent_batch_100eps_3class_full_s1337.txt
cd ..
#### 20 CLASS BATCH MODEL MAPS
#echo "hb 20 batch seed 42"
#CUDA_VISIBLE_DEVICES=5,6,7,8,9 python3 final_main.py --iron hb_concent --class_nb 20 --eps 200 --batch batch --no-augment --no-create_maps --seed 42 >> log_final_hb_concent_batch_100eps_20class_seed42.txt
#### 35 CLASS BATCH MODEL MAPS
#for i in {1337..1347}
#do
# echo "hb 35 batch seed $i"
# CUDA_VISIBLE_DEVICES=5,6,7,8,9 python3 final_main.py --iron hb_concent --class_nb 35 --eps 200 --batch batch --no-augment --no-create_maps --seed ${i} >> log_final_hb_concent_batch_200eps_35class_seed${i}.txt