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

Function build_semantic_sam_head

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

Source from the content-addressed store, hash-verified

4
5
6def build_semantic_sam_head(config, *args, **kwargs):
7 model_name = config['MODEL']['HEAD']
8 if not is_model(model_name):
9 raise ValueError(f'Unkown model: {model_name}')
10
11 body = model_entrypoints(model_name)(config, *args, **kwargs)
12 return body

Callers 1

from_configMethod · 0.85

Calls 2

is_modelFunction · 0.70
model_entrypointsFunction · 0.70

Tested by

no test coverage detected