diff options
author | Greendayle <Greendayle> | 2022-10-08 14:27:48 +0000 |
---|---|---|
committer | Greendayle <Greendayle> | 2022-10-08 14:27:48 +0000 |
commit | 2e8ba0fa478eb076760dc0fdfc526f6f5f1f98c5 (patch) | |
tree | 18bd69791e0eff3affd59876f8b39e9150aa8e2b /launch.py | |
parent | 5f12e7efd92ad802742f96788b4be3249ad02829 (diff) | |
parent | 4f33289d0fc5aa3a197f4a4c926d03d44f0d597e (diff) | |
download | stable-diffusion-webui-gfx803-2e8ba0fa478eb076760dc0fdfc526f6f5f1f98c5.tar.gz stable-diffusion-webui-gfx803-2e8ba0fa478eb076760dc0fdfc526f6f5f1f98c5.tar.bz2 stable-diffusion-webui-gfx803-2e8ba0fa478eb076760dc0fdfc526f6f5f1f98c5.zip |
fix conflicts
Diffstat (limited to 'launch.py')
-rw-r--r-- | launch.py | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -4,6 +4,7 @@ import os import sys
import importlib.util
import shlex
+import platform
dir_repos = "repositories"
dir_tmp = "tmp"
@@ -31,6 +32,7 @@ def extract_arg(args, name): args, skip_torch_cuda_test = extract_arg(args, '--skip-torch-cuda-test')
+xformers = '--xformers' in args
def repo_dir(name):
@@ -124,6 +126,12 @@ if not is_installed("gfpgan"): if not is_installed("clip"):
run_pip(f"install {clip_package}", "clip")
+if not is_installed("xformers") and xformers:
+ if platform.system() == "Windows":
+ run_pip("install https://github.com/C43H66N12O12S2/stable-diffusion-webui/releases/download/a/xformers-0.0.14.dev0-cp310-cp310-win_amd64.whl", "xformers")
+ elif platform.system() == "Linux":
+ run_pip("install xformers", "xformers")
+
os.makedirs(dir_repos, exist_ok=True)
git_clone("https://github.com/CompVis/stable-diffusion.git", repo_dir('stable-diffusion'), "Stable Diffusion", stable_diffusion_commit_hash)
|