diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-12 11:36:40 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-12 11:36:40 +0000 |
commit | e4f080f61a8002949eb6fef6ade18abee4dcf5fe (patch) | |
tree | 6748646be0b0ef14e9a7201ec21495f12fc9810f /webui.bat | |
parent | 051e9195f14e9ac1a9bdff0de58454a5e7e387fd (diff) | |
download | stable-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.bat | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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...
|