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

Function parse_args

segmentation/tools/convert_datasets/hrf.py:14–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13
14def parse_args():
15 parser = argparse.ArgumentParser(
16 description='Convert HRF dataset to mmsegmentation format')
17 parser.add_argument('healthy_path', help='the path of healthy.zip')
18 parser.add_argument(
19 'healthy_manualsegm_path', help='the path of healthy_manualsegm.zip')
20 parser.add_argument('glaucoma_path', help='the path of glaucoma.zip')
21 parser.add_argument(
22 'glaucoma_manualsegm_path', help='the path of glaucoma_manualsegm.zip')
23 parser.add_argument(
24 'diabetic_retinopathy_path',
25 help='the path of diabetic_retinopathy.zip')
26 parser.add_argument(
27 'diabetic_retinopathy_manualsegm_path',
28 help='the path of diabetic_retinopathy_manualsegm.zip')
29 parser.add_argument('--tmp_dir', help='path of the temporary directory')
30 parser.add_argument('-o', '--out_dir', help='output path')
31 args = parser.parse_args()
32 return args
33
34
35def main():

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected