aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorふぁ <34892635+fa0311@users.noreply.github.com>2022-10-20 03:16:22 +0900
committerAUTOMATIC1111 <16777216c@gmail.com>2022-10-19 21:31:16 +0300
commit604620a7f08d1126a8689f9f4bec8ade0801a69b (patch)
treed180b71e7ac4f144ad6daceef8a56cba61f235ab
parentb748b583c0b9f771c1be509175a6913e3f2ad97c (diff)
Add xformers message.
-rw-r--r--launch.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/launch.py b/launch.py
index 7b15e78e..333f308a 100644
--- a/launch.py
+++ b/launch.py
@@ -156,9 +156,15 @@ def prepare_enviroment():
if not is_installed("clip"):
run_pip(f"install {clip_package}", "clip")
- if (not is_installed("xformers") or reinstall_xformers) and xformers and platform.python_version().startswith("3.10"):
+ if (not is_installed("xformers") or reinstall_xformers) and xformers:
if platform.system() == "Windows":
- run_pip(f"install -U -I --no-deps {xformers_windows_package}", "xformers")
+ if platform.python_version().startswith("3.10"):
+ run_pip(f"install -U -I --no-deps {xformers_windows_package}", "xformers")
+ else:
+ print("Installation of xformers is not supported in this version of Python.")
+ print("You can also check this and build manually: https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Xformers#building-xformers-on-windows-by-duckness")
+ if not is_installed("xformers"):
+ exit(0)
elif platform.system() == "Linux":
run_pip("install xformers", "xformers")