mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
Fixing tests
This commit is contained in:
parent
644abf9588
commit
f920119f3b
@ -60,7 +60,7 @@ NON_STD_FILTERS = [
|
|||||||
'vit_*', 'tnt_*', 'pit_*', 'coat_*', 'cait_*', '*mixer_*', 'gmlp_*', 'resmlp_*', 'twins_*',
|
'vit_*', 'tnt_*', 'pit_*', 'coat_*', 'cait_*', '*mixer_*', 'gmlp_*', 'resmlp_*', 'twins_*',
|
||||||
'convit_*', 'levit*', 'visformer*', 'deit*', 'xcit_*', 'crossvit_*', 'beit*',
|
'convit_*', 'levit*', 'visformer*', 'deit*', 'xcit_*', 'crossvit_*', 'beit*',
|
||||||
'poolformer_*', 'volo_*', 'sequencer2d_*', 'mvitv2*', 'gcvit*', 'efficientformer*',
|
'poolformer_*', 'volo_*', 'sequencer2d_*', 'mvitv2*', 'gcvit*', 'efficientformer*',
|
||||||
'eva_*', 'flexivit*', 'eva02*', 'samvit_*', 'efficientvit_m*', 'tiny_vit_*', 'hiera_*', 'vitamin*'
|
'eva_*', 'flexivit*', 'eva02*', 'samvit_*', 'efficientvit_m*', 'tiny_vit_*', 'hiera_*', 'vitamin*', 'test_vit*',
|
||||||
]
|
]
|
||||||
NUM_NON_STD = len(NON_STD_FILTERS)
|
NUM_NON_STD = len(NON_STD_FILTERS)
|
||||||
|
|
||||||
|
@ -2285,7 +2285,7 @@ default_cfgs = generate_default_cfgs({
|
|||||||
hf_hub_filename='open_clip_pytorch_model.bin',
|
hf_hub_filename='open_clip_pytorch_model.bin',
|
||||||
num_classes=1024, mean=OPENAI_CLIP_MEAN, std=OPENAI_CLIP_STD,
|
num_classes=1024, mean=OPENAI_CLIP_MEAN, std=OPENAI_CLIP_STD,
|
||||||
fixed_input_size=True, input_size=(3, 224, 224), pool_size=(7, 7),
|
fixed_input_size=True, input_size=(3, 224, 224), pool_size=(7, 7),
|
||||||
classifier = 'head.proj',
|
classifier='head.proj',
|
||||||
),
|
),
|
||||||
'resnet101_clip.openai': _cfgr(
|
'resnet101_clip.openai': _cfgr(
|
||||||
hf_hub_id='timm/',
|
hf_hub_id='timm/',
|
||||||
@ -2299,21 +2299,21 @@ default_cfgs = generate_default_cfgs({
|
|||||||
hf_hub_filename='open_clip_pytorch_model.bin',
|
hf_hub_filename='open_clip_pytorch_model.bin',
|
||||||
num_classes=640, mean=OPENAI_CLIP_MEAN, std=OPENAI_CLIP_STD,
|
num_classes=640, mean=OPENAI_CLIP_MEAN, std=OPENAI_CLIP_STD,
|
||||||
fixed_input_size=True, input_size=(3, 288, 288), pool_size=(9, 9),
|
fixed_input_size=True, input_size=(3, 288, 288), pool_size=(9, 9),
|
||||||
classifier = 'head.proj',
|
classifier='head.proj',
|
||||||
),
|
),
|
||||||
'resnet50x16_clip.openai': _cfgr(
|
'resnet50x16_clip.openai': _cfgr(
|
||||||
hf_hub_id='timm/',
|
hf_hub_id='timm/',
|
||||||
hf_hub_filename='open_clip_pytorch_model.bin',
|
hf_hub_filename='open_clip_pytorch_model.bin',
|
||||||
num_classes=768, mean=OPENAI_CLIP_MEAN, std=OPENAI_CLIP_STD,
|
num_classes=768, mean=OPENAI_CLIP_MEAN, std=OPENAI_CLIP_STD,
|
||||||
fixed_input_size=True, input_size=(3, 384, 384), pool_size=(12, 12),
|
fixed_input_size=True, input_size=(3, 384, 384), pool_size=(12, 12),
|
||||||
classifier = 'head.proj',
|
classifier='head.proj',
|
||||||
),
|
),
|
||||||
'resnet50x64_clip.openai': _cfgr(
|
'resnet50x64_clip.openai': _cfgr(
|
||||||
hf_hub_id='timm/',
|
hf_hub_id='timm/',
|
||||||
hf_hub_filename='open_clip_pytorch_model.bin',
|
hf_hub_filename='open_clip_pytorch_model.bin',
|
||||||
num_classes=1024, mean=OPENAI_CLIP_MEAN, std=OPENAI_CLIP_STD,
|
num_classes=1024, mean=OPENAI_CLIP_MEAN, std=OPENAI_CLIP_STD,
|
||||||
fixed_input_size=True, input_size=(3, 448, 448), pool_size=(14, 14),
|
fixed_input_size=True, input_size=(3, 448, 448), pool_size=(14, 14),
|
||||||
classifier = 'head.proj',
|
classifier='head.proj',
|
||||||
),
|
),
|
||||||
|
|
||||||
# avg-pool w/ optional standard classifier head variants
|
# avg-pool w/ optional standard classifier head variants
|
||||||
@ -2354,6 +2354,7 @@ default_cfgs = generate_default_cfgs({
|
|||||||
|
|
||||||
'test_byobnet.untrained': _cfgr(
|
'test_byobnet.untrained': _cfgr(
|
||||||
# hf_hub_id='timm/',
|
# hf_hub_id='timm/',
|
||||||
|
first_conv='stem.conv',
|
||||||
input_size=(3, 160, 160), crop_pct=0.875, pool_size=(5, 5),
|
input_size=(3, 160, 160), crop_pct=0.875, pool_size=(5, 5),
|
||||||
),
|
),
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user