MCPcopy Create free account
hub / github.com/DragonisCV/RAM / build_network

Function build_network

ram/archs/__init__.py:18–25  ·  view source on GitHub ↗
(opt,is_print=True)

Source from the content-addressed store, hash-verified

16
17
18def build_network(opt,is_print=True):
19 opt = deepcopy(opt)
20 network_type = opt.pop('type')
21 net = ARCH_REGISTRY.get(network_type)(**opt)
22 logger = get_root_logger()
23 if is_print:
24 logger.info(f'Network [{net.__class__.__name__}] is created.')
25 return net

Callers 7

_load_mask_generatorMethod · 0.90
_load_modelMethod · 0.90
__init__Method · 0.90
init_ema_modelMethod · 0.90
__init__Method · 0.90
__init__Method · 0.90
init_ema_modelMethod · 0.90

Calls 2

get_root_loggerFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected