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
|
|
|
|
echo 3. Update InvokeAI (DEPRECATED - please use the installer)
|
|
|
|
echo 4. Run the InvokeAI image database maintenance script
|
|
|
|
echo 5. Command-line help
|
2023-05-22 21:51:47 +00:00
|
|
|
echo Q - Quit
|
2023-10-17 16:59:48 +00:00
|
|
|
set /P choice="Please enter 1-10, 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" (
|
2024-02-06 16:43:05 +00:00
|
|
|
echo UPDATING FROM WITHIN THE APP IS BEING DEPRECATED.
|
|
|
|
echo Please download the installer from https://github.com/invoke-ai/InvokeAI/releases/latest and run it to update your installation.
|
|
|
|
timeout 4
|
|
|
|
python -m invokeai.frontend.install.invokeai_update
|
2024-03-20 10:40:46 +00:00
|
|
|
) ELSE IF /I "%choice%" == "4" (
|
2023-09-19 04:08:00 +00:00
|
|
|
echo Running the db maintenance script...
|
|
|
|
python .venv\Scripts\invokeai-db-maintenance.exe
|
2024-03-20 10:40:46 +00:00
|
|
|
) ELSE IF /I "%choice%" == "5" (
|
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
|