MCPcopy Create free account
hub / github.com/alinlab/SelfPatch / parse_args

Function parse_args

segmentation/tools/convert_datasets/pascal_context.py:38–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected