Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
user238921933
/
stable-diffusion-webui
like
8
Runtime error
App
Files
Files
Community
1
1a1019e
stable-diffusion-webui
/
modules
/
import_hook.py
user
5fb352c
over 1 year ago
raw
Copy download link
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