From e4f080f61a8002949eb6fef6ade18abee4dcf5fe Mon Sep 17 00:00:00 2001 From: AUTOMATIC <16777216c@gmail.com> Date: Mon, 12 Sep 2022 14:36:40 +0300 Subject: [PATCH] print git commit revision when launching webui --- webui.bat | 6 ++++-- 1 file 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...