diff options
author | d8ahazard <d8ahazard@gmail.com> | 2022-09-30 14:38:57 +0000 |
---|---|---|
committer | d8ahazard <d8ahazard@gmail.com> | 2022-09-30 14:38:57 +0000 |
commit | 9fc1e49bd2674f8c30dd3545c1c271472ff6d3c2 (patch) | |
tree | 6820fa2e3647ebf0df72e7503601e18e2e5196dd /modules/shared.py | |
parent | f71d02b85feacf52d03d69d5caca97cd7d90b481 (diff) | |
download | stable-diffusion-webui-gfx803-9fc1e49bd2674f8c30dd3545c1c271472ff6d3c2.tar.gz stable-diffusion-webui-gfx803-9fc1e49bd2674f8c30dd3545c1c271472ff6d3c2.tar.bz2 stable-diffusion-webui-gfx803-9fc1e49bd2674f8c30dd3545c1c271472ff6d3c2.zip |
Set default value for ckpt-dir
Diffstat (limited to 'modules/shared.py')
-rw-r--r-- | modules/shared.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/shared.py b/modules/shared.py index 8428c7a3..76233ea0 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -21,7 +21,7 @@ model_path = os.path.join(script_path, 'models') parser = argparse.ArgumentParser()
parser.add_argument("--config", type=str, default=os.path.join(sd_path, "configs/stable-diffusion/v1-inference.yaml"), 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; this checkpoint will be added to the list of checkpoints and loaded by default if you don't have a checkpoint selected in settings",)
-parser.add_argument("--ckpt-dir", type=str, default=None, help="Path to directory with stable diffusion checkpoints")
+parser.add_argument("--ckpt-dir", type=str, default=os.path.join(model_path, "Stable-diffusion"), help="Path to directory with stable diffusion checkpoints")
parser.add_argument("--gfpgan-dir", type=str, help="GFPGAN directory", default=('./src/gfpgan' if os.path.exists('./src/gfpgan') else './GFPGAN'))
parser.add_argument("--gfpgan-model", type=str, help="GFPGAN model file name", default=None)
parser.add_argument("--no-half", action='store_true', help="do not switch the model to 16-bit floats")
|