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

Function _create_hgnet

timm/models/hgnet.py:733–742  ·  view source on GitHub ↗
(variant, pretrained=False, **kwargs)

Source from the content-addressed store, hash-verified

731
732
733def _create_hgnet(variant, pretrained=False, **kwargs):
734 out_indices = kwargs.pop('out_indices', (0, 1, 2, 3))
735 return build_model_with_cfg(
736 HighPerfGpuNet,
737 variant,
738 pretrained,
739 model_cfg=model_cfgs[variant],
740 feature_cfg=dict(flatten_sequential=True, out_indices=out_indices),
741 **kwargs,
742 )
743
744
745def _cfg(url='', **kwargs):

Callers 10

hgnet_tinyFunction · 0.85
hgnet_smallFunction · 0.85
hgnet_baseFunction · 0.85
hgnetv2_b0Function · 0.85
hgnetv2_b1Function · 0.85
hgnetv2_b2Function · 0.85
hgnetv2_b3Function · 0.85
hgnetv2_b4Function · 0.85
hgnetv2_b5Function · 0.85
hgnetv2_b6Function · 0.85

Calls 1

build_model_with_cfgFunction · 0.85

Tested by

no test coverage detected