|
@echo off |
|
|
|
PUSHD "%~dp0" |
|
setlocal |
|
|
|
call .venv\Scripts\activate.bat |
|
set INVOKEAI_ROOT=. |
|
|
|
:start |
|
echo Desired action: |
|
echo 1. Generate images with the browser-based interface |
|
echo 2. Open the developer console |
|
echo 3. Command-line help |
|
echo Q - Quit |
|
echo. |
|
echo To update, download and run the installer from https://github.com/invoke-ai/InvokeAI/releases/latest |
|
echo. |
|
set /P choice="Please enter 1-4, Q: [1] " |
|
if not defined choice set choice=1 |
|
IF /I "%choice%" == "1" ( |
|
echo Starting the InvokeAI browser-based UI.. |
|
python .venv\Scripts\invokeai-web.exe %* |
|
) ELSE IF /I "%choice%" == "2" ( |
|
echo Developer Console |
|
echo Python command is: |
|
where python |
|
echo Python version is: |
|
python --version |
|
echo ************************* |
|
echo You are now in the system shell, with the local InvokeAI Python virtual environment activated, |
|
echo so that you can troubleshoot this InvokeAI installation as necessary. |
|
echo ************************* |
|
echo *** Type `exit` to quit this shell and deactivate the Python virtual environment *** |
|
call cmd /k |
|
) ELSE IF /I "%choice%" == "3" ( |
|
echo Displaying command line help... |
|
python .venv\Scripts\invokeai-web.exe --help %* |
|
pause |
|
exit /b |
|
) ELSE IF /I "%choice%" == "q" ( |
|
echo Goodbye! |
|
goto ending |
|
) ELSE ( |
|
echo Invalid selection |
|
pause |
|
exit /b |
|
) |
|
goto start |
|
|
|
endlocal |
|
pause |
|
|
|
:ending |
|
exit /b |
|
|