MCPcopy Create free account
hub / github.com/Topdu/OpenOCR / parse_args

Method parse_args

tools/engine/config.py:21–25  ·  view source on GitHub ↗
(self, argv=None)

Source from the content-addressed store, hash-verified

19 self.add_argument('--local_rank')
20
21 def parse_args(self, argv=None):
22 args = super(ArgsParser, self).parse_args(argv)
23 assert args.config is not None, 'Please specify --config=configure_file_path.'
24 args.opt = self._parse_opt(args.opt)
25 return args
26
27 def _parse_opt(self, opts):
28 config = {}

Callers 3

gen_label.pyFile · 0.45
parse_argsFunction · 0.45

Calls 1

_parse_optMethod · 0.95

Tested by

no test coverage detected