MCPcopy Create free account
hub / github.com/PeizeSun/SparseR-CNN / setup

Function setup

tools/plain_train_net.py:192–203  ·  view source on GitHub ↗

Create configs and perform basic setups.

(args)

Source from the content-addressed store, hash-verified

190
191
192def setup(args):
193 """
194 Create configs and perform basic setups.
195 """
196 cfg = get_cfg()
197 cfg.merge_from_file(args.config_file)
198 cfg.merge_from_list(args.opts)
199 cfg.freeze()
200 default_setup(
201 cfg, args
202 ) # if you don't like any of the default setup, write your own setup code
203 return cfg
204
205
206def main(args):

Callers 1

mainFunction · 0.70

Calls 4

get_cfgFunction · 0.90
default_setupFunction · 0.90
merge_from_fileMethod · 0.80
freezeMethod · 0.45

Tested by

no test coverage detected