Download modules/import_hook.py from ygohel18/custom-sdwebui: direct link, hf CLI and curl.
- Browser
- Download file 204 Bytes
-
https://huggingface.co/ygohel18/custom-sdwebui/resolve/refs%2Fpr%2F1/modules/import_hook.py
- Command line
-
hf download hf://ygohel18/custom-sdwebui@refs/pr/1/modules/import_hook.py
-
curl -L -o import_hook.py https://huggingface.co/ygohel18/custom-sdwebui/resolve/refs%2Fpr%2F1/modules/import_hook.py
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 | |