|
a |
|
b/src/config.py |
|
|
1 |
class BinaryModelConfig: |
|
|
2 |
seed = 42 |
|
|
3 |
in_channels = 1 |
|
|
4 |
layers_to_freeze = 0 |
|
|
5 |
pre_transforms = [ |
|
|
6 |
dict( |
|
|
7 |
name="Resize", |
|
|
8 |
params=dict( |
|
|
9 |
height=512, |
|
|
10 |
width=512, |
|
|
11 |
p=1.0, |
|
|
12 |
) |
|
|
13 |
), |
|
|
14 |
] |
|
|
15 |
augmentations = [] |
|
|
16 |
post_transforms = [] |
|
|
17 |
output_channels = 2 |
|
|
18 |
|
|
|
19 |
model = 'UnetPlusPlus' |
|
|
20 |
backbone = 'resnext101_32x4d' |
|
|
21 |
encoder_weights = 'swsl' |
|
|
22 |
best_dict = 'checkpoints/Binary.pth' |
|
|
23 |
link = 'https://drive.google.com/uc?id=1uUb8rw8JM6sG9xtaahBrr4SCBcWB70qr' |
|
|
24 |
|
|
|
25 |
|
|
|
26 |
class MultiModelConfig: |
|
|
27 |
seed = 42 |
|
|
28 |
in_channels = 1 |
|
|
29 |
layers_to_freeze = 0 |
|
|
30 |
pre_transforms = [ |
|
|
31 |
dict( |
|
|
32 |
name="Resize", |
|
|
33 |
params=dict( |
|
|
34 |
height=512, |
|
|
35 |
width=512, |
|
|
36 |
p=1.0, |
|
|
37 |
) |
|
|
38 |
), |
|
|
39 |
] |
|
|
40 |
augmentations = [] |
|
|
41 |
post_transforms = [] |
|
|
42 |
output_channels = 4 |
|
|
43 |
|
|
|
44 |
model = 'UnetPlusPlus' |
|
|
45 |
backbone = 'resnet101' |
|
|
46 |
best_dict = 'checkpoints/MultiClass.pth' |
|
|
47 |
link = 'https://drive.google.com/uc?id=1W8V3t-TDXH7Bwem6-2I6vYKLmQmOiyXa' |
|
|
48 |
|
|
|
49 |
|
|
|
50 |
class LungsModelConfig: |
|
|
51 |
seed = 42 |
|
|
52 |
in_channels = 1 |
|
|
53 |
layers_to_freeze = 0 |
|
|
54 |
pre_transforms = [ |
|
|
55 |
dict( |
|
|
56 |
name="Resize", |
|
|
57 |
params=dict( |
|
|
58 |
height=512, |
|
|
59 |
width=512, |
|
|
60 |
p=1.0, |
|
|
61 |
) |
|
|
62 |
), |
|
|
63 |
] |
|
|
64 |
augmentations = [] |
|
|
65 |
post_transforms = [] |
|
|
66 |
output_channels = 3 |
|
|
67 |
|
|
|
68 |
model = 'UnetPlusPlus' |
|
|
69 |
backbone = 'resnext101_32x4d' |
|
|
70 |
encoder_weights = 'swsl' |
|
|
71 |
best_dict = 'checkpoints/Lungs.pth' |
|
|
72 |
link = 'https://drive.google.com/uc?id=1n0evx7Rk0z5MKqo1sXZtX3qkWlwAuTYB' |