Commit 1fd2c229 authored by AUTOMATIC's avatar AUTOMATIC

brought manual instructions up to date

reworked launching with different parameters
parent 0c63aa95
This diff is collapsed.
@echo off
set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=
call webui.bat
@echo off @echo off
set PYTHON=python if not defined PYTHON (set PYTHON=python)
set GIT=git if not defined GIT (set GIT=git)
set COMMANDLINE_ARGS=%* if not defined COMMANDLINE_ARGS (set COMMANDLINE_ARGS=%*)
set VENV_DIR=venv if not defined VENV_DIR (set VENV_DIR=venv)
if not defined TORCH_COMMAND (set TORCH_COMMAND=pip install torch==1.12.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113)
if exist webui.settings.bat ( if not defined REQS_FILE (set REQS_FILE=requirements_versions.txt)
call webui.settings.bat
)
mkdir tmp 2>NUL mkdir tmp 2>NUL
set TORCH_COMMAND=pip install torch==1.12.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113
set REQS_FILE=requirements_versions.txt
%PYTHON% -c "" >tmp/stdout.txt 2>tmp/stderr.txt %PYTHON% -c "" >tmp/stdout.txt 2>tmp/stderr.txt
if %ERRORLEVEL% == 0 goto :check_git if %ERRORLEVEL% == 0 goto :check_git
echo Couldn't launch python echo Couldn't launch python
...@@ -26,7 +21,7 @@ echo Couldn't launch git ...@@ -26,7 +21,7 @@ echo Couldn't launch git
goto :show_stdout_stderr goto :show_stdout_stderr
:setup_venv :setup_venv
if [%VENV_DIR%] == [] goto :skip_venv if [%VENV_DIR%] == [-] goto :skip_venv
dir %VENV_DIR%\Scripts\Python.exe >tmp/stdout.txt 2>tmp/stderr.txt dir %VENV_DIR%\Scripts\Python.exe >tmp/stdout.txt 2>tmp/stderr.txt
if %ERRORLEVEL% == 0 goto :activate_venv if %ERRORLEVEL% == 0 goto :activate_venv
......
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