MCPcopy Create free account
hub / github.com/UX-Decoder/Semantic-SAM / build_backbone

Function build_backbone

semantic_sam/backbone/build.py:6–11  ·  view source on GitHub ↗
(config, **kwargs)

Source from the content-addressed store, hash-verified

4from .backbone import *
5
6def build_backbone(config, **kwargs):
7 model_name = config['MODEL']['BACKBONE']['NAME']
8 if not is_model(model_name):
9 raise ValueError(f'Unkown model: {model_name}')
10
11 return model_entrypoints(model_name)(config, **kwargs)

Callers 1

from_configMethod · 0.85

Calls 2

is_modelFunction · 0.70
model_entrypointsFunction · 0.70

Tested by

no test coverage detected