Commit e4f080f6 authored by AUTOMATIC's avatar AUTOMATIC

print git commit revision when launching webui

parent 051e9195
......@@ -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...
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment