2022-12-11 05:37:08 +00:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
PUSHD "%~dp0"
|
|
|
|
setlocal
|
|
|
|
|
|
|
|
call .venv\Scripts\activate.bat
|
|
|
|
set INVOKEAI_ROOT=.
|
|
|
|
|
2023-02-23 05:43:25 +00:00
|
|
|
:start
|
2023-05-22 21:51:47 +00:00
|
|
|
echo Desired action:
|
|
|
|
echo 1. Generate images with the browser-based interface
|
2024-03-20 10:40:46 +00:00
|
|
|
echo 2. Open the developer console
|
2024-05-23 12:16:07 +00:00
|
|
|
echo 3. Command-line help
|
2023-05-22 21:51:47 +00:00
|
|
|
echo Q - Quit
|
2024-03-26 03:35:08 +00:00
|
|
|
echo.
|
2024-07-07 11:51:01 +00:00
|
|
|
echo To update, download and run the installer from https://github.com/invoke-ai/InvokeAI/releases/latest
|
2024-03-26 03:35:08 +00:00
|
|
|
echo.
|
|
|
|
set /P choice="Please enter 1-4, Q: [1] "
|
2023-07-08 23:53:23 +00:00
|
|
|
if not defined choice set choice=1
|
2023-06-05 02:53:46 +00:00
|
|
|
IF /I "%choice%" == "1" (
|
2022-12-11 05:37:08 +00:00
|
|
|
echo Starting the InvokeAI browser-based UI..
|
2023-05-22 20:48:17 +00:00
|
|
|
python .venv\Scripts\invokeai-web.exe %*
|
2023-06-05 02:53:46 +00:00
|
|
|
) ELSE IF /I "%choice%" == "2" (
|
2022-12-11 05:37:08 +00:00
|
|
|
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
|
2024-03-20 10:40:46 +00:00
|
|
|
) ELSE IF /I "%choice%" == "3" (
|
2023-02-08 16:04:00 +00:00
|
|
|
echo Displaying command line help...
|
2023-09-19 04:08:00 +00:00
|
|
|
python .venv\Scripts\invokeai-web.exe --help %*
|
2023-02-08 16:04:00 +00:00
|
|
|
pause
|
|
|
|
exit /b
|
2023-06-05 02:53:46 +00:00
|
|
|
) ELSE IF /I "%choice%" == "q" (
|
2023-02-23 05:43:25 +00:00
|
|
|
echo Goodbye!
|
|
|
|
goto ending
|
2022-12-11 05:37:08 +00:00
|
|
|
) ELSE (
|
|
|
|
echo Invalid selection
|
|
|
|
pause
|
|
|
|
exit /b
|
|
|
|
)
|
2023-02-23 05:43:25 +00:00
|
|
|
goto start
|
|
|
|
|
2022-12-11 05:37:08 +00:00
|
|
|
endlocal
|
2023-02-23 05:43:25 +00:00
|
|
|
pause
|
|
|
|
|
|
|
|
:ending
|
|
|
|
exit /b
|