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

Function parse_args

tools/train_rec.py:14–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13
14def parse_args():
15 parser = ArgsParser()
16 parser.add_argument(
17 '--eval',
18 action='store_true',
19 default=True,
20 help='Whether to perform evaluation in train',
21 )
22 args = parser.parse_args()
23 return args
24
25
26def main():

Callers 1

mainFunction · 0.70

Calls 2

parse_argsMethod · 0.95
ArgsParserClass · 0.90

Tested by

no test coverage detected