diff options
author | C43H66N12O12S2 <36072735+C43H66N12O12S2@users.noreply.github.com> | 2022-10-15 16:06:34 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-10-15 17:25:27 +0000 |
commit | 09814e3cf384bf4189d57d1573483f72b38fb99f (patch) | |
tree | feddebc774c74adce575d5c37d2b88033a4731a4 /launch.py | |
parent | 74a9ee70020ffa2746c82300c533de3f7e523f22 (diff) | |
download | stable-diffusion-webui-gfx803-09814e3cf384bf4189d57d1573483f72b38fb99f.tar.gz stable-diffusion-webui-gfx803-09814e3cf384bf4189d57d1573483f72b38fb99f.tar.bz2 stable-diffusion-webui-gfx803-09814e3cf384bf4189d57d1573483f72b38fb99f.zip |
Update launch.py
Diffstat (limited to 'launch.py')
-rw-r--r-- | launch.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -107,6 +107,7 @@ def prepare_enviroment(): xformers = '--xformers' in args
deepdanbooru = '--deepdanbooru' in args
ngrok = '--ngrok' in args
+ reinstall_xformers = '--reinstall-xformers' in args
try:
commit = run(f"{git} rev-parse HEAD").strip()
@@ -128,9 +129,9 @@ def prepare_enviroment(): if not is_installed("clip"):
run_pip(f"install {clip_package}", "clip")
- if not is_installed("xformers") and xformers and platform.python_version().startswith("3.10"):
+ if (not is_installed("xformers") or reinstall_xformers) and xformers and platform.python_version().startswith("3.10"):
if platform.system() == "Windows":
- run_pip("install https://github.com/C43H66N12O12S2/stable-diffusion-webui/releases/download/c/xformers-0.0.14.dev0-cp310-cp310-win_amd64.whl", "xformers")
+ run_pip("install -U -I --no-deps https://github.com/C43H66N12O12S2/stable-diffusion-webui/releases/download/f/xformers-0.0.14.dev0-cp310-cp310-win_amd64.whl", "xformers")
elif platform.system() == "Linux":
run_pip("install xformers", "xformers")
|