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

Function parse_args

tools/convert_datasets/drive.py:11–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10
11def parse_args():
12 parser = argparse.ArgumentParser(
13 description='Convert DRIVE dataset to mmsegmentation format')
14 parser.add_argument(
15 'training_path', help='the training part of DRIVE dataset')
16 parser.add_argument(
17 'testing_path', help='the testing part of DRIVE dataset')
18 parser.add_argument('--tmp_dir', help='path of the temporary directory')
19 parser.add_argument('-o', '--out_dir', help='output path')
20 args = parser.parse_args()
21 return args
22
23
24def main():

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected