Skip to content

Commit

Permalink
[Fix] Use underline for required aruments in python files (open-mmlab…
Browse files Browse the repository at this point in the history
  • Loading branch information
Yshuo-Li authored Mar 29, 2022
1 parent 8f30212 commit 296098a
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions demo/generation_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ def parse_args():
parser = argparse.ArgumentParser(description='Generation demo')
parser.add_argument('config', help='test config file path')
parser.add_argument('checkpoint', help='checkpoint file')
parser.add_argument('img-path', help='path to input image file')
parser.add_argument('save-path', help='path to save generation result')
parser.add_argument('img_path', help='path to input image file')
parser.add_argument('save_path', help='path to save generation result')
parser.add_argument(
'--unpaired-path', default=None, help='path to unpaired image file')
parser.add_argument(
Expand Down
6 changes: 3 additions & 3 deletions demo/inpainting_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ def parse_args():
parser = argparse.ArgumentParser(description='Inpainting demo')
parser.add_argument('config', help='test config file path')
parser.add_argument('checkpoint', help='checkpoint file')
parser.add_argument('masked-img-path', help='path to input image file')
parser.add_argument('mask-path', help='path to input mask file')
parser.add_argument('save-path', help='path to save inpainting result')
parser.add_argument('masked_img_path', help='path to input image file')
parser.add_argument('mask_path', help='path to input mask file')
parser.add_argument('save_path', help='path to save inpainting result')
parser.add_argument(
'--imshow', action='store_true', help='whether show image with opencv')
parser.add_argument('--device', type=int, default=0, help='CUDA device id')
Expand Down
4 changes: 2 additions & 2 deletions demo/matting_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ def parse_args():
parser.add_argument('config', help='test config file path')
parser.add_argument('checkpoint', help='checkpoint file')
parser.add_argument('img_path', help='path to input image file')
parser.add_argument('trimap-path', help='path to input trimap file')
parser.add_argument('save-path', help='path to save alpha matte result')
parser.add_argument('trimap_path', help='path to input trimap file')
parser.add_argument('save_path', help='path to save alpha matte result')
parser.add_argument(
'--imshow', action='store_true', help='whether show image with opencv')
parser.add_argument('--device', type=int, default=0, help='CUDA device id')
Expand Down
4 changes: 2 additions & 2 deletions demo/restoration_face_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def parse_args():
parser = argparse.ArgumentParser(description='Restoration demo')
parser.add_argument('config', help='test config file path')
parser.add_argument('checkpoint', help='checkpoint file')
parser.add_argument('img-path', help='path to input image file')
parser.add_argument('save-path', help='path to save restoration result')
parser.add_argument('img_path', help='path to input image file')
parser.add_argument('save_path', help='path to save restoration result')
parser.add_argument(
'--upscale-factor',
type=int,
Expand Down
4 changes: 2 additions & 2 deletions demo/restoration_video_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ def parse_args():
parser = argparse.ArgumentParser(description='Restoration demo')
parser.add_argument('config', help='test config file path')
parser.add_argument('checkpoint', help='checkpoint file')
parser.add_argument('input-dir', help='directory of the input video')
parser.add_argument('output-dir', help='directory of the output video')
parser.add_argument('input_dir', help='directory of the input video')
parser.add_argument('output_dir', help='directory of the output video')
parser.add_argument(
'--start-idx',
type=int,
Expand Down
4 changes: 2 additions & 2 deletions demo/video_interpolation_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def parse_args():
parser = argparse.ArgumentParser(description='Restoration demo')
parser.add_argument('config', help='test config file path')
parser.add_argument('checkpoint', help='checkpoint file')
parser.add_argument('input-dir', help='directory of the input video')
parser.add_argument('output-dir', help='directory of the output video')
parser.add_argument('input_dir', help='directory of the input video')
parser.add_argument('output_dir', help='directory of the output video')
parser.add_argument(
'--fps',
type=float,
Expand Down
4 changes: 2 additions & 2 deletions tools/evaluate_comp1k.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ def parse_args():
parser = argparse.ArgumentParser(
description='evaluate composition-1k prediction result')
parser.add_argument(
'pred-root', help='Path to the predicted alpha matte folder')
'pred_root', help='Path to the predicted alpha matte folder')
parser.add_argument(
'gt-root', help='Path to the ground truth alpha matte folder')
'gt_root', help='Path to the ground truth alpha matte folder')
parser.add_argument(
'--trimap-root',
help='Path to trimap folder. If not specified, '
Expand Down

0 comments on commit 296098a

Please sign in to comment.