MCPcopy Create free account
hub / github.com/NVlabs/SegFormer / parse_args

Function parse_args

tools/print_config.py:6–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5
6def parse_args():
7 parser = argparse.ArgumentParser(description='Print the whole config')
8 parser.add_argument('config', help='config file path')
9 parser.add_argument(
10 '--options', nargs='+', action=DictAction, help='arguments in dict')
11 args = parser.parse_args()
12
13 return args
14
15
16def main():

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected