Show the next steps to the user; Allow starting the command-line or web UI

This commit is contained in:
cmdr2 2022-10-29 21:16:40 +05:30
parent 29d9ce03ab
commit bc7bfed0d3
4 changed files with 31 additions and 19 deletions

View File

@ -88,11 +88,8 @@ call python scripts\preload_models.py
@rem make the models dir @rem make the models dir
mkdir models\ldm\stable-diffusion-v1 mkdir models\ldm\stable-diffusion-v1
@rem tell the user that they need to download the ckpt @rem tell the user their next steps
echo. echo.
echo "Now you need to install the weights for the stable diffusion model." echo "You can now start generating images by double-clicking the 'invoke.bat' file (inside this folder)
echo "Please follow the steps at https://invoke-ai.github.io/InvokeAI/installation/INSTALL_WINDOWS/ to complete the installation"
@rem it would be nice if the weights downloaded automatically, and didn't need the user to do this manually.
pause pause

View File

@ -110,14 +110,5 @@ python scripts/preload_models.py
# make the models dir # make the models dir
mkdir models/ldm/stable-diffusion-v1 mkdir models/ldm/stable-diffusion-v1
# tell the user that they need to download the ckpt # tell the user their next steps
WEIGHTS_DOC_URL="https://invoke-ai.github.io/InvokeAI/installation/INSTALL_LINUX/" echo "You can now start generating images by running invoke.sh (inside this folder), using ./invoke.sh"
if [ "$OS_NAME" == "mac" ]; then
WEIGHTS_DOC_URL="https://invoke-ai.github.io/InvokeAI/installation/INSTALL_MAC/"
fi
echo ""
echo "Now you need to install the weights for the stable diffusion model."
echo "Please follow the steps at $WEIGHTS_DOC_URL to complete the installation"
# it would be nice if the weights downloaded automatically, and didn't need the user to do this manually.

View File

@ -5,6 +5,20 @@ set PATH=%INSTALL_ENV_DIR%;%INSTALL_ENV_DIR%\Library\bin;%INSTALL_ENV_DIR%\Scrip
call conda activate invokeai call conda activate invokeai
echo Ready to dream.. echo Do you want to generate images using the
echo 1. command-line
echo 2. browser-based UI
set /P restore="Please enter 1 or 2: "
IF /I "%restore%" == "1" (
echo Starting the InvokeAI command-line..
python scripts\invoke.py
) ELSE IF /I "%restore%" == "2" (
echo Starting the InvokeAI browser-based UI..
python scripts\invoke.py --web
) ELSE (
echo Invalid selection
pause
exit /b
)
cmd /k cmd /k

View File

@ -1,5 +1,6 @@
#!/bin/bash #!/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")"
if [ "$0" == "bash" ]; then if [ "$0" == "bash" ]; then
INSTALL_ENV_DIR="$(pwd)/installer_files/env" INSTALL_ENV_DIR="$(pwd)/installer_files/env"
@ -10,7 +11,16 @@ if [ "$0" == "bash" ]; then
conda activate invokeai conda activate invokeai
echo "Ready to dream.." echo "Do you want to generate images using the"
echo "1. command-line"
echo "2. browser-based UI"
read -p "Please enter 1 or 2: " yn
case $yn in
1 ) printf "\nStarting the InvokeAI command-line..\n"; python scripts/invoke.py; break;;
2 ) printf "\nStarting the InvokeAI browser-based UI..\n"; python scripts/invoke.py --web; break;;
* ) echo "Invalid selection"; exit;;
esac
else else
bash --init-file invoke.sh file_name=$(basename "${BASH_SOURCE[0]}")
bash --init-file "$file_name"
fi fi