This commit is contained in:
lvmin
2023-08-10 03:38:43 -07:00
parent 4fae967909
commit b6bf074688
2 changed files with 46 additions and 2 deletions
+7 -2
View File
@@ -2,10 +2,11 @@ import os
import sys
import platform
from modules.launch_util import commit_hash, fooocus_tag, is_installed, run, python, run_pip, repo_dir, git_clone
from modules.launch_util import commit_hash, fooocus_tag, is_installed, run, python, \
run_pip, repo_dir, git_clone, requirements_met
REINSTALL_ALL = True
REINSTALL_ALL = False
def prepare_environment():
@@ -42,6 +43,10 @@ def prepare_environment():
elif platform.system() == "Linux":
run_pip(f"install -U -I --no-deps {xformers_package}", "xformers")
if REINSTALL_ALL or not requirements_met(requirements_file):
run_pip(f"install -r \"{requirements_file}\"", "requirements")
return
prepare_environment()