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

Function build_model

semantic_sam/architectures/build.py:4–10  ·  view source on GitHub ↗
(config, **kwargs)

Source from the content-addressed store, hash-verified

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

Callers 4

build_modelMethod · 0.90
demo.pyFile · 0.90
build_semantic_samFunction · 0.90

Calls 2

is_modelFunction · 0.70
model_entrypointsFunction · 0.70

Tested by

no test coverage detected