-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfigDefaultTraining.ini
More file actions
76 lines (66 loc) · 2.65 KB
/
ConfigDefaultTraining.ini
File metadata and controls
76 lines (66 loc) · 2.65 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
65
66
67
68
69
70
71
72
73
74
75
76
[BASEMODEL]
Activation = "Identity"
Backbone = "resnet34"
Batch_Size = 64
Loss_Function = "CrossEntropyLoss"
Model = "convnet"
Patch_Size = [256,256]
Precision = 16
Vis = [0]
[ADVANCEDMODEL]
Depth_ViT = 8
Drop_Rate = 0.05 # was 0.4
Emb_size_ViT = 768
Inference = false
Layer_Scale = 1e-6
Max_Epochs = 50
N_Heads_ViT = 8
Pretrained = true
Random_Seed = 42
Sub_Patch_Size_ViT = 16
wf = 4
[AUGMENTATION]
Rand_Magnitude = 3
Rand_Operations = 3
[CHECKPOINT]
Mode = "min"
Monitor = "val_loss_epoch"
logger_folder = 'tissue_type_classification'
Model_Save_Path = './Pretrained_Model/tissue_type_classification/'
[CRITERIA]
ROI = ['SkeletalMuscle', 'ArtifactDirt', 'ArtifactTissueMissing', 'Stroma', 'Fat', 'Tumour', 'Background', 'ArtifactBlurring', 'ArtifactBubble', 'ArtifactOther', 'ArtifactTissueFolding', 'Muscle', 'ArtifactInk', 'ArtifactStaining','Vessel']
#ROI = ['Fat [out]','Tumor', 'Tumour', 'Artifact [folding] [in]', 'Artifact [dirt] [in]']
#ROI = ['Necrosis','Background']
#ROI = ['Tumour','Stroma','Fat','Muscle']
#ROI = ['ArtifactTissueFolding']
#ROI = ['FibrousTissue', 'SkeletalMuscle', 'ArtifactDirt', 'ArtifactTissueMissing', 'Epidermis', 'Stroma', 'Fat', 'Tumour', 'Background', 'ArtifactBlurring', 'ArtifactBubble', 'ArtifactOther', 'ArtifactTissueFolding', 'Muscle', 'ArtifactInk', 'ArtifactStaining','Vessel']
#ROI = ['Necrosis', 'FibrousTissue', 'SkeletalMuscle', 'ArtifactDirt', 'GlandularTissue', 'ArtifactTissueMissing', 'Epidermis', 'Stroma', 'Fat', 'Tumour', 'Background', 'Vessel', 'Blood', 'ArtifactBlurring', 'ArtifactBubble', 'ImmuneCells', 'ArtifactOther', 'ArtifactTissueFolding', 'Muscle', 'ArtifactInk', 'Nerve', 'SebaceousGland', 'ImmuneCell', 'ArtifactStaining', 'Dermis']
[DATA]
Label = 'tissue_type'
N_Per_Sample = 60000
Sampling_Scheme = 'sample_n_per_sample_per_label_and_equalize'
SVS_Folder = './Data/'
Train_Size = 0.7
Val_Size = 0.3
[OPTIMIZER]
Algorithm = 'Adam'
eps = 1e-8
lr = 3e-4 # was 1e-5
[NORMALIZATION]
Colour_Norm_File = './QA/Normalization/Colour/trained/484813_vis0_HERef.pt'
[REGULARIZATION]
Label_Smoothing = 0
Stoch_Depth = 0
Weight_Decay = 1e-5
[SCHEDULER]
Cos_Warmup_Epochs = 2
Lin_Gamma = 0.5
Lin_Step_Size = 5
Type = 'stepLR'
[VERBOSE]
Data_Info = true
[OMERO]
Host = '128.16.11.124'
User = ''
Pw = ''
Target_Group = 'Sarcoma Classification'