MCPcopy
hub / github.com/huggingface/pytorch-image-models / _cfg

Function _cfg

timm/models/vision_transformer.py:1794–1809  ·  view source on GitHub ↗
(url: str = '', **kwargs)

Source from the content-addressed store, hash-verified

1792
1793
1794def _cfg(url: str = '', **kwargs) -> Dict[str, Any]:
1795 return {
1796 'url': url,
1797 'num_classes': 1000,
1798 'input_size': (3, 224, 224),
1799 'pool_size': None,
1800 'crop_pct': 0.9,
1801 'interpolation': 'bicubic',
1802 'fixed_input_size': True,
1803 'mean': IMAGENET_INCEPTION_MEAN,
1804 'std': IMAGENET_INCEPTION_STD,
1805 'first_conv': 'patch_embed.proj',
1806 'classifier': 'head',
1807 'license': 'apache-2.0',
1808 **kwargs,
1809 }
1810
1811default_cfgs = {
1812

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected