aboutsummaryrefslogtreecommitdiffstats
path: root/launch.py
diff options
context:
space:
mode:
authorJamnedZ <zaguzinegor@gmail.com>2022-10-11 09:38:03 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2022-10-11 12:38:53 +0000
commit4e485b79238666ace2b270045f73a12e5ccc7af9 (patch)
treea976856eb448c0120eb83b0984fdea0c859e585e /launch.py
parent210fd72babb8314b280a7b5ef8603c62024a22db (diff)
downloadstable-diffusion-webui-gfx803-4e485b79238666ace2b270045f73a12e5ccc7af9.tar.gz
stable-diffusion-webui-gfx803-4e485b79238666ace2b270045f73a12e5ccc7af9.tar.bz2
stable-diffusion-webui-gfx803-4e485b79238666ace2b270045f73a12e5ccc7af9.zip
Added installation of pyngrok if needed
Diffstat (limited to 'launch.py')
-rw-r--r--launch.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/launch.py b/launch.py
index e1000f55..16627a03 100644
--- a/launch.py
+++ b/launch.py
@@ -104,6 +104,7 @@ def prepare_enviroment():
args, skip_torch_cuda_test = extract_arg(args, '--skip-torch-cuda-test')
xformers = '--xformers' in args
deepdanbooru = '--deepdanbooru' in args
+ ngrok = '--ngrok' in args
try:
commit = run(f"{git} rev-parse HEAD").strip()
@@ -134,6 +135,9 @@ def prepare_enviroment():
if not is_installed("deepdanbooru") and deepdanbooru:
run_pip("install git+https://github.com/KichangKim/DeepDanbooru.git@edf73df4cdaeea2cf00e9ac08bd8a9026b7a7b26#egg=deepdanbooru[tensorflow] tensorflow==2.10.0 tensorflow-io==0.27.0", "deepdanbooru")
+ if not is_installed("pyngrok") and ngrok:
+ run_pip("install pyngrok", "ngrok")
+
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)