MCPcopy Create free account
hub / github.com/UX-Decoder/Semantic-SAM / setup

Function setup

train_net.py:380–390  ·  view source on GitHub ↗

Create configs and perform basic setups.

(args)

Source from the content-addressed store, hash-verified

378 model = model.train().cuda()
379
380def setup(args):
381 """
382 Create configs and perform basic setups.
383 """
384 cfg = get_cfg()
385 cfg = LazyConfig.load(args.config_file)
386 cfg = LazyConfig.apply_overrides(cfg, args.opts)
387 # cfg.freeze()
388 default_setup(cfg, args)
389 setup_logger(output=cfg.OUTPUT_DIR, distributed_rank=comm.get_rank(), name="maskdino")
390 return cfg
391
392
393def main(args=None):

Callers 2

mainFunction · 0.85
setup.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected