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

Function build_language_encoder

semantic_sam/language/build.py:5–13  ·  view source on GitHub ↗
(config, **kwargs)

Source from the content-addressed store, hash-verified

3
4
5def build_language_encoder(config, **kwargs):
6 model_name = config['MODEL']['TEXT']['ARCH']
7 if model_name=='noencoder':
8 return None
9
10 if not is_model(model_name):
11 raise ValueError(f'Unkown model: {model_name}')
12
13 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