-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmacros.py
More file actions
50 lines (38 loc) · 1.29 KB
/
macros.py
File metadata and controls
50 lines (38 loc) · 1.29 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
IMG_MAX_VAL = 255
MSK_MAX_VAL = 113
DOWN_SCALE_SIZE = 128
epochs = 1
augmentations = False
train_all = True
cross_entropy_loss = True
focal_loss = False
weighted_loss = True
using_unet = True
using_michals_unet = False
overfit_data = False
one_ch_in = True
norm_with_average_sub = True
unify_classes_first_and_third = True
use_only_single_class = False
use_gradient_accumulation = 1 # 1 or -1 for False
btch_size = 8
five_classes = True
if five_classes:
unify_classes_first_and_third = False
# use initialisation weights
use_initialisation_weights = False
initialisation_weights = '/Users/danu/Desktop/michal/IRresults/3classes/weights.pt'
print(f'augmentations={augmentations}')
print(f'train_all={train_all}')
print(f'cross_entropy_loss={cross_entropy_loss}')
print(f'focal_loss={focal_loss}')
print(f'using_unet={using_unet}')
print(f'using_michals_unet={using_michals_unet}')
print(f'overfit_data={overfit_data}')
print(f'weighted_loss={weighted_loss}')
print(f'one_ch_in={one_ch_in}')
print(f'norm_with_average_sub={norm_with_average_sub}')
print(f'unify_classes_first_and_third={unify_classes_first_and_third}')
print(f'use_only_single_class={use_only_single_class}')
print(f'use_gradient_accumulation={use_gradient_accumulation}')
print(f'use_initialisation_weights={use_initialisation_weights}')