From a04965b0e9e9d1170cf284af9acbd1186d681255 Mon Sep 17 00:00:00 2001 From: Lincoln Stein Date: Fri, 11 Nov 2022 03:48:21 +0000 Subject: [PATCH] improve messaging during installation process --- installer/install.bat | 4 ++-- installer/install.sh | 1 + scripts/preload_models.py | 8 +++++--- source_installer/install.bat | 6 +++--- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/installer/install.bat b/installer/install.bat index e5e7bed34a..33a977508f 100644 --- a/installer/install.bat +++ b/installer/install.bat @@ -157,8 +157,8 @@ if %errorlevel% neq 0 goto err_exit echo ***** Finished downloading models ***** echo ***** Installing invoke.bat ****** -cp installer\invoke.bat .\invoke.bat - +copy installer\invoke.bat .\invoke.bat +echo All done! Execute the file invoke.bat in this directory to start InvokeAI @rem more cleanup rd /s /q installer installer_files diff --git a/installer/install.sh b/installer/install.sh index e59f87123a..cb0cefa35f 100755 --- a/installer/install.sh +++ b/installer/install.sh @@ -206,5 +206,6 @@ cp installer/invoke.sh . # more cleanup rm -rf installer/ installer_files/ +echo "All done! Run the command './invoke.sh' to start InvokeAI." read -p "Press any key to exit..." exit diff --git a/scripts/preload_models.py b/scripts/preload_models.py index 0b0feb1af5..831682bcb3 100644 --- a/scripts/preload_models.py +++ b/scripts/preload_models.py @@ -104,13 +104,15 @@ def postscript(): print( '''\n** Model Installation Successful **\nYou're all set! You may now launch InvokeAI using one of these two commands: Web version: - python scripts/invoke.py --web (connect to http://localhost:9090) - Command-line version: - python scripts/invoke.py +Remember to activate that 'invokeai' environment before running invoke.py. + +Or, if you used one of the automated installers, execute "invoke.sh" (Linux/Mac) +or "invoke.bat" (Windows) to start the script. + Have fun! ''' ) diff --git a/source_installer/install.bat b/source_installer/install.bat index 5f3be08ae7..3e25fdf48f 100644 --- a/source_installer/install.bat +++ b/source_installer/install.bat @@ -80,7 +80,7 @@ call conda activate @rem create the environment call conda env remove -n invokeai -cp environments-and-requirements\environment-win-cuda.yml environment.yml +copy environments-and-requirements\environment-win-cuda.yml environment.yml call conda env create if "%ERRORLEVEL%" NEQ "0" ( echo "" @@ -92,8 +92,8 @@ if "%ERRORLEVEL%" NEQ "0" ( exit /b ) -cp source_installer/install.bat install.bat -cp source_installer/update.bat update.bat +copy source_installer/install.bat install.bat +copy source_installer/update.bat update.bat call conda activate invokeai @rem preload the models