aboutsummaryrefslogtreecommitdiff
path: root/modules/import_hook.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/import_hook.py')
-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