aboutsummaryrefslogtreecommitdiffstats
path: root/modules/shared.py
diff options
context:
space:
mode:
authord8ahazard <d8ahazard@gmail.com>2022-09-30 19:27:27 +0000
committerGitHub <noreply@github.com>2022-09-30 19:27:27 +0000
commita9a0320d2688a292fe834986c9abe141ff29bf7c (patch)
treeb5c1bb8b171831525cb57996d6651084f7c5efdf /modules/shared.py
parent7ab91d9e1bf3abc11dc0d90e270b199ae8c3c84a (diff)
parent2b03f0bbda1229dff6e7ab6f656b28587eba8308 (diff)
downloadstable-diffusion-webui-gfx803-a9a0320d2688a292fe834986c9abe141ff29bf7c.tar.gz
stable-diffusion-webui-gfx803-a9a0320d2688a292fe834986c9abe141ff29bf7c.tar.bz2
stable-diffusion-webui-gfx803-a9a0320d2688a292fe834986c9abe141ff29bf7c.zip
Merge branch 'master' into master
Diffstat (limited to 'modules/shared.py')
-rw-r--r--modules/shared.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/shared.py b/modules/shared.py
index 76233ea0..ac968b2d 100644
--- a/modules/shared.py
+++ b/modules/shared.py
@@ -20,8 +20,8 @@ default_sd_model_file = sd_model_file
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=os.path.join(model_path, "Stable-diffusion"), help="Path to directory with stable diffusion checkpoints")
+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")
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")