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

Function parse_args

tools/convert_datasets/pascal_context.py:37–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35
36
37def parse_args():
38 parser = argparse.ArgumentParser(
39 description='Convert PASCAL VOC annotations to mmsegmentation format')
40 parser.add_argument('devkit_path', help='pascal voc devkit path')
41 parser.add_argument('json_path', help='annoation json filepath')
42 parser.add_argument('-o', '--out_dir', help='output path')
43 args = parser.parse_args()
44 return args
45
46
47def main():

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected