()
| 230 | |
| 231 | |
| 232 | def 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 | |
| 244 | def main(): |