MCPcopy Create free account
hub / github.com/lingeringlight/START / vmamba_tiny

Function vmamba_tiny

models/vmamba.py:823–834  ·  view source on GitHub ↗
(pretrained=False, pretrained_path=None, **kwargs)

Source from the content-addressed store, hash-verified

821
822@register_model
823def vmamba_tiny(pretrained=False, pretrained_path=None, **kwargs):
824 model = VSSM(
825 patch_size=4, in_chans=3, depths=[2, 2, 9, 2], dims=[96, 192, 384, 768],
826 d_state=16, drop_rate=0.,
827 attn_drop_rate=0., drop_path_rate=0.2,
828 norm_layer=nn.LayerNorm, patch_norm=True,
829 use_checkpoint=False, **kwargs)
830 # model.default_cfg = _cfg()
831 if pretrained:
832 checkpoint = torch.load(pretrained_path, map_location="cpu", check_hash=True)
833 model.load_state_dict(checkpoint["model"], strict=False)
834 return model
835
836
837@register_model

Callers

nothing calls this directly

Calls 1

VSSMClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…