Commit 0c747d40 authored by AUTOMATIC's avatar AUTOMATIC

add a comment for disable xformers hack

parent 5ee75e3c
import sys import sys
# 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): if "--xformers" not in "".join(sys.argv):
sys.modules["xformers"] = None sys.modules["xformers"] = None
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment