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

Function register_backbone

semantic_sam/backbone/registry.py:4–8  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

2
3
4def register_backbone(fn):
5 module_name_split = fn.__module__.split('.')
6 model_name = module_name_split[-1]
7 _model_entrypoints[model_name] = fn
8 return fn
9
10def model_entrypoints(model_name):
11 return _model_entrypoints[model_name]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected