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

Function setup

projects/SparseRCNN/train_net.py:119–129  ·  view source on GitHub ↗

Create configs and perform basic setups.

(args)

Source from the content-addressed store, hash-verified

117 return res
118
119def setup(args):
120 """
121 Create configs and perform basic setups.
122 """
123 cfg = get_cfg()
124 add_sparsercnn_config(cfg)
125 cfg.merge_from_file(args.config_file)
126 cfg.merge_from_list(args.opts)
127 cfg.freeze()
128 default_setup(cfg, args)
129 return cfg
130
131
132def main(args):

Callers 1

mainFunction · 0.70

Calls 5

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

Tested by

no test coverage detected