diff options
author | JC-Array <44535867+JC-Array@users.noreply.github.com> | 2022-10-11 22:33:15 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-11 22:33:15 +0000 |
commit | 963d98639673098fa8df975dd380f1ef56fff3b5 (patch) | |
tree | 21d41f53af03ce2b21de7947fc216784fb2f2364 /launch.py | |
parent | ff4ef13dd591ec52f196f344f47537695df95364 (diff) | |
parent | 6be32b31d181e42c639dad3451229aa7b9cfd1cf (diff) | |
download | stable-diffusion-webui-gfx803-963d98639673098fa8df975dd380f1ef56fff3b5.tar.gz stable-diffusion-webui-gfx803-963d98639673098fa8df975dd380f1ef56fff3b5.tar.bz2 stable-diffusion-webui-gfx803-963d98639673098fa8df975dd380f1ef56fff3b5.zip |
Merge branch 'AUTOMATIC1111:master' into deepdanbooru_pre_process
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)
|