From 0c747d4013f41f6c887a63d256af884aa8872f91 Mon Sep 17 00:00:00 2001 From: AUTOMATIC <16777216c@gmail.com> Date: Sat, 24 Dec 2022 07:57:56 +0300 Subject: [PATCH] add a comment for disable xformers hack --- modules/import_hook.py | 4 ++-- 1 file 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