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

Function parse_args

segmentation/tools/convert_datasets/coco_stuff10k.py:232–241  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

230
231
232def parse_args():
233 parser = argparse.ArgumentParser(
234 description=\
235 'Convert COCO Stuff 10k annotations to mmsegmentation format') # noqa
236 parser.add_argument('coco_path', help='coco stuff path')
237 parser.add_argument('-o', '--out_dir', help='output path')
238 parser.add_argument(
239 '--nproc', default=16, type=int, help='number of process')
240 args = parser.parse_args()
241 return args
242
243
244def main():

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected