Skip to content

Commit 2b9840c

Browse files
committed
Update PE vit models to use native timm weights instead of remapping
1 parent 290aa41 commit 2b9840c

File tree

1 file changed

+24
-23
lines changed

1 file changed

+24
-23
lines changed

timm/models/eva.py

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,44 +1245,45 @@ def _pe_cfg(url: str = '', **kwargs) -> Dict[str, Any]:
12451245
),
12461246

12471247
# Perception Encoder weights
1248-
'vit_pe_core_base_patch16_224': _pe_cfg(
1249-
#hf_hub_id='facebook/pe_core_base_patch16_224_timm',
1250-
hf_hub_id='facebook/PE-Core-B16-224',
1251-
hf_hub_filename='PE-Core-B16-224.pt',
1248+
'vit_pe_core_base_patch16_224.fb': _pe_cfg(
1249+
hf_hub_id='timm/',
1250+
#hf_hub_id='facebook/PE-Core-B16-224',
1251+
#hf_hub_filename='PE-Core-B16-224.pt',
12521252
input_size=(3, 224, 224),
12531253
num_classes=1024, # output proj dim
12541254
),
1255-
'vit_pe_core_large_patch14_336': _pe_cfg(
1256-
hf_hub_id='facebook/PE-Core-L14-336',
1257-
hf_hub_filename='PE-Core-L14-336.pt',
1255+
'vit_pe_core_large_patch14_336.fb': _pe_cfg(
1256+
hf_hub_id='timm/',
1257+
#hf_hub_id='facebook/PE-Core-L14-336',
1258+
#hf_hub_filename='PE-Core-L14-336.pt',
12581259
input_size=(3, 336, 336),
12591260
num_classes=1024, # output proj dim
12601261
),
1261-
'vit_pe_core_gigantic_patch14_448': _pe_cfg(
1262-
#hf_hub_id='timm/',
1263-
hf_hub_id='facebook/PE-Core-G14-448',
1264-
hf_hub_filename='PE-Core-G14-448.pt',
1262+
'vit_pe_core_gigantic_patch14_448.fb': _pe_cfg(
1263+
hf_hub_id='timm/',
1264+
#hf_hub_id='facebook/PE-Core-G14-448',
1265+
#hf_hub_filename='PE-Core-G14-448.pt',
12651266
input_size=(3, 448, 448),
12661267
num_classes=1280, # output proj dim
12671268
),
1268-
'vit_pe_lang_large_patch14_448': _pe_cfg(
1269-
#hf_hub_id='timm/',
1270-
hf_hub_id='facebook/PE-Lang-L14-448',
1271-
hf_hub_filename='PE-Lang-L14-448.pt',
1269+
'vit_pe_lang_large_patch14_448.fb': _pe_cfg(
1270+
hf_hub_id='timm/',
1271+
#hf_hub_id='facebook/PE-Lang-L14-448',
1272+
#hf_hub_filename='PE-Lang-L14-448.pt',
12721273
input_size=(3, 448, 448),
12731274
num_classes=0,
12741275
),
1275-
'vit_pe_lang_gigantic_patch14_448': _pe_cfg(
1276-
#hf_hub_id='timm/',
1277-
hf_hub_id='facebook/PE-Lang-G14-448',
1278-
hf_hub_filename='PE-Lang-G14-448.pt',
1276+
'vit_pe_lang_gigantic_patch14_448.fb': _pe_cfg(
1277+
hf_hub_id='timm/',
1278+
#hf_hub_id='facebook/PE-Lang-G14-448',
1279+
#hf_hub_filename='PE-Lang-G14-448.pt',
12791280
input_size=(3, 448, 448),
12801281
num_classes=0,
12811282
),
1282-
'vit_pe_spatial_gigantic_patch14_448': _pe_cfg(
1283-
#hf_hub_id='timm/',
1284-
hf_hub_id='facebook/PE-Spatial-G14-448',
1285-
hf_hub_filename='PE-Spatial-G14-448.pt',
1283+
'vit_pe_spatial_gigantic_patch14_448.fb': _pe_cfg(
1284+
hf_hub_id='timm/',
1285+
#hf_hub_id='facebook/PE-Spatial-G14-448',
1286+
#hf_hub_filename='PE-Spatial-G14-448.pt',
12861287
input_size=(3, 448, 448),
12871288
num_classes=0,
12881289
),

0 commit comments

Comments
 (0)