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

Function build_encoder

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

Source from the content-addressed store, hash-verified

5from .encoder_deform import *
6
7def build_encoder(config, *args, **kwargs):
8 model_name = config['MODEL']['ENCODER']['NAME']
9
10 if not is_model(model_name):
11 raise ValueError(f'Unkown model: {model_name}')
12
13 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