-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfigs.py
More file actions
78 lines (73 loc) · 1.63 KB
/
configs.py
File metadata and controls
78 lines (73 loc) · 1.63 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
77
78
# Common parameters
hyper_params = {
"lr": 1e-4,
"weight_decay": 1e-2,
"num_workers": 12,
}
unet = {
"model_name": "unet",
"model_type": "pt_seg",
"model_params": {
"arch": "unet",
"encoder_name": "resnet50",
"encoder_weights": "imagenet",
"classes": 4,
},
"train_batch_size": 8,
"val_batch_size": 8,
"test_batch_size": 8,
"num_workers": 12,
"batch_accumulation": 2,
}
deeplab = {
"model_name": "deeplab",
"model_type": "pt_seg",
"model_params": {
"arch": "deeplabv3plus",
"encoder_name": "resnet50",
"encoder_weights": "imagenet",
"classes": 4,
},
"train_batch_size": 8,
"val_batch_size": 8,
"test_batch_size": 8,
"num_workers": 12,
"batch_accumulation": 2,
}
segformer = {
"model_name": "segformer",
"model_type": "pt_seg",
"model_params": {
"arch": "segformer",
"encoder_name": "mit_b5",
"encoder_weights": "imagenet",
"classes": 4,
},
"train_batch_size": 3,
"val_batch_size": 1,
"test_batch_size": 3,
"num_workers": 12,
"batch_accumulation": 5,
}
transunet = {
"model_name": "transunet",
"model_type": "transunet",
"model_params": {
"segmentation_channels": 4,
},
"train_batch_size": 2,
"val_batch_size": 1,
"test_batch_size": 3,
"num_workers": 12,
"batch_accumulation": 8,
}
vit_seg = {
"model_name": "vit_seg",
"model_type": "vit_seg",
"model_params": {},
"train_batch_size": 3,
"val_batch_size": 1,
"test_batch_size": 3,
"num_workers": 12,
"batch_accumulation": 5,
}