Delete config.json
Browse files- config.json +0 -214
config.json
DELETED
@@ -1,214 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"model_type": "unet",
|
3 |
-
"model_config": {
|
4 |
-
"encoder": {
|
5 |
-
"type": "resnet18",
|
6 |
-
"pretrained": true
|
7 |
-
},
|
8 |
-
"decoder": {
|
9 |
-
"type": "unet",
|
10 |
-
"num_classes": 104
|
11 |
-
}
|
12 |
-
},
|
13 |
-
"norm_cfg": {
|
14 |
-
"type": "SyncBN",
|
15 |
-
"requires_grad": true
|
16 |
-
},
|
17 |
-
"model": {
|
18 |
-
"type": "EncoderDecoder",
|
19 |
-
"pretrained": "pretrained/swin_small_patch4_window7_224.pth",
|
20 |
-
"backbone": {
|
21 |
-
"type": "SwinTransformer",
|
22 |
-
"embed_dim": 96,
|
23 |
-
"depths": [2, 2, 18, 2],
|
24 |
-
"num_heads": [3, 6, 12, 24],
|
25 |
-
"window_size": 7,
|
26 |
-
"mlp_ratio": 4.0,
|
27 |
-
"qkv_bias": true,
|
28 |
-
"qk_scale": null,
|
29 |
-
"drop_rate": 0.0,
|
30 |
-
"attn_drop_rate": 0.0,
|
31 |
-
"drop_path_rate": 0.3,
|
32 |
-
"ape": false,
|
33 |
-
"patch_norm": true,
|
34 |
-
"out_indices": [0, 1, 2, 3],
|
35 |
-
"use_checkpoint": false
|
36 |
-
},
|
37 |
-
"decode_head": {
|
38 |
-
"type": "UPerHead",
|
39 |
-
"in_channels": [96, 192, 384, 768],
|
40 |
-
"in_index": [0, 1, 2, 3],
|
41 |
-
"pool_scales": [1, 2, 3, 6],
|
42 |
-
"channels": 512,
|
43 |
-
"dropout_ratio": 0.1,
|
44 |
-
"num_classes": 104,
|
45 |
-
"norm_cfg": {
|
46 |
-
"type": "SyncBN",
|
47 |
-
"requires_grad": true
|
48 |
-
},
|
49 |
-
"align_corners": false,
|
50 |
-
"loss_decode": {
|
51 |
-
"type": "CrossEntropyLoss",
|
52 |
-
"use_sigmoid": false,
|
53 |
-
"loss_weight": 1.0
|
54 |
-
}
|
55 |
-
},
|
56 |
-
"auxiliary_head": {
|
57 |
-
"type": "FCNHead",
|
58 |
-
"in_channels": 384,
|
59 |
-
"in_index": 2,
|
60 |
-
"channels": 256,
|
61 |
-
"num_convs": 1,
|
62 |
-
"concat_input": false,
|
63 |
-
"dropout_ratio": 0.1,
|
64 |
-
"num_classes": 104,
|
65 |
-
"norm_cfg": {
|
66 |
-
"type": "SyncBN",
|
67 |
-
"requires_grad": true
|
68 |
-
},
|
69 |
-
"align_corners": false,
|
70 |
-
"loss_decode": {
|
71 |
-
"type": "CrossEntropyLoss",
|
72 |
-
"use_sigmoid": false,
|
73 |
-
"loss_weight": 0.4
|
74 |
-
}
|
75 |
-
},
|
76 |
-
"train_cfg": {},
|
77 |
-
"test_cfg": {
|
78 |
-
"mode": "whole"
|
79 |
-
}
|
80 |
-
},
|
81 |
-
"dataset_type": "CustomDataset",
|
82 |
-
"data_root": "./data/FoodSeg103/Images/",
|
83 |
-
"img_norm_cfg": {
|
84 |
-
"mean": [123.675, 116.28, 103.53],
|
85 |
-
"std": [58.395, 57.12, 57.375],
|
86 |
-
"to_rgb": true
|
87 |
-
},
|
88 |
-
"crop_size": [512, 1024],
|
89 |
-
"train_pipeline": [
|
90 |
-
{
|
91 |
-
"type": "LoadImageFromFile"
|
92 |
-
},
|
93 |
-
{
|
94 |
-
"type": "LoadAnnotations"
|
95 |
-
},
|
96 |
-
{
|
97 |
-
"type": "Resize",
|
98 |
-
"img_scale": [2048, 1024],
|
99 |
-
"ratio_range": [0.5, 2.0]
|
100 |
-
},
|
101 |
-
{
|
102 |
-
"type": "RandomCrop",
|
103 |
-
"crop_size": [512, 1024],
|
104 |
-
"cat_max_ratio": 0.75
|
105 |
-
},
|
106 |
-
{
|
107 |
-
"type": "RandomFlip",
|
108 |
-
"prob": 0.5
|
109 |
-
},
|
110 |
-
{
|
111 |
-
"type": "PhotoMetricDistortion"
|
112 |
-
},
|
113 |
-
{
|
114 |
-
"type": "Normalize",
|
115 |
-
"mean": [123.675, 116.28, 103.53],
|
116 |
-
"std": [58.395, 57.12, 57.375],
|
117 |
-
"to_rgb": true
|
118 |
-
},
|
119 |
-
{
|
120 |
-
"type": "Pad",
|
121 |
-
"size": [512, 1024],
|
122 |
-
"pad_val": 0,
|
123 |
-
"seg_pad_val": 255
|
124 |
-
},
|
125 |
-
{
|
126 |
-
"type": "DefaultFormatBundle"
|
127 |
-
},
|
128 |
-
{
|
129 |
-
"type": "Collect",
|
130 |
-
"keys": ["img", "gt_semantic_seg"]
|
131 |
-
}
|
132 |
-
],
|
133 |
-
"test_pipeline": [
|
134 |
-
{
|
135 |
-
"type": "LoadImageFromFile"
|
136 |
-
},
|
137 |
-
{
|
138 |
-
"type": "MultiScaleFlipAug",
|
139 |
-
"img_scale": [2048, 1024],
|
140 |
-
"flip": false,
|
141 |
-
"transforms": [
|
142 |
-
{
|
143 |
-
"type": "Resize",
|
144 |
-
"keep_ratio": true
|
145 |
-
},
|
146 |
-
{
|
147 |
-
"type": "RandomFlip"
|
148 |
-
},
|
149 |
-
{
|
150 |
-
"type": "Normalize",
|
151 |
-
"mean": [123.675, 116.28, 103.53],
|
152 |
-
"std": [58.395, 57.12, 57.375],
|
153 |
-
"to_rgb": true
|
154 |
-
},
|
155 |
-
{
|
156 |
-
"type": "ImageToTensor",
|
157 |
-
"keys": ["img"]
|
158 |
-
},
|
159 |
-
{
|
160 |
-
"type": "Collect",
|
161 |
-
"keys": ["img"]
|
162 |
-
}
|
163 |
-
]
|
164 |
-
}
|
165 |
-
],
|
166 |
-
"data": {
|
167 |
-
"samples_per_gpu": 2,
|
168 |
-
"workers_per_gpu": 2,
|
169 |
-
"train": {
|
170 |
-
"type": "CustomDataset",
|
171 |
-
"data_root": "./data/FoodSeg103/Images/",
|
172 |
-
"img_dir": "img_dir/train",
|
173 |
-
"ann_dir": "ann_dir/train",
|
174 |
-
"pipeline": [
|
175 |
-
{
|
176 |
-
"type": "LoadImageFromFile"
|
177 |
-
},
|
178 |
-
{
|
179 |
-
"type": "LoadAnnotations"
|
180 |
-
},
|
181 |
-
{
|
182 |
-
"type": "Resize",
|
183 |
-
"img_scale": [2048, 1024],
|
184 |
-
"ratio_range": [0.5, 2.0]
|
185 |
-
},
|
186 |
-
{
|
187 |
-
"type": "RandomCrop",
|
188 |
-
"crop_size": [512, 1024],
|
189 |
-
"cat_max_ratio": 0.75
|
190 |
-
},
|
191 |
-
{
|
192 |
-
"type": "RandomFlip",
|
193 |
-
"prob": 0.5
|
194 |
-
},
|
195 |
-
{
|
196 |
-
"type": "PhotoMetricDistortion"
|
197 |
-
},
|
198 |
-
{
|
199 |
-
"type": "Normalize",
|
200 |
-
"mean": [123.675, 116.28, 103.53],
|
201 |
-
"std": [58.395, 57.12, 57.375],
|
202 |
-
"to_rgb": true
|
203 |
-
},
|
204 |
-
{
|
205 |
-
"type": "Pad",
|
206 |
-
"size": [512, 1024],
|
207 |
-
"pad_val": 0,
|
208 |
-
"seg_pad_val": 255
|
209 |
-
},
|
210 |
-
{
|
211 |
-
"type": "DefaultFormatBundle"
|
212 |
-
},
|
213 |
-
{
|
214 |
-
"type": "Collect",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|