diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-12-24 04:57:56 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-12-24 04:57:56 +0000 |
commit | 0c747d4013f41f6c887a63d256af884aa8872f91 (patch) | |
tree | 92682f0754dd2f668eb77f317c78e47b8907b08e | |
parent | 5ee75e3c1e7240a207006eb52454252eec87e100 (diff) | |
download | stable-diffusion-webui-gfx803-0c747d4013f41f6c887a63d256af884aa8872f91.tar.gz stable-diffusion-webui-gfx803-0c747d4013f41f6c887a63d256af884aa8872f91.tar.bz2 stable-diffusion-webui-gfx803-0c747d4013f41f6c887a63d256af884aa8872f91.zip |
add a comment for disable xformers hack
-rw-r--r-- | modules/import_hook.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/import_hook.py b/modules/import_hook.py index 7403135d..28c67dfa 100644 --- a/modules/import_hook.py +++ b/modules/import_hook.py @@ -1,5 +1,5 @@ import sys - -if "xformers" not in "".join(sys.argv): +# this will break any attempt to import xformers which will prevent stability diffusion repo from trying to use it +if "--xformers" not in "".join(sys.argv): sys.modules["xformers"] = None |