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

Function build_decoder

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

Source from the content-addressed store, hash-verified

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

Callers 1

from_configMethod · 0.85

Calls 2

is_modelFunction · 0.70
model_entrypointsFunction · 0.70

Tested by

no test coverage detected