Skip to content

Input size of an image #1652

Answered by rwightman
bekhzod-olimov asked this question in Q&A
Discussion options

You must be logged in to vote

@bekhzod-olimov

>>> m = timm.create_model('vit_base_patch16_224')
>>> pprint(m.pretrained_cfg)
{'architecture': 'vit_base_patch16_224',
 'classifier': 'head',
 'crop_mode': 'center',
 'crop_pct': 0.9,
 'custom_load': False,
 'first_conv': 'patch_embed.proj',
 'fixed_input_size': True,
 'hf_hub_id': 'timm/vit_base_patch16_224.augreg2_in21k_ft_in1k',
 'input_size': (3, 224, 224),
 'interpolation': 'bicubic',
 'mean': (0.5, 0.5, 0.5),
 'num_classes': 1000,
 'pool_size': None,
 'std': (0.5, 0.5, 0.5),
 'tag': 'augreg2_in21k_ft_in1k',
 'url': ''}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by bekhzod-olimov
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1650 on February 02, 2023 15:31.