Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Sparkles-AI
/
sd-automatic111
like
0
Paused
App
Files
Files
f9a1776
sd-automatic111
/
modules
/
import_hook.py
QuintW
update repo
c9ea4f0
about 1 year ago
raw
Copy download link
history
blame
Safe
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