()
| 27 | |
| 28 | |
| 29 | def parse_opt(): |
| 30 | parser = argparse.ArgumentParser() |
| 31 | parser.add_argument( |
| 32 | "--pt", |
| 33 | type=str, |
| 34 | required=True, |
| 35 | help="Path to pt checkpoint." |
| 36 | ) |
| 37 | parser.add_argument( |
| 38 | "--pdparams", |
| 39 | type=str, |
| 40 | required=True, |
| 41 | help="Path to pdparams checkpoint." |
| 42 | ) |
| 43 | opt = parser.parse_args() |
| 44 | return opt |
| 45 | |
| 46 | |
| 47 | def main(opt): |