| 12 | |
| 13 | |
| 14 | def 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 | |
| 35 | def main(): |