| 11 | |
| 12 | |
| 13 | def parse_args(): |
| 14 | parser = argparse.ArgumentParser() |
| 15 | parser.add_argument( |
| 16 | '-fps', '--fps', |
| 17 | type=int, default=DEFAULT_FPS, |
| 18 | help="Output video FPS" |
| 19 | ) |
| 20 | parser.add_argument( |
| 21 | '-vs', '--root_frames_dirs', |
| 22 | nargs='+', |
| 23 | type=str, |
| 24 | required=True, |
| 25 | help="Video directory names" |
| 26 | ) |
| 27 | parser.add_argument( |
| 28 | '-od', '--output_dir', |
| 29 | type=str, |
| 30 | required=True, |
| 31 | help="Output directory name" |
| 32 | ) |
| 33 | parser.add_argument( |
| 34 | '-md', '--root_mask_dir', |
| 35 | type=str, |
| 36 | help="Masks directory name" |
| 37 | ) |
| 38 | parser.add_argument( |
| 39 | '-rp', '--result_postfix', |
| 40 | type=str, |
| 41 | default='color', |
| 42 | help="Result directory postfix" |
| 43 | ) |
| 44 | parser.add_argument( |
| 45 | '-names', '--names', |
| 46 | nargs='+', |
| 47 | type=str, |
| 48 | default=['Input Video', 'Image-based Inpainting [53]', 'Patch-based Video Inpainting [33]', 'VORNet (Ours)'], |
| 49 | help="Masks directory name" |
| 50 | ) |
| 51 | parser.add_argument( |
| 52 | '-n', '--test_num', |
| 53 | type=int, |
| 54 | default=100 |
| 55 | ) |
| 56 | parser.add_argument( |
| 57 | '-fnwrl', '--frame_num_when_repeat_list', |
| 58 | type=int, |
| 59 | nargs='+', |
| 60 | default=[1] |
| 61 | ) |
| 62 | parser.add_argument( |
| 63 | '--assume_ordered', action='store_true', |
| 64 | help=("Set this if you assume the files of different frames dirs are in" |
| 65 | "the same order (ignore exact video name matching)") |
| 66 | ) |
| 67 | parser.add_argument( |
| 68 | '--name_prefix', type=str, default='' |
| 69 | ) |
| 70 | parser.add_argument( |