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

Function setup

tools/train_net.py:119–128  ·  view source on GitHub ↗

Create configs and perform basic setups.

(args)

Source from the content-addressed store, hash-verified

117
118
119def setup(args):
120 """
121 Create configs and perform basic setups.
122 """
123 cfg = get_cfg()
124 cfg.merge_from_file(args.config_file)
125 cfg.merge_from_list(args.opts)
126 cfg.freeze()
127 default_setup(cfg, args)
128 return cfg
129
130
131def 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