waqarsqureshi commited on
Commit
7756603
·
1 Parent(s): 867bd72

segmentation

Browse files
20220705_145854.log ADDED
The diff for this file is too large to render. See raw diff
 
20220705_145854.log.json ADDED
The diff for this file is too large to render. See raw diff
 
deeplabv3plus_r50b-d8_512x512_160k_roadsurvey.py ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ norm_cfg = dict(type='SyncBN', requires_grad=True)
2
+ model = dict(
3
+ type='EncoderDecoder',
4
+ pretrained='torchvision://resnet50',
5
+ backbone=dict(
6
+ type='ResNet',
7
+ depth=50,
8
+ num_stages=4,
9
+ out_indices=(0, 1, 2, 3),
10
+ dilations=(1, 1, 2, 4),
11
+ strides=(1, 2, 1, 1),
12
+ norm_cfg=dict(type='SyncBN', requires_grad=True),
13
+ norm_eval=False,
14
+ style='pytorch',
15
+ contract_dilation=True),
16
+ decode_head=dict(
17
+ type='DepthwiseSeparableASPPHead',
18
+ in_channels=2048,
19
+ in_index=3,
20
+ channels=512,
21
+ dilations=(1, 12, 24, 36),
22
+ c1_in_channels=256,
23
+ c1_channels=48,
24
+ dropout_ratio=0.1,
25
+ num_classes=7,
26
+ norm_cfg=dict(type='SyncBN', requires_grad=True),
27
+ align_corners=False,
28
+ loss_decode=dict(
29
+ type='CrossEntropyLoss', use_sigmoid=False, loss_weight=1.0)),
30
+ auxiliary_head=dict(
31
+ type='FCNHead',
32
+ in_channels=1024,
33
+ in_index=2,
34
+ channels=256,
35
+ num_convs=1,
36
+ concat_input=False,
37
+ dropout_ratio=0.1,
38
+ num_classes=7,
39
+ norm_cfg=dict(type='SyncBN', requires_grad=True),
40
+ align_corners=False,
41
+ loss_decode=dict(
42
+ type='CrossEntropyLoss', use_sigmoid=False, loss_weight=0.4)),
43
+ train_cfg=dict(),
44
+ test_cfg=dict(mode='whole'))
45
+ dataset_type = 'RoadSurveyDataset'
46
+ data_root = 'data/roadsurvey/'
47
+ img_norm_cfg = dict(
48
+ mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True)
49
+ crop_size = (512, 512)
50
+ img_scale = (720, 576)
51
+ train_pipeline = [
52
+ dict(type='LoadImageFromFile'),
53
+ dict(type='LoadAnnotations'),
54
+ dict(type='Resize', img_scale=(720, 576), ratio_range=(0.8, 1.25)),
55
+ dict(type='RandomCrop', crop_size=(512, 512), cat_max_ratio=0.75),
56
+ dict(type='RandomFlip', flip_ratio=0.5),
57
+ dict(type='PhotoMetricDistortion'),
58
+ dict(
59
+ type='Normalize',
60
+ mean=[123.675, 116.28, 103.53],
61
+ std=[58.395, 57.12, 57.375],
62
+ to_rgb=True),
63
+ dict(type='Pad', size=(512, 512), pad_val=0, seg_pad_val=255),
64
+ dict(type='DefaultFormatBundle'),
65
+ dict(type='Collect', keys=['img', 'gt_semantic_seg'])
66
+ ]
67
+ test_pipeline = [
68
+ dict(type='LoadImageFromFile'),
69
+ dict(
70
+ type='MultiScaleFlipAug',
71
+ img_scale=(720, 576),
72
+ flip=False,
73
+ transforms=[
74
+ dict(type='Resize', keep_ratio=True),
75
+ dict(type='RandomFlip'),
76
+ dict(
77
+ type='Normalize',
78
+ mean=[123.675, 116.28, 103.53],
79
+ std=[58.395, 57.12, 57.375],
80
+ to_rgb=True),
81
+ dict(type='ImageToTensor', keys=['img']),
82
+ dict(type='Collect', keys=['img'])
83
+ ])
84
+ ]
85
+ data = dict(
86
+ samples_per_gpu=2,
87
+ workers_per_gpu=2,
88
+ train=dict(
89
+ type='RoadSurveyDataset',
90
+ data_root='data/roadsurvey/',
91
+ img_dir='leftImg8bit/train',
92
+ ann_dir='gtFine/train',
93
+ pipeline=[
94
+ dict(type='LoadImageFromFile'),
95
+ dict(type='LoadAnnotations'),
96
+ dict(type='Resize', img_scale=(720, 576), ratio_range=(0.8, 1.25)),
97
+ dict(type='RandomCrop', crop_size=(512, 512), cat_max_ratio=0.75),
98
+ dict(type='RandomFlip', flip_ratio=0.5),
99
+ dict(type='PhotoMetricDistortion'),
100
+ dict(
101
+ type='Normalize',
102
+ mean=[123.675, 116.28, 103.53],
103
+ std=[58.395, 57.12, 57.375],
104
+ to_rgb=True),
105
+ dict(type='Pad', size=(512, 512), pad_val=0, seg_pad_val=255),
106
+ dict(type='DefaultFormatBundle'),
107
+ dict(type='Collect', keys=['img', 'gt_semantic_seg'])
108
+ ]),
109
+ val=dict(
110
+ type='RoadSurveyDataset',
111
+ data_root='data/roadsurvey/',
112
+ img_dir='leftImg8bit/val',
113
+ ann_dir='gtFine/val',
114
+ pipeline=[
115
+ dict(type='LoadImageFromFile'),
116
+ dict(
117
+ type='MultiScaleFlipAug',
118
+ img_scale=(720, 576),
119
+ flip=False,
120
+ transforms=[
121
+ dict(type='Resize', keep_ratio=True),
122
+ dict(type='RandomFlip'),
123
+ dict(
124
+ type='Normalize',
125
+ mean=[123.675, 116.28, 103.53],
126
+ std=[58.395, 57.12, 57.375],
127
+ to_rgb=True),
128
+ dict(type='ImageToTensor', keys=['img']),
129
+ dict(type='Collect', keys=['img'])
130
+ ])
131
+ ]),
132
+ test=dict(
133
+ type='RoadSurveyDataset',
134
+ data_root='/home/pms/mmsegmentation/data/roadsurvey',
135
+ img_dir='test',
136
+ ann_dir='test',
137
+ pipeline=[
138
+ dict(type='LoadImageFromFile'),
139
+ dict(
140
+ type='MultiScaleFlipAug',
141
+ img_scale=(720, 576),
142
+ flip=False,
143
+ transforms=[
144
+ dict(type='Resize', keep_ratio=True),
145
+ dict(type='RandomFlip'),
146
+ dict(
147
+ type='Normalize',
148
+ mean=[123.675, 116.28, 103.53],
149
+ std=[58.395, 57.12, 57.375],
150
+ to_rgb=True),
151
+ dict(type='ImageToTensor', keys=['img']),
152
+ dict(type='Collect', keys=['img'])
153
+ ])
154
+ ]))
155
+ log_config = dict(
156
+ interval=50, hooks=[dict(type='TextLoggerHook', by_epoch=False)])
157
+ dist_params = dict(backend='nccl')
158
+ log_level = 'INFO'
159
+ load_from = None
160
+ resume_from = None
161
+ workflow = [('train', 1)]
162
+ cudnn_benchmark = False
163
+ optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0005)
164
+ optimizer_config = dict()
165
+ lr_config = dict(policy='poly', power=0.9, min_lr=0.0001, by_epoch=False)
166
+ runner = dict(type='IterBasedRunner', max_iters=160000)
167
+ checkpoint_config = dict(by_epoch=False, interval=16000)
168
+ evaluation = dict(interval=16000, metric='mIoU', pre_eval=True)
169
+ work_dir = './work_dirs/deeplabv3plus_r50b-d8_512x512_160k_roadsurvey'
170
+ gpu_ids = [0]
171
+ auto_resume = False
iter_160000.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dc178debfd7e7d59289931799528d68a7191915093c2c94a1ef71cd93508a2d3
3
+ size 349006825
latest.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dc178debfd7e7d59289931799528d68a7191915093c2c94a1ef71cd93508a2d3
3
+ size 349006825