Ooga / modules /import_hook.py
toto10's picture
5ddaf0cca1e144f6e16563ce10f39c55b15e5da289b24cf2ef5d01fe66eaa922
5002a4e
raw
history blame
No virus
204 Bytes
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):
sys.modules["xformers"] = None