aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-09-05 02:02:15 +0300
committerAUTOMATIC <16777216c@gmail.com>2022-09-05 02:02:15 +0300
commita039878c0f583aab3cd75b32635ef00cd7a5c2b5 (patch)
tree254de84c47ccca56d42b07952727effdf98d32c9
parent59df7a0d1b8e222da2a8cfaf2d0e9f7b394f45ca (diff)
bugfix (thx #88443949)
-rw-r--r--modules/shared.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/shared.py b/modules/shared.py
index dbfa7838..9e744f6c 100644
--- a/modules/shared.py
+++ b/modules/shared.py
@@ -29,7 +29,7 @@ parser.add_argument("--unload-gfpgan", action='store_true', help="unload GFPGAN
parser.add_argument("--precision", type=str, help="evaluate at this precision", choices=["full", "autocast"], default="autocast")
parser.add_argument("--share", action='store_true', help="use share=True for gradio and make the UI accessible through their site (doesn't work for me but you might have better luck)")
parser.add_argument("--esrgan-models-path", type=str, help="path to directory with ESRGAN models", default=os.path.join(script_path, 'ESRGAN'))
-parser.add_argument("--opt-split-attention", type=str, help="enable optimization that reduced vram usage by a lot for about 10% decrease in performance", default=os.path.join(script_path, 'ESRGAN'))
+parser.add_argument("--opt-split-attention", action='store_true', help="enable optimization that reduced vram usage by a lot for about 10% decrease in performance")
cmd_opts = parser.parse_args()
cpu = torch.device("cpu")