diff options
author | yfszzx <yfszzx@gmail.com> | 2022-10-12 12:48:03 +0000 |
---|---|---|
committer | yfszzx <yfszzx@gmail.com> | 2022-10-12 12:48:03 +0000 |
commit | 511ca57e37483aac0cf260c89838ad2948509101 (patch) | |
tree | 8d6fb6ccd0cfc470460c68cf8d054bfc98dbdb34 /launch.py | |
parent | e05573e1adc1cde1e3bd7eb651a1ab27c446b3d5 (diff) | |
parent | a36dea9596c8880609401ce4fa7ab83cf70a9b2b (diff) | |
download | stable-diffusion-webui-gfx803-511ca57e37483aac0cf260c89838ad2948509101.tar.gz stable-diffusion-webui-gfx803-511ca57e37483aac0cf260c89838ad2948509101.tar.bz2 stable-diffusion-webui-gfx803-511ca57e37483aac0cf260c89838ad2948509101.zip |
Merge branch 'master' of https://github.com/yfszzx/stable-diffusion-webui-plus
Diffstat (limited to 'launch.py')
-rw-r--r-- | launch.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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)
|