diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-01-24 18:13:05 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-01-24 18:13:05 +0000 |
commit | 93fad28a979727f9b1331dbdc447598824057cdc (patch) | |
tree | 81d477284d95cfcb2ee81f1e1cd60c054e3c131c /webui.bat | |
parent | 5228ec8bdada50a8d614573e980193ca89192361 (diff) | |
download | stable-diffusion-webui-gfx803-93fad28a979727f9b1331dbdc447598824057cdc.tar.gz stable-diffusion-webui-gfx803-93fad28a979727f9b1331dbdc447598824057cdc.tar.bz2 stable-diffusion-webui-gfx803-93fad28a979727f9b1331dbdc447598824057cdc.zip |
print progress when installing torch
add PIP_INSTALLER_LOCATION env var to install pip if it's not installed
remove accidental call to accelerate when venv is disabled
add another env var to skip venv - SKIP_VENV
Diffstat (limited to 'webui.bat')
-rw-r--r-- | webui.bat | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -3,6 +3,7 @@ if not defined PYTHON (set PYTHON=python)
if not defined VENV_DIR (set "VENV_DIR=%~dp0%venv")
+
set ERROR_REPORTING=FALSE
mkdir tmp 2>NUL
@@ -14,6 +15,7 @@ goto :show_stdout_stderr :start_venv
if ["%VENV_DIR%"] == ["-"] goto :skip_venv
+if ["%SKIP_VENV%"] == ["1"] goto :skip_venv
dir "%VENV_DIR%\Scripts\Python.exe" >tmp/stdout.txt 2>tmp/stderr.txt
if %ERRORLEVEL% == 0 goto :activate_venv
@@ -28,13 +30,13 @@ goto :show_stdout_stderr :activate_venv
set PYTHON="%VENV_DIR%\Scripts\Python.exe"
echo venv %PYTHON%
-if [%ACCELERATE%] == ["True"] goto :accelerate
-goto :launch
:skip_venv
+if [%ACCELERATE%] == ["True"] goto :accelerate
+goto :launch
:accelerate
-echo "Checking for accelerate"
+echo Checking for accelerate
set ACCELERATE="%VENV_DIR%\Scripts\accelerate.exe"
if EXIST %ACCELERATE% goto :accelerate_launch
|