Skip to content

Commit

Permalink
Update dependencyvit.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fffffgggg54 committed Dec 15, 2024
1 parent a5b0f0d commit 8c26f38
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions timm/models/dependencyvit.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,13 @@ def dependencyvit_tiny_patch16_224(pretrained: bool = False, **kwargs) -> Depend
model = _create_dependencyvit('dependencyvit_tiny_patch16_224', pretrained=pretrained, **dict(model_args, **kwargs))
return model

@register_model
def dependencyvit_tiny_cpe5_patch16_224(pretrained: bool = False, **kwargs) -> DependencyViT:
model_args = dict(patch_size=16, embed_dim=192, depth=12, num_heads=12, cpe_depth=5)
model = _create_dependencyvit('dependencyvit_tiny_cpe5_patch16_224', pretrained=pretrained, **dict(model_args, **kwargs))
return model


@register_model
def dependencyvit_small_patch16_224(pretrained: bool = False, **kwargs) -> DependencyViT:
model_args = dict(patch_size=16, embed_dim=384, depth=12, num_heads=12)
Expand Down

0 comments on commit 8c26f38

Please sign in to comment.