MCPcopy Create free account
hub / github.com/QWTforGithub/T2LDM / _create_pit

Function _create_pit

timm/models/pit.py:259–268  ·  view source on GitHub ↗
(variant, pretrained=False, **kwargs)

Source from the content-addressed store, hash-verified

257
258
259def _create_pit(variant, pretrained=False, **kwargs):
260 if kwargs.get('features_only', None):
261 raise RuntimeError('features_only not implemented for Vision Transformer models.')
262
263 model = build_model_with_cfg(
264 PoolingVisionTransformer, variant, pretrained,
265 default_cfg=default_cfgs[variant],
266 pretrained_filter_fn=checkpoint_filter_fn,
267 **kwargs)
268 return model
269
270
271@register_model

Callers 8

pit_b_224Function · 0.85
pit_s_224Function · 0.85
pit_xs_224Function · 0.85
pit_ti_224Function · 0.85
pit_b_distilled_224Function · 0.85
pit_s_distilled_224Function · 0.85
pit_xs_distilled_224Function · 0.85
pit_ti_distilled_224Function · 0.85

Calls 2

build_model_with_cfgFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected