MCPcopy Index your code
hub / github.com/SooLab/CGFormer / get_parser

Function get_parser

test.py:21–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19
20
21def get_parser():
22 parser = argparse.ArgumentParser(
23 description='Pytorch Referring Expression Segmentation')
24 parser.add_argument('--config',
25 default='path to xxx.yaml',
26 type=str,
27 help='config file')
28 parser.add_argument('--opts',
29 default=None,
30 nargs=argparse.REMAINDER,
31 help='override some settings in the config.')
32 args = parser.parse_args()
33 assert args.config is not None
34 cfg = config.load_cfg_from_cfg_file(args.config)
35 if args.opts is not None:
36 cfg = config.merge_cfg_from_list(cfg, args.opts)
37 return cfg
38
39
40@logger.catch

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected