()
| 201 | |
| 202 | |
| 203 | def parse_args(): |
| 204 | parser = argparse.ArgumentParser( |
| 205 | description=\ |
| 206 | 'Convert COCO Stuff 164k annotations to mmsegmentation format') # noqa |
| 207 | parser.add_argument('coco_path', help='coco stuff path') |
| 208 | parser.add_argument('-o', '--out_dir', help='output path') |
| 209 | parser.add_argument( |
| 210 | '--nproc', default=16, type=int, help='number of process') |
| 211 | args = parser.parse_args() |
| 212 | return args |
| 213 | |
| 214 | |
| 215 | def main(): |