()
| 45 | |
| 46 | |
| 47 | def parse_args(): |
| 48 | parser = argparse.ArgumentParser( |
| 49 | description='fuse Conv and BN layers in a model') |
| 50 | parser.add_argument('config', help='config file path') |
| 51 | parser.add_argument('checkpoint', help='checkpoint file path') |
| 52 | parser.add_argument('out', help='output path of the converted model') |
| 53 | args = parser.parse_args() |
| 54 | return args |
| 55 | |
| 56 | |
| 57 | def main(): |