diff options
author | C43H66N12O12S2 <36072735+C43H66N12O12S2@users.noreply.github.com> | 2022-10-07 02:23:06 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-07 02:23:06 +0000 |
commit | da4ab2707b4cb0611cf181ba248a271d1937433e (patch) | |
tree | ad903de9d159eae804ee74ea9e370ec0707e10bb | |
parent | 2eb911b056ce6ff4434f673366782ed34f2b2f12 (diff) | |
download | stable-diffusion-webui-gfx803-da4ab2707b4cb0611cf181ba248a271d1937433e.tar.gz stable-diffusion-webui-gfx803-da4ab2707b4cb0611cf181ba248a271d1937433e.tar.bz2 stable-diffusion-webui-gfx803-da4ab2707b4cb0611cf181ba248a271d1937433e.zip |
Update shared.py
-rw-r--r-- | modules/shared.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/shared.py b/modules/shared.py index 25bb6e6c..8cc3b2fe 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -43,6 +43,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("--disable-opt-xformers-attention", action='store_true', help="force-disables xformers attention optimization")
parser.add_argument("--opt-split-attention", action='store_true', help="force-enables cross-attention layer optimization. By default, it's on for torch.cuda and off for other torch devices.")
parser.add_argument("--disable-opt-split-attention", action='store_true', help="force-disables cross-attention layer optimization")
parser.add_argument("--opt-split-attention-v1", action='store_true', help="enable older version of split attention optimization that does not consume all the VRAM it can find")
|