aboutsummaryrefslogtreecommitdiffstats
path: root/webui.bat
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-09-12 11:36:40 +0000
committerAUTOMATIC <16777216c@gmail.com>2022-09-12 11:36:40 +0000
commite4f080f61a8002949eb6fef6ade18abee4dcf5fe (patch)
tree6748646be0b0ef14e9a7201ec21495f12fc9810f /webui.bat
parent051e9195f14e9ac1a9bdff0de58454a5e7e387fd (diff)
downloadstable-diffusion-webui-gfx803-e4f080f61a8002949eb6fef6ade18abee4dcf5fe.tar.gz
stable-diffusion-webui-gfx803-e4f080f61a8002949eb6fef6ade18abee4dcf5fe.tar.bz2
stable-diffusion-webui-gfx803-e4f080f61a8002949eb6fef6ade18abee4dcf5fe.zip
print git commit revision when launching webui
Diffstat (limited to 'webui.bat')
-rw-r--r--webui.bat6
1 files changed, 4 insertions, 2 deletions
diff --git a/webui.bat b/webui.bat
index 54734d07..6e1e22da 100644
--- a/webui.bat
+++ b/webui.bat
@@ -37,13 +37,15 @@ goto :show_stdout_stderr
set PYTHON="%~dp0%VENV_DIR%\Scripts\Python.exe"
%PYTHON% --version
echo venv %PYTHON%
-goto :install_torch
+goto :print_commit
:skip_venv
%PYTHON% --version
-:install_torch
+:print_commit
+%GIT% rev-parse HEAD
+:install_torch
%PYTHON% -c "import torch" >tmp/stdout.txt 2>tmp/stderr.txt
if %ERRORLEVEL% == 0 goto :check_gpu
echo Installing torch...