mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
d2dc1ed26f
This commit makes InvokeAI 3.0 to be installable via PyPi.org and the installer script. Main changes. 1. Move static web pages into `invokeai/frontend/web` and modify the API to look for them there. This allows pip to copy the files into the distribution directory so that user no longer has to be in repo root to launch. 2. Update invoke.sh and invoke.bat to launch the new web application properly. This also changes the wording for launching the CLI from "generate images" to "explore the InvokeAI node system," since I would not recommend using the CLI to generate images routinely. 3. Fix a bug in the checkpoint converter script that was identified during testing. 4. Better error reporting when checkpoint converter fails. 5. Rebuild front end.
81 lines
2.5 KiB
Batchfile
81 lines
2.5 KiB
Batchfile
@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. Explore InvokeAI nodes using a command-line interface
|
|
echo 3. Run textual inversion training
|
|
echo 4. Merge models (diffusers type only)
|
|
echo 5. Download and install models
|
|
echo 6. Change InvokeAI startup options
|
|
echo 7. Re-run the configure script to fix a broken install
|
|
echo 8. Open the developer console
|
|
echo 9. Update InvokeAI
|
|
echo 10. Command-line help
|
|
echo Q - Quit
|
|
set /P restore="Please enter 1-10, Q: [2] "
|
|
if not defined restore set restore=2
|
|
IF /I "%restore%" == "1" (
|
|
echo Starting the InvokeAI browser-based UI..
|
|
python .venv\Scripts\invokeai-web.exe %*
|
|
) ELSE IF /I "%restore%" == "2" (
|
|
echo Starting the InvokeAI command-line..
|
|
python .venv\Scripts\invokeai.exe %*
|
|
) ELSE IF /I "%restore%" == "3" (
|
|
echo Starting textual inversion training..
|
|
python .venv\Scripts\invokeai-ti.exe --gui
|
|
) ELSE IF /I "%restore%" == "4" (
|
|
echo Starting model merging script..
|
|
python .venv\Scripts\invokeai-merge.exe --gui
|
|
) ELSE IF /I "%restore%" == "5" (
|
|
echo Running invokeai-model-install...
|
|
python .venv\Scripts\invokeai-model-install.exe
|
|
) ELSE IF /I "%restore%" == "6" (
|
|
echo Running invokeai-configure...
|
|
python .venv\Scripts\invokeai-configure.exe --skip-sd-weight --skip-support-models
|
|
) ELSE IF /I "%restore%" == "7" (
|
|
echo Running invokeai-configure...
|
|
python .venv\Scripts\invokeai-configure.exe --yes --default_only
|
|
) ELSE IF /I "%restore%" == "8" (
|
|
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 "%restore%" == "9" (
|
|
echo Running invokeai-update...
|
|
python .venv\Scripts\invokeai-update.exe %*
|
|
) ELSE IF /I "%restore%" == "10" (
|
|
echo Displaying command line help...
|
|
python .venv\Scripts\invokeai.exe --help %*
|
|
pause
|
|
exit /b
|
|
) ELSE IF /I "%restore%" == "q" (
|
|
echo Goodbye!
|
|
goto ending
|
|
) ELSE (
|
|
echo Invalid selection
|
|
pause
|
|
exit /b
|
|
)
|
|
goto start
|
|
|
|
endlocal
|
|
pause
|
|
|
|
:ending
|
|
exit /b
|
|
|