aboutsummaryrefslogtreecommitdiffstats
path: root/modules/shared.py
diff options
context:
space:
mode:
authormawr <mawr@mail.ru>2022-10-30 21:14:07 +0000
committermawr <mawr@mail.ru>2022-10-30 21:14:07 +0000
commitd587586d3be2de061238defb8a556f03743287f6 (patch)
treee77d86d46dbb7f39eb573e8ce50a2e0eb8fc31bb /modules/shared.py
parent17a2076f72562b428052ee3fc8c43d19c03ecd1e (diff)
downloadstable-diffusion-webui-gfx803-d587586d3be2de061238defb8a556f03743287f6.tar.gz
stable-diffusion-webui-gfx803-d587586d3be2de061238defb8a556f03743287f6.tar.bz2
stable-diffusion-webui-gfx803-d587586d3be2de061238defb8a556f03743287f6.zip
Added "--clip-models-path" switch to avoid using default "~/.cache/clip" and enable to run under unprivileged user without homedir
Diffstat (limited to 'modules/shared.py')
-rw-r--r--modules/shared.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/shared.py b/modules/shared.py
index e4f163c1..36212031 100644
--- a/modules/shared.py
+++ b/modules/shared.py
@@ -51,6 +51,7 @@ parser.add_argument("--realesrgan-models-path", type=str, help="Path to director
parser.add_argument("--scunet-models-path", type=str, help="Path to directory with ScuNET model file(s).", default=os.path.join(models_path, 'ScuNET'))
parser.add_argument("--swinir-models-path", type=str, help="Path to directory with SwinIR model file(s).", default=os.path.join(models_path, 'SwinIR'))
parser.add_argument("--ldsr-models-path", type=str, help="Path to directory with LDSR model file(s).", default=os.path.join(models_path, 'LDSR'))
+parser.add_argument("--clip-models-path", type=str, help="Path to directory with CLIP model file(s).", default=None)
parser.add_argument("--xformers", action='store_true', help="enable xformers for cross attention layers")
parser.add_argument("--force-enable-xformers", action='store_true', help="enable xformers for cross attention layers regardless of whether the checking code thinks you can run it; do not make bug reports if this fails to work")
parser.add_argument("--deepdanbooru", action='store_true', help="enable deepdanbooru interrogator")