diff --git a/mmseg/models/backbones/vit.py b/mmseg/models/backbones/vit.py index 3776857229..781c9c1cce 100644 --- a/mmseg/models/backbones/vit.py +++ b/mmseg/models/backbones/vit.py @@ -325,6 +325,8 @@ def init_weights(self, pretrained=None): checkpoint = _load_checkpoint(pretrained, logger=logger) if 'state_dict' in checkpoint: state_dict = checkpoint['state_dict'] + elif 'model' in checkpoint: + state_dict = checkpoint['model'] else: state_dict = checkpoint diff --git a/mmseg/models/necks/multilevel_neck.py b/mmseg/models/necks/multilevel_neck.py index 7e13813b16..941b82992e 100644 --- a/mmseg/models/necks/multilevel_neck.py +++ b/mmseg/models/necks/multilevel_neck.py @@ -54,7 +54,6 @@ def __init__(self, def forward(self, inputs): assert len(inputs) == len(self.in_channels) - print(inputs[0].shape) inputs = [ lateral_conv(inputs[i]) for i, lateral_conv in enumerate(self.lateral_convs)