Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Use underline for required aruments in python files. #822

Merged
merged 2 commits into from
Mar 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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