Skip to content

Commit aa33307

Browse files
committed
Tweak so150m2 def
1 parent 8d81fdf commit aa33307

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

timm/models/vision_transformer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3510,7 +3510,7 @@ def vit_so150m_patch16_reg4_gap_384(pretrained: bool = False, **kwargs) -> Visio
35103510
def vit_so150m2_patch16_reg1_gap_256(pretrained: bool = False, **kwargs) -> VisionTransformer:
35113511
""" SO150M v2 (shape optimized, but diff than paper def, optimized for GPU) """
35123512
model_args = dict(
3513-
patch_size=16, embed_dim=896, depth=20, num_heads=14, mlp_ratio=2.429, init_values=1e-5,
3513+
patch_size=16, embed_dim=832, depth=21, num_heads=13, mlp_ratio=34/13, init_values=1e-5,
35143514
qkv_bias=False, class_token=False, reg_tokens=1, global_pool='avg',
35153515
)
35163516
model = _create_vision_transformer(

0 commit comments

Comments
 (0)