aboutsummaryrefslogtreecommitdiff
path: root/launch.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-09-30 11:42:40 +0300
committerAUTOMATIC <16777216c@gmail.com>2022-09-30 11:42:40 +0300
commitd1f098540ad1dbc2abb8d04322634efba650b631 (patch)
tree2c5cd3088177c938d643ed5430f7e2c38cdc2209 /launch.py
parent2552204fcb04c13af93749bd125d086ba148517c (diff)
remove unwanted formatting/functionality from the PR
Diffstat (limited to 'launch.py')
-rw-r--r--launch.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/launch.py b/launch.py
index 3b8d8f23..d2793ed2 100644
--- a/launch.py
+++ b/launch.py
@@ -1,5 +1,4 @@
# this scripts installs necessary requirements and launches main program in webui.py
-import shutil
import subprocess
import os
import sys
@@ -119,11 +118,7 @@ git_clone("https://github.com/CompVis/taming-transformers.git", repo_dir('taming
git_clone("https://github.com/crowsonkb/k-diffusion.git", repo_dir('k-diffusion'), "K-diffusion", k_diffusion_commit_hash)
git_clone("https://github.com/sczhou/CodeFormer.git", repo_dir('CodeFormer'), "CodeFormer", codeformer_commit_hash)
git_clone("https://github.com/salesforce/BLIP.git", repo_dir('BLIP'), "BLIP", blip_commit_hash)
-if os.path.isdir(repo_dir('latent-diffusion')):
- try:
- shutil.rmtree(repo_dir('latent-diffusion'))
- except:
- pass
+
if not is_installed("lpips"):
run_pip(f"install -r {os.path.join(repo_dir('CodeFormer'), 'requirements.txt')}", "requirements for CodeFormer")