(pretrained=False, pretrained_path=None, **kwargs)
| 821 | |
| 822 | @register_model |
| 823 | def 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…