Skip to content

Commit 3c46320

Browse files
committed
Prepping for final MobileCLIP weight locations
1 parent 60d3573 commit 3c46320

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

timm/models/fastvit.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,22 +1391,22 @@ def _cfg(url="", **kwargs):
13911391
),
13921392

13931393
"fastvit_mci0.apple_mclip": _cfg(
1394-
#hf_hub_id='timm/',
1395-
url='https://docs-assets.developer.apple.com/ml-research/datasets/mobileclip/mobileclip_s0.pt',
1394+
hf_hub_id='reach-vb/mobileclip_s0_timm',
1395+
#url='https://docs-assets.developer.apple.com/ml-research/datasets/mobileclip/mobileclip_s0.pt',
13961396
crop_pct=0.95,
13971397
num_classes=512, # CLIP proj dim
13981398
mean=(0., 0., 0.), std=(1., 1., 1.)
13991399
),
14001400
"fastvit_mci1.apple_mclip": _cfg(
1401-
# hf_hub_id='timm/',
1402-
url='https://docs-assets.developer.apple.com/ml-research/datasets/mobileclip/mobileclip_s1.pt',
1401+
hf_hub_id='reach-vb/mobileclip_s1_timm',
1402+
#url='https://docs-assets.developer.apple.com/ml-research/datasets/mobileclip/mobileclip_s1.pt',
14031403
crop_pct=0.95,
14041404
num_classes=512, # CLIP proj dim
14051405
mean=(0., 0., 0.), std=(1., 1., 1.)
14061406
),
14071407
"fastvit_mci2.apple_mclip": _cfg(
1408-
# hf_hub_id='timm/',
1409-
url='https://docs-assets.developer.apple.com/ml-research/datasets/mobileclip/mobileclip_s2.pt',
1408+
hf_hub_id='reach-vb/mobileclip_s2_timm',
1409+
#url='https://docs-assets.developer.apple.com/ml-research/datasets/mobileclip/mobileclip_s2.pt',
14101410
crop_pct=0.95,
14111411
num_classes=512, # CLIP proj dim
14121412
mean=(0., 0., 0.), std=(1., 1., 1.)

timm/models/vision_transformer_hybrid.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,12 +387,14 @@ def _cfg(url='', **kwargs):
387387
mean=IMAGENET_DEFAULT_MEAN, std=IMAGENET_DEFAULT_STD, first_conv='patch_embed.backbone.conv1.0'),
388388

389389
'vit_base_mci_224.apple_mclip': _cfg(
390-
url='https://docs-assets.developer.apple.com/ml-research/datasets/mobileclip/mobileclip_b.pt',
390+
hf_hub_id='reach-vb/mobileclip_B_timm',
391+
#url='https://docs-assets.developer.apple.com/ml-research/datasets/mobileclip/mobileclip_b.pt',
391392
num_classes=512,
392393
mean=(0., 0., 0.), std=(1., 1., 1.), first_conv='patch_embed.backbone.0.conv',
393394
),
394395
'vit_base_mci_224.apple_mclip_lt': _cfg(
395-
url='https://docs-assets.developer.apple.com/ml-research/datasets/mobileclip/mobileclip_blt.pt',
396+
hf_hub_id='reach-vb/mobileclip_B_LT_timm',
397+
#url='https://docs-assets.developer.apple.com/ml-research/datasets/mobileclip/mobileclip_blt.pt',
396398
num_classes=512,
397399
mean=(0., 0., 0.), std=(1., 1., 1.), first_conv='patch_embed.backbone.0.conv',
398400
),

0 commit comments

Comments
 (0)