Skip to content

Commit 1d3ab17

Browse files
committed
Remove debug / staging code
1 parent aa4d06a commit 1d3ab17

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

timm/models/eva.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -717,11 +717,6 @@ def checkpoint_filter_fn(
717717
# fixed embedding no need to load buffer from checkpoint
718718
continue
719719

720-
# FIXME here while importing new weights, to remove
721-
# if k == 'cls_token':
722-
# print('DEBUG: cls token -> reg')
723-
# k = 'reg_token'
724-
725720
if 'patch_embed.proj.weight' in k:
726721
_, _, H, W = model.patch_embed.proj.weight.shape
727722
if v.shape[-1] != W or v.shape[-2] != H:
@@ -952,24 +947,20 @@ def _cfg(url='', **kwargs):
952947

953948
'vit_medium_patch16_rope_reg1_gap_256.sbb_in1k': _cfg(
954949
hf_hub_id='timm/',
955-
#file='vit_medium_gap1_rope-in1k-20230920-5.pth',
956950
input_size=(3, 256, 256), crop_pct=0.95,
957951
mean=(0.5, 0.5, 0.5), std=(0.5, 0.5, 0.5)
958952
),
959953
'vit_mediumd_patch16_rope_reg1_gap_256.sbb_in1k': _cfg(
960954
hf_hub_id='timm/',
961-
#file='vit_mediumd_gap1_rope-in1k-20230926-5.pth',
962955
input_size=(3, 256, 256), crop_pct=0.95,
963956
mean=(0.5, 0.5, 0.5), std=(0.5, 0.5, 0.5)
964957
),
965958
'vit_betwixt_patch16_rope_reg4_gap_256.sbb_in1k': _cfg(
966959
hf_hub_id='timm/',
967-
#file='vit_betwixt_gap4_rope-in1k-20231005-5.pth',
968960
input_size=(3, 256, 256), crop_pct=0.95,
969961
),
970962
'vit_base_patch16_rope_reg1_gap_256.sbb_in1k': _cfg(
971963
hf_hub_id='timm/',
972-
#file='vit_base_gap1_rope-in1k-20230930-5.pth',
973964
input_size=(3, 256, 256), crop_pct=0.95,
974965
mean=(0.5, 0.5, 0.5), std=(0.5, 0.5, 0.5)
975966
),

timm/models/vision_transformer.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1791,47 +1791,36 @@ def _cfg(url: str = '', **kwargs) -> Dict[str, Any]:
17911791
mean=OPENAI_CLIP_MEAN, std=OPENAI_CLIP_STD, num_classes=512),
17921792

17931793
'vit_wee_patch16_reg1_gap_256.sbb_in1k': _cfg(
1794-
#file='',
17951794
input_size=(3, 256, 256), crop_pct=0.95),
17961795
'vit_pwee_patch16_reg1_gap_256.sbb_in1k': _cfg(
1797-
#file='./vit_pwee-in1k-8.pth',
17981796
hf_hub_id='timm/',
17991797
input_size=(3, 256, 256), crop_pct=0.95),
18001798
'vit_little_patch16_reg4_gap_256.sbb_in1k': _cfg(
1801-
#file='vit_little_patch16-in1k-8a.pth',
18021799
hf_hub_id='timm/',
18031800
input_size=(3, 256, 256), crop_pct=0.95),
18041801
'vit_medium_patch16_reg1_gap_256.sbb_in1k': _cfg(
1805-
#file='vit_medium_gap1-in1k-20231118-8.pth',
18061802
hf_hub_id='timm/',
18071803
input_size=(3, 256, 256), crop_pct=0.95),
18081804
'vit_medium_patch16_reg4_gap_256.sbb_in1k': _cfg(
1809-
#file='vit_medium_gap4-in1k-20231115-8.pth',
18101805
hf_hub_id='timm/',
18111806
input_size=(3, 256, 256), crop_pct=0.95),
18121807
'vit_mediumd_patch16_reg4_gap_256.sbb_in12k_ft_in1k': _cfg(
1813-
#file='vit_mp_patch16_reg4-in1k-5a.pth',
18141808
hf_hub_id='timm/',
18151809
input_size=(3, 256, 256), crop_pct=0.95),
18161810
'vit_mediumd_patch16_reg4_gap_256.sbb_in12k': _cfg(
1817-
#file='vit_mp_patch16_reg4-in12k-8.pth',
18181811
hf_hub_id='timm/',
18191812
num_classes=11821,
18201813
input_size=(3, 256, 256), crop_pct=0.95),
18211814
'vit_betwixt_patch16_reg1_gap_256.sbb_in1k': _cfg(
1822-
#file='vit_betwixt_gap1-in1k-20231121-8.pth',
18231815
hf_hub_id='timm/',
18241816
input_size=(3, 256, 256), crop_pct=0.95),
18251817
'vit_betwixt_patch16_reg4_gap_256.sbb_in12k_ft_in1k': _cfg(
1826-
#file='vit_betwixt_patch16_reg4-ft-in1k-8b.pth',
18271818
hf_hub_id='timm/',
18281819
input_size=(3, 256, 256), crop_pct=0.95),
18291820
'vit_betwixt_patch16_reg4_gap_256.sbb_in1k': _cfg(
1830-
#file='vit_betwixt_gap4-in1k-20231106-8.pth',
18311821
hf_hub_id='timm/',
18321822
input_size=(3, 256, 256), crop_pct=0.95),
18331823
'vit_betwixt_patch16_reg4_gap_256.sbb_in12k': _cfg(
1834-
#file='vit_betwixt_gap4-in12k-8.pth',
18351824
hf_hub_id='timm/',
18361825
num_classes=11821,
18371826
input_size=(3, 256, 256), crop_pct=0.95),

0 commit comments

Comments
 (0)