diff options
author | xucj98 <975114697@qq.com> | 2022-11-25 17:07:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-25 17:07:00 +0800 |
commit | 263b323de12eb2444b0818105575a2bc69ab0344 (patch) | |
tree | 7bc4a7802bdaba21550ad281cc08c3fc1037b074 /webui.bat | |
parent | d20dbe47e06de7f6c0e65242a04c9bb1410ef7cb (diff) | |
parent | 828438b4a190759807f9054932cae3a8b880ddf1 (diff) |
Merge branch 'AUTOMATIC1111:master' into draft
Diffstat (limited to 'webui.bat')
-rw-r--r-- | webui.bat | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -28,15 +28,27 @@ goto :show_stdout_stderr :activate_venv
set PYTHON="%~dp0%VENV_DIR%\Scripts\Python.exe"
echo venv %PYTHON%
+if [%ACCELERATE%] == ["True"] goto :accelerate
goto :launch
:skip_venv
+:accelerate
+echo "Checking for accelerate"
+set ACCELERATE="%~dp0%VENV_DIR%\Scripts\accelerate.exe"
+if EXIST %ACCELERATE% goto :accelerate_launch
+
:launch
%PYTHON% launch.py %*
pause
exit /b
+:accelerate_launch
+echo "Accelerating"
+%ACCELERATE% launch --num_cpu_threads_per_process=6 launch.py
+pause
+exit /b
+
:show_stdout_stderr
echo.
|