-
Notifications
You must be signed in to change notification settings - Fork 37
/
settings.ini
63 lines (58 loc) · 2.18 KB
/
settings.ini
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
[COMMON]
save_model_dir = "saved_models"
model_name = "quicknat"
log_dir = "logs"
device = 1
exp_dir = "experiments"
[DATA]
data_dir = "datasets/COMBINED/axial"
train_data_file = "Data_train.h5"
train_label_file = "Label_train.h5"
train_class_weights_file = "Class_Weight_train.h5"
train_weights_file = "Weight_train.h5"
test_data_file = "Data_test.h5"
test_label_file = "Label_test.h5"
test_class_weights_file = "Class_Weight_test.h5"
test_weights_file = "Weight_test.h5"
labels = ["Background", "Left WM", "Left Cortex", "Left Lateral ventricle", "Left Inf LatVentricle", "Left Cerebellum WM", "Left Cerebellum Cortex", "Left Thalamus", "Left Caudate", "Left Putamen", "Left Pallidum", "3rd Ventricle", "4th Ventricle", "Brain Stem", "Left Hippocampus", "Left Amygdala", "CSF (Cranial)", "Left Accumbens", "Left Ventral DC", "Right WM", "Right Cortex", "Right Lateral Ventricle", "Right Inf LatVentricle", "Right Cerebellum WM", "Right Cerebellum Cortex", "Right Thalamus", "Right Caudate", "Right Putamen", "Right Pallidum", "Right Hippocampus", "Right Amygdala", "Right Accumbens", "Right Ventral DC"]
[NETWORK]
num_class = 33
num_channels = 1
num_filters = 64
kernel_h = 5
kernel_w = 5
kernel_c = 1
stride_conv = 1
pool = 2
stride_pool = 2
#Valid options : NONE, CSE, SSE, CSSE
se_block = "CSSE"
drop_out = 0.2
[TRAINING]
exp_name = "finetuned_alldata_axial"
final_model_file = "finetuned_alldata_axial.pth.tar"
learning_rate = 1e-4
train_batch_size = 5
val_batch_size = 5
log_nth = 50
num_epochs = 10
optim_betas = (0.9, 0.999)
optim_eps = 1e-8
optim_weight_decay = 0.00001
lr_scheduler_step_size = 3
lr_scheduler_gamma = 0.1
#Uses the last checkpoint file from the exp_dir_name folder
use_last_checkpoint = True
use_pre_trained = False
pre_trained_path = "saved_models/IXI_fsNet_axial.pth.tar"
[EVAL]
eval_model_path = "saved_models/quicknat_finetuned_1.pth.tar"
data_dir = "/home/masterthesis/shayan/nas_drive/Data_Neuro/OASISchallenge/FS"
label_dir = "/home/masterthesis/shayan/nas_drive/Data_Neuro/OASISchallenge"
volumes_txt_file = "datasets/MALC/test_volumes.txt"
#Valid options : Neo, FS
remap_config = "Neo"
#Valid options : COR, AXI, SAG
orientation = "COR"
save_predictions_dir = "predictions"
data_id = "MALC"