()
| 497 | |
| 498 | |
| 499 | def get_parse(): |
| 500 | import argparse |
| 501 | |
| 502 | parser = argparse.ArgumentParser(description="") |
| 503 | parser.add_argument("-i", "--input", required=True, help="input path") |
| 504 | parser.add_argument("-o", "--output", required=True, help="output path") |
| 505 | parser.add_argument("--mask", action="store_true", help="mask bool") |
| 506 | parser.add_argument( |
| 507 | "--wo_super_reso", action="store_true", help="whether using super_resolution" |
| 508 | ) |
| 509 | args = parser.parse_args() |
| 510 | return args |
| 511 | |
| 512 | |
| 513 | def main(): |