13 lines
560 B
Python
13 lines
560 B
Python
_base_ = [
|
|
'./swin-tiny-patch4-window7-in1k-pre_upernet_8xb2-160k_ade20k-512x512.py'
|
|
]
|
|
checkpoint_file = 'https://download.openmmlab.com/mmsegmentation/v0.5/pretrain/swin/swin_base_patch4_window7_224_20220317-e9b98025.pth' # noqa
|
|
model = dict(
|
|
backbone=dict(
|
|
init_cfg=dict(type='Pretrained', checkpoint=checkpoint_file),
|
|
embed_dims=128,
|
|
depths=[2, 2, 18, 2],
|
|
num_heads=[4, 8, 16, 32]),
|
|
decode_head=dict(in_channels=[128, 256, 512, 1024], num_classes=150),
|
|
auxiliary_head=dict(in_channels=512, num_classes=150))
|