We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a39b16f + 26e9729 commit a06bf4dCopy full SHA for a06bf4d
mmseg/models/backbones/swin.py
@@ -13,7 +13,7 @@
13
from mmengine.model import BaseModule, ModuleList
14
from mmengine.model.weight_init import (constant_init, trunc_normal_,
15
trunc_normal_init)
16
-from mmengine.runner import CheckpointLoader, load_state_dict
+from mmengine.runner import CheckpointLoader
17
from mmengine.utils import to_2tuple
18
19
from mmseg.registry import MODELS
@@ -732,7 +732,7 @@ def init_weights(self):
732
nH2, L2).permute(1, 0).contiguous()
733
734
# load state_dict
735
- load_state_dict(self, state_dict, strict=False, logger=None)
+ self.load_state_dict(state_dict, strict=False)
736
737
def forward(self, x):
738
x, hw_shape = self.patch_embed(x)
0 commit comments