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

Function parse_args

tools/convert_model.py:15–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13
14
15def parse_args():
16 parser = argparse.ArgumentParser(description='Train a segmentor')
17 parser.add_argument('oldmodel', help='train config file path')
18 parser.add_argument('newmodel', help='train config file path')
19
20 args = parser.parse_args()
21
22 return args
23
24
25def main():

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected