forked from open-mmlab/mmsegmentation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature] Support Resnet strikes back (open-mmlab#1390)
* [Feature] Support Resnet strikes back * fix url * [Feature] Add multi machine `dist_train`. (open-mmlab#1383) * Add training startup documentation * fix * fix * fix * fix * fix * fix * fix * fix * fix * modify R-50b rsb Co-authored-by: FangjianLin <93248678+linfangjian01@users.noreply.github.com>
- Loading branch information
Showing
6 changed files
with
183 additions
and
19 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
_base_ = [ | ||
'../_base_/models/pspnet_r50-d8.py', '../_base_/datasets/cityscapes.py', | ||
'../_base_/default_runtime.py', '../_base_/schedules/schedule_80k.py' | ||
] | ||
model = dict(backbone=dict(dilations=(1, 1, 2, 4), strides=(1, 2, 2, 2))) |
25 changes: 25 additions & 0 deletions
25
configs/pspnet/pspnet_r50-d32_rsb-pretrain_512x1024_adamw_80k_cityscapes.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
_base_ = [ | ||
'../_base_/models/pspnet_r50-d8.py', '../_base_/datasets/cityscapes.py', | ||
'../_base_/default_runtime.py', '../_base_/schedules/schedule_80k.py' | ||
] | ||
checkpoint = 'https://download.openmmlab.com/mmclassification/v0/resnet/resnet50_8xb256-rsb-a1-600e_in1k_20211228-20e21305.pth' # noqa | ||
model = dict( | ||
pretrained=None, | ||
backbone=dict( | ||
type='ResNet', | ||
init_cfg=dict( | ||
type='Pretrained', prefix='backbone.', checkpoint=checkpoint), | ||
dilations=(1, 1, 2, 4), | ||
strides=(1, 2, 2, 2))) | ||
|
||
optimizer = dict(_delete_=True, type='AdamW', lr=0.0005, weight_decay=0.05) | ||
optimizer_config = dict(grad_clip=dict(max_norm=1, norm_type=2)) | ||
# learning policy | ||
lr_config = dict( | ||
_delete_=True, | ||
policy='step', | ||
warmup='linear', | ||
warmup_iters=1000, | ||
warmup_ratio=0.001, | ||
step=[60000, 72000], | ||
by_epoch=False) |
23 changes: 23 additions & 0 deletions
23
configs/pspnet/pspnet_r50-d8_rsb-pretrain_512x1024_adamw_80k_cityscapes.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
_base_ = [ | ||
'../_base_/models/pspnet_r50-d8.py', '../_base_/datasets/cityscapes.py', | ||
'../_base_/default_runtime.py', '../_base_/schedules/schedule_80k.py' | ||
] | ||
checkpoint = 'https://download.openmmlab.com/mmclassification/v0/resnet/resnet50_8xb256-rsb-a1-600e_in1k_20211228-20e21305.pth' # noqa | ||
model = dict( | ||
pretrained=None, | ||
backbone=dict( | ||
type='ResNet', | ||
init_cfg=dict( | ||
type='Pretrained', prefix='backbone.', checkpoint=checkpoint))) | ||
|
||
optimizer = dict(_delete_=True, type='AdamW', lr=0.0005, weight_decay=0.05) | ||
optimizer_config = dict(grad_clip=dict(max_norm=1, norm_type=2)) | ||
# learning policy | ||
lr_config = dict( | ||
_delete_=True, | ||
policy='step', | ||
warmup='linear', | ||
warmup_iters=1000, | ||
warmup_ratio=0.001, | ||
step=[60000, 72000], | ||
by_epoch=False) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
_base_ = [ | ||
'../_base_/models/pspnet_r50-d8.py', '../_base_/datasets/cityscapes.py', | ||
'../_base_/default_runtime.py', '../_base_/schedules/schedule_80k.py' | ||
] | ||
model = dict( | ||
pretrained='torchvision://resnet50', | ||
backbone=dict(type='ResNet', dilations=(1, 1, 2, 4), strides=(1, 2, 2, 2))) |