Commit 0c747d40 authored by AUTOMATIC's avatar AUTOMATIC
Browse files

add a comment for disable xformers hack

parent 5ee75e3c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
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