MCPcopy
hub / github.com/NVlabs/SPADE / find_network_using_name

Function find_network_using_name

models/networks/__init__.py:15–23  ·  view source on GitHub ↗
(target_network_name, filename)

Source from the content-addressed store, hash-verified

13
14
15def find_network_using_name(target_network_name, filename):
16 target_class_name = target_network_name + filename
17 module_name = 'models.networks.' + filename
18 network = util.find_class_in_module(target_class_name, module_name)
19
20 assert issubclass(network, BaseNetwork), \
21 "Class %s should be a subclass of BaseNetwork" % network
22
23 return network
24
25
26def modify_commandline_options(parser, is_train):

Callers 4

define_GFunction · 0.85
define_DFunction · 0.85
define_EFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected