add a comment for disable xformers hack

This commit is contained in:
AUTOMATIC 2022-12-24 07:57:56 +03:00
parent 5ee75e3c1e
commit 0c747d4013
1 changed files with 2 additions and 2 deletions

View File

@ -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