diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-04-29 14:04:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-29 14:04:48 +0000 |
commit | ad7fd488bc8d67c5acfe98ba7c5fcf586c7a61dd (patch) | |
tree | b4c6bbfa455c5700b4edf886272341ac05634490 | |
parent | c89cad2b9ac1ed1ec378a559ce5adda82fadc38b (diff) | |
parent | ce64cab39761a593f15b30cf75eabb9432f16fc0 (diff) | |
download | stable-diffusion-webui-gfx803-ad7fd488bc8d67c5acfe98ba7c5fcf586c7a61dd.tar.gz stable-diffusion-webui-gfx803-ad7fd488bc8d67c5acfe98ba7c5fcf586c7a61dd.tar.bz2 stable-diffusion-webui-gfx803-ad7fd488bc8d67c5acfe98ba7c5fcf586c7a61dd.zip |
Merge pull request #9330 from micky2be/patch-1
Fix skip-install bug (see #8935)
-rw-r--r-- | launch.py | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -19,7 +19,6 @@ python = sys.executable git = os.environ.get('GIT', "git")
index_url = os.environ.get('INDEX_URL', "")
stored_commit_hash = None
-skip_install = False
dir_repos = "repositories"
if 'GRADIO_ANALYTICS_ENABLED' not in os.environ:
@@ -122,7 +121,7 @@ def run_python(code, desc=None, errdesc=None): def run_pip(args, desc=None, live=False):
- if skip_install:
+ if "--skip-install" in sys.argv:
return
index_url_line = f' --index-url {index_url}' if index_url != '' else ''
@@ -223,8 +222,6 @@ def run_extensions_installers(settings_file): def prepare_environment():
- global skip_install
-
torch_command = os.environ.get('TORCH_COMMAND', "pip install torch==2.0.0 torchvision==0.15.1 --index-url https://download.pytorch.org/whl/cu118")
requirements_file = os.environ.get('REQS_FILE', "requirements_versions.txt")
|