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

Function create_levit

timm/models/levit.py:550–562  ·  view source on GitHub ↗
(variant, pretrained=False, default_cfg=None, fuse=False, **kwargs)

Source from the content-addressed store, hash-verified

548
549
550def create_levit(variant, pretrained=False, default_cfg=None, fuse=False, **kwargs):
551 if kwargs.get('features_only', None):
552 raise RuntimeError('features_only not implemented for Vision Transformer models.')
553
554 model_cfg = dict(**model_cfgs[variant], **kwargs)
555 model = build_model_with_cfg(
556 Levit, variant, pretrained,
557 default_cfg=default_cfgs[variant],
558 pretrained_filter_fn=checkpoint_filter_fn,
559 **model_cfg)
560 #if fuse:
561 # utils.replace_batchnorm(model)
562 return model
563

Callers 5

levit_128sFunction · 0.85
levit_128Function · 0.85
levit_192Function · 0.85
levit_256Function · 0.85
levit_384Function · 0.85

Calls 2

build_model_with_cfgFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected