Ajinkya commited on
Commit
eb703f2
·
0 Parent(s):

Official Sea Ice model upload

Browse files
.gitattributes ADDED
@@ -0,0 +1 @@
 
 
1
+ *.pth filter=lfs diff=lfs merge=lfs -text
model/.segformer_mit-b5_8xb1-160k_pre-cityscapes_seaicergb0-1024x1024.py.swp ADDED
Binary file (1.02 kB). View file
 
model/iter_160000.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9782394b4c725ad13283db293d2fc232633a34ea1312c00ab8c1868379bb24d7
3
+ size 1005871349
model/segformer_mit-b5_8xb1-160k_pre-cityscapes_seaicergb0-1024x1024.py ADDED
@@ -0,0 +1,325 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ checkpoint = 'https://download.openmmlab.com/mmsegmentation/v0.5/pretrain/segformer/mit_b5_20220624-658746d9.pth'
2
+ crop_size = (
3
+ 1024,
4
+ 1024,
5
+ )
6
+ data_preprocessor = dict(
7
+ bgr_to_rgb=True,
8
+ mean=[
9
+ 123.675,
10
+ 116.28,
11
+ 103.53,
12
+ ],
13
+ pad_val=0,
14
+ seg_pad_val=255,
15
+ size=(
16
+ 1024,
17
+ 1024,
18
+ ),
19
+ std=[
20
+ 58.395,
21
+ 57.12,
22
+ 57.375,
23
+ ],
24
+ type='SegDataPreProcessor')
25
+ data_root = 'data/rgb0/yolo-seg/'
26
+ dataset_type = 'SeaIceRGB0'
27
+ default_hooks = dict(
28
+ checkpoint=dict(by_epoch=False, interval=40000, type='CheckpointHook'),
29
+ logger=dict(interval=50, log_metric_by_epoch=False, type='LoggerHook'),
30
+ param_scheduler=dict(type='ParamSchedulerHook'),
31
+ sampler_seed=dict(type='DistSamplerSeedHook'),
32
+ timer=dict(type='IterTimerHook'),
33
+ visualization=dict(draw=True, type='SegVisualizationHook'))
34
+ default_scope = 'mmseg'
35
+ env_cfg = dict(
36
+ cudnn_benchmark=True,
37
+ dist_cfg=dict(backend='nccl'),
38
+ mp_cfg=dict(mp_start_method='fork', opencv_num_threads=0))
39
+ img_ratios = [
40
+ 0.5,
41
+ 0.75,
42
+ 1.0,
43
+ 1.25,
44
+ 1.5,
45
+ 1.75,
46
+ ]
47
+ launcher = 'none'
48
+ load_from = '/m/work/t410/T41011/work/gorada2/ENHANCE/SeaIce/mmseg/work_dir/seaicergb0/segformer_mit-b5_8xb1-160k_pre-cityscapes_seaicergb0-1024x1024/iter_80000.pth'
49
+ log_level = 'INFO'
50
+ log_processor = dict(by_epoch=False)
51
+ model = dict(
52
+ backbone=dict(
53
+ attn_drop_rate=0.0,
54
+ drop_path_rate=0.1,
55
+ drop_rate=0.0,
56
+ embed_dims=64,
57
+ in_channels=3,
58
+ init_cfg=dict(
59
+ checkpoint=
60
+ 'https://download.openmmlab.com/mmsegmentation/v0.5/pretrain/segformer/mit_b5_20220624-658746d9.pth',
61
+ type='Pretrained'),
62
+ mlp_ratio=4,
63
+ num_heads=[
64
+ 1,
65
+ 2,
66
+ 5,
67
+ 8,
68
+ ],
69
+ num_layers=[
70
+ 3,
71
+ 6,
72
+ 40,
73
+ 3,
74
+ ],
75
+ num_stages=4,
76
+ out_indices=(
77
+ 0,
78
+ 1,
79
+ 2,
80
+ 3,
81
+ ),
82
+ patch_sizes=[
83
+ 7,
84
+ 3,
85
+ 3,
86
+ 3,
87
+ ],
88
+ qkv_bias=True,
89
+ sr_ratios=[
90
+ 8,
91
+ 4,
92
+ 2,
93
+ 1,
94
+ ],
95
+ type='MixVisionTransformer'),
96
+ data_preprocessor=dict(
97
+ bgr_to_rgb=True,
98
+ mean=[
99
+ 123.675,
100
+ 116.28,
101
+ 103.53,
102
+ ],
103
+ pad_val=0,
104
+ seg_pad_val=255,
105
+ size=(
106
+ 1024,
107
+ 1024,
108
+ ),
109
+ std=[
110
+ 58.395,
111
+ 57.12,
112
+ 57.375,
113
+ ],
114
+ type='SegDataPreProcessor'),
115
+ decode_head=dict(
116
+ align_corners=False,
117
+ channels=256,
118
+ dropout_ratio=0.1,
119
+ in_channels=[
120
+ 64,
121
+ 128,
122
+ 320,
123
+ 512,
124
+ ],
125
+ in_index=[
126
+ 0,
127
+ 1,
128
+ 2,
129
+ 3,
130
+ ],
131
+ loss_decode=dict(
132
+ loss_weight=1.0, type='CrossEntropyLoss', use_sigmoid=False),
133
+ norm_cfg=dict(requires_grad=True, type='SyncBN'),
134
+ num_classes=19,
135
+ type='SegformerHead'),
136
+ pretrained=None,
137
+ test_cfg=dict(crop_size=(
138
+ 1024,
139
+ 1024,
140
+ ), mode='slide', stride=(
141
+ 768,
142
+ 768,
143
+ )),
144
+ train_cfg=dict(),
145
+ type='EncoderDecoder')
146
+ norm_cfg = dict(requires_grad=True, type='SyncBN')
147
+ optim_wrapper = dict(
148
+ optimizer=dict(
149
+ betas=(
150
+ 0.9,
151
+ 0.999,
152
+ ), lr=6e-05, type='AdamW', weight_decay=0.01),
153
+ paramwise_cfg=dict(
154
+ custom_keys=dict(
155
+ head=dict(lr_mult=10.0),
156
+ norm=dict(decay_mult=0.0),
157
+ pos_block=dict(decay_mult=0.0))),
158
+ type='OptimWrapper')
159
+ optimizer = dict(lr=0.01, momentum=0.9, type='SGD', weight_decay=0.0005)
160
+ param_scheduler = [
161
+ dict(
162
+ begin=0, by_epoch=False, end=1500, start_factor=1e-06,
163
+ type='LinearLR'),
164
+ dict(
165
+ begin=1500,
166
+ by_epoch=False,
167
+ end=160000,
168
+ eta_min=0.0,
169
+ power=1.0,
170
+ type='PolyLR'),
171
+ ]
172
+ resume = False
173
+ test_cfg = dict(type='TestLoop')
174
+ test_dataloader = dict(
175
+ batch_size=1,
176
+ dataset=dict(
177
+ data_prefix=dict(img_path='images/test', seg_map_path='labels/test'),
178
+ data_root='data/rgb0/yolo-seg/',
179
+ pipeline=[
180
+ dict(type='LoadImageFromFile'),
181
+ dict(keep_ratio=True, scale=(
182
+ 2048,
183
+ 1024,
184
+ ), type='Resize'),
185
+ dict(type='LoadAnnotations'),
186
+ dict(type='PackSegInputs'),
187
+ ],
188
+ type='SeaIceRGB0'),
189
+ num_workers=4,
190
+ persistent_workers=True,
191
+ sampler=dict(shuffle=False, type='DefaultSampler'))
192
+ test_evaluator = dict(
193
+ iou_metrics=[
194
+ 'mIoU',
195
+ ],
196
+ keep_results=True,
197
+ output_dir=
198
+ '/m/work/t410/T41011/work/gorada2/ENHANCE/SeaIce/mmseg/work_dir/seaicergb0/segformer_mit-b5_8xb1-160k_pre-cityscapes_seaicergb0-1024x1024/pred_result.pkl',
199
+ type='IoUMetric')
200
+ test_pipeline = [
201
+ dict(type='LoadImageFromFile'),
202
+ dict(keep_ratio=True, scale=(
203
+ 2048,
204
+ 1024,
205
+ ), type='Resize'),
206
+ dict(type='LoadAnnotations'),
207
+ dict(type='PackSegInputs'),
208
+ ]
209
+ train_cfg = dict(
210
+ max_iters=160000, type='IterBasedTrainLoop', val_interval=16000)
211
+ train_dataloader = dict(
212
+ batch_size=1,
213
+ dataset=dict(
214
+ data_prefix=dict(img_path='images/train', seg_map_path='labels/train'),
215
+ data_root='data/rgb0/yolo-seg/',
216
+ pipeline=[
217
+ dict(type='LoadImageFromFile'),
218
+ dict(type='LoadAnnotations'),
219
+ dict(
220
+ keep_ratio=True,
221
+ ratio_range=(
222
+ 0.5,
223
+ 2.0,
224
+ ),
225
+ scale=(
226
+ 2048,
227
+ 1024,
228
+ ),
229
+ type='RandomResize'),
230
+ dict(
231
+ cat_max_ratio=0.75, crop_size=(
232
+ 512,
233
+ 1024,
234
+ ), type='RandomCrop'),
235
+ dict(prob=0.5, type='RandomFlip'),
236
+ dict(type='PhotoMetricDistortion'),
237
+ dict(type='PackSegInputs'),
238
+ ],
239
+ type='SeaIceRGB0'),
240
+ num_workers=4,
241
+ persistent_workers=True,
242
+ sampler=dict(shuffle=True, type='InfiniteSampler'))
243
+ train_pipeline = [
244
+ dict(type='LoadImageFromFile'),
245
+ dict(type='LoadAnnotations'),
246
+ dict(
247
+ keep_ratio=True,
248
+ ratio_range=(
249
+ 0.5,
250
+ 2.0,
251
+ ),
252
+ scale=(
253
+ 2048,
254
+ 1024,
255
+ ),
256
+ type='RandomResize'),
257
+ dict(cat_max_ratio=0.75, crop_size=(
258
+ 512,
259
+ 1024,
260
+ ), type='RandomCrop'),
261
+ dict(prob=0.5, type='RandomFlip'),
262
+ dict(type='PhotoMetricDistortion'),
263
+ dict(type='PackSegInputs'),
264
+ ]
265
+ tta_model = dict(type='SegTTAModel')
266
+ tta_pipeline = [
267
+ dict(backend_args=None, type='LoadImageFromFile'),
268
+ dict(
269
+ transforms=[
270
+ [
271
+ dict(keep_ratio=True, scale_factor=0.5, type='Resize'),
272
+ dict(keep_ratio=True, scale_factor=0.75, type='Resize'),
273
+ dict(keep_ratio=True, scale_factor=1.0, type='Resize'),
274
+ dict(keep_ratio=True, scale_factor=1.25, type='Resize'),
275
+ dict(keep_ratio=True, scale_factor=1.5, type='Resize'),
276
+ dict(keep_ratio=True, scale_factor=1.75, type='Resize'),
277
+ ],
278
+ [
279
+ dict(direction='horizontal', prob=0.0, type='RandomFlip'),
280
+ dict(direction='horizontal', prob=1.0, type='RandomFlip'),
281
+ ],
282
+ [
283
+ dict(type='LoadAnnotations'),
284
+ ],
285
+ [
286
+ dict(type='PackSegInputs'),
287
+ ],
288
+ ],
289
+ type='TestTimeAug'),
290
+ ]
291
+ val_cfg = dict(type='ValLoop')
292
+ val_dataloader = dict(
293
+ batch_size=1,
294
+ dataset=dict(
295
+ data_prefix=dict(img_path='images/test', seg_map_path='labels/test'),
296
+ data_root='data/rgb0/yolo-seg/',
297
+ pipeline=[
298
+ dict(type='LoadImageFromFile'),
299
+ dict(keep_ratio=True, scale=(
300
+ 2048,
301
+ 1024,
302
+ ), type='Resize'),
303
+ dict(type='LoadAnnotations'),
304
+ dict(type='PackSegInputs'),
305
+ ],
306
+ type='SeaIceRGB0'),
307
+ num_workers=4,
308
+ persistent_workers=True,
309
+ sampler=dict(shuffle=False, type='DefaultSampler'))
310
+ val_evaluator = dict(
311
+ iou_metrics=[
312
+ 'mIoU',
313
+ ], type='IoUMetric')
314
+ vis_backends = [
315
+ dict(type='LocalVisBackend'),
316
+ ]
317
+ visualizer = dict(
318
+ name='visualizer',
319
+ save_dir=
320
+ '/work/t410/T41011/work/gorada2/ENHANCE/SeaIce/mmseg/work_dir/seaicergb0/segformer_mit-b5_8xb1-160k_pre-cityscapes_seaicergb0-1024x1024/show',
321
+ type='SegLocalVisualizer',
322
+ vis_backends=[
323
+ dict(type='LocalVisBackend'),
324
+ ])
325
+ work_dir = '/work/t410/T41011/work/gorada2/ENHANCE/SeaIce/mmseg/work_dir/seaicergb0/segformer_mit-b5_8xb1-160k_pre-cityscapes_seaicergb0-1024x1024'