diff options
author | Greendayle <Greendayle> | 2022-10-08 16:02:56 +0000 |
---|---|---|
committer | Greendayle <Greendayle> | 2022-10-08 16:02:56 +0000 |
commit | 01f8cb44474e454903c11718e6a4f33dbde34bb8 (patch) | |
tree | 3f0b30e2f356733b5d610d1fb4c4913c305c3af4 /launch.py | |
parent | 5329d0aba0296f2fde4b5e6256dd27d46028a429 (diff) | |
download | stable-diffusion-webui-gfx803-01f8cb44474e454903c11718e6a4f33dbde34bb8.tar.gz stable-diffusion-webui-gfx803-01f8cb44474e454903c11718e6a4f33dbde34bb8.tar.bz2 stable-diffusion-webui-gfx803-01f8cb44474e454903c11718e6a4f33dbde34bb8.zip |
made deepdanbooru optional, added to readme, automatic download of deepbooru model
Diffstat (limited to 'launch.py')
-rw-r--r-- | launch.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -33,6 +33,7 @@ def extract_arg(args, name): args, skip_torch_cuda_test = extract_arg(args, '--skip-torch-cuda-test')
xformers = '--xformers' in args
+deepdanbooru = '--deepdanbooru' in args
def repo_dir(name):
@@ -132,6 +133,9 @@ if not is_installed("xformers") and xformers: elif platform.system() == "Linux":
run_pip("install xformers", "xformers")
+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")
+
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)
|