File size: 1,070 Bytes
3818098
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
from transformers import PretrainedConfig
from typing import List

class WNet3DConfig(PretrainedConfig):
    model_type = "WNet"
    def __init__(
            self,
            in_ch=1, 
            out_ch=5, 
            init_features=64,
            **kwargs):
        self.in_ch = in_ch
        self.out_ch = out_ch
        self.init_features = init_features
        super().__init__(**kwargs)

class AttWNet3DConfig(PretrainedConfig):
    model_type = "AttWNet"
    def __init__(
            self,
            in_ch=1, 
            out_ch=5, 
            init_features=64,
            **kwargs):
        self.in_ch = in_ch
        self.out_ch = out_ch
        self.init_features = init_features
        super().__init__(**kwargs)

class WNetMSS3DConfig(PretrainedConfig):
    model_type = "WNetMSS"
    def __init__(
            self,
            in_ch=1, 
            out_ch=5, 
            init_features=64,
            **kwargs):
        self.in_ch = in_ch
        self.out_ch = out_ch
        self.init_features = init_features
        super().__init__(**kwargs)