1+ # model settings
2+ norm_cfg = dict (type = 'SyncBN' , requires_grad = True )
3+ model = dict (
4+ type = 'DIEncoderDecoder' ,
5+ pretrained = None ,
6+ backbone = dict (
7+ type = 'TinyNet' ,
8+ arch = 'B' ,
9+ output_early_x = True ,
10+ use_global = (True , True , True , True ),
11+ strip_kernel_size = (41 , 31 , 21 , 11 ),
12+ widen_factor = 1.0 ,
13+ strides = (1 , 2 , 2 , 2 ),
14+ dilations = (1 , 1 , 1 , 1 ),
15+ out_indices = (0 , 1 , 2 , 3 ),
16+ frozen_stages = - 1 ,
17+ conv_cfg = None ,
18+ norm_cfg = dict (type = 'BN' ),
19+ act_cfg = dict (type = 'ReLU6' ),
20+ norm_eval = False ,
21+ with_cp = False ,
22+ pretrained = None ,
23+ init_cfg = None ),
24+ neck = dict (
25+ type = 'TinyFPN' ,
26+ exist_early_x = True ,
27+ in_channels = [16 , 24 , 32 , 48 ],
28+ out_channels = 24 ,
29+ num_outs = 4 ),
30+ decode_head = dict (
31+ type = 'TinyHead' ,
32+ priori_attn = True ,
33+ in_channels = [32 , 24 , 24 , 24 , 24 ],
34+ in_index = [0 , 1 , 2 , 3 , 4 ],
35+ feature_strides = [2 , 2 , 4 , 8 , 16 ],
36+ channels = 24 ,
37+ dropout_ratio = 0. ,
38+ num_classes = 2 ,
39+ norm_cfg = norm_cfg ,
40+ align_corners = False ,
41+ loss_decode = dict (
42+ type = 'CrossEntropyLoss' , use_sigmoid = False , loss_weight = 1.0 )),
43+ # model training and testing settings
44+ train_cfg = dict (),
45+ test_cfg = dict (mode = 'whole' ))
0 commit comments