aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-12-24 07:57:56 +0300
committerAUTOMATIC <16777216c@gmail.com>2022-12-24 07:57:56 +0300
commit0c747d4013f41f6c887a63d256af884aa8872f91 (patch)
tree92682f0754dd2f668eb77f317c78e47b8907b08e
parent5ee75e3c1e7240a207006eb52454252eec87e100 (diff)
add a comment for disable xformers hack
-rw-r--r--modules/import_hook.py4
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