Skip to content

Commit

Permalink
Fix help
Browse files Browse the repository at this point in the history
  • Loading branch information
26071 committed Feb 15, 2024
1 parent 5414bd8 commit 772aa30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/cmd_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
parser.add_argument("--loglevel", type=str, help="log level; one of: CRITICAL, ERROR, WARNING, INFO, DEBUG", default=None)
parser.add_argument("--do-not-download-clip", action='store_true', help="do not download CLIP model even if it's not included in the checkpoint")
parser.add_argument("--data-dir", type=str, default=os.path.dirname(os.path.dirname(os.path.realpath(__file__))), help="base path where all user data is stored")
parser.add_argument("--models-path", type=str, default=os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), "models"), help="base path where all user data is stored", )
parser.add_argument("--models-path", type=str, default=os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), "models"), help="path where all models is stored", )
parser.add_argument("--config", type=str, default=sd_default_config, help="path to config which constructs model",)
parser.add_argument("--ckpt", type=str, default=sd_model_file, help="path to checkpoint of stable diffusion model; if specified, this checkpoint will be added to the list of checkpoints and loaded",)
parser.add_argument("--ckpt-dir", type=str, default=None, help="Path to directory with stable diffusion checkpoints")
Expand Down
2 changes: 1 addition & 1 deletion modules/paths_internal.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# Parse the --data-dir flag first so we can use it as a base for our other argument default values
parser_pre = argparse.ArgumentParser(add_help=False)
parser_pre.add_argument("--data-dir", type=str, default=os.path.dirname(modules_path), help="base path where all user data is stored", )
parser_pre.add_argument("--models-path", type=str, default=os.path.join(os.path.dirname(modules_path), "models"), help="base path where all user data is stored", )
parser_pre.add_argument("--models-path", type=str, default=os.path.join(os.path.dirname(modules_path), "models"), help="path where all models is stored", )
cmd_opts_pre = parser_pre.parse_known_args()[0]

data_path = cmd_opts_pre.data_dir
Expand Down

0 comments on commit 772aa30

Please sign in to comment.