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

Function setup

tools/benchmark.py:34–41  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

32
33
34def setup(args):
35 cfg = get_cfg()
36 cfg.merge_from_file(args.config_file)
37 cfg.SOLVER.BASE_LR = 0.001 # Avoid NaNs. Not useful in this script anyway.
38 cfg.merge_from_list(args.opts)
39 cfg.freeze()
40 setup_logger(distributed_rank=comm.get_rank())
41 return cfg
42
43
44def benchmark_data(args):

Callers 3

benchmark_dataFunction · 0.70
benchmark_trainFunction · 0.70
benchmark_evalFunction · 0.70

Calls 4

get_cfgFunction · 0.90
setup_loggerFunction · 0.90
merge_from_fileMethod · 0.80
freezeMethod · 0.45

Tested by

no test coverage detected