From 4ef1f4a854717c953f9192454d0adabef32af36c Mon Sep 17 00:00:00 2001 From: Lincoln Stein Date: Thu, 10 Nov 2022 20:01:49 +0000 Subject: [PATCH] remove temporary directory from repo --- installer/InvokeAI/WinLongPathsEnabled.reg | Bin 284 -> 0 bytes installer/InvokeAI/install.bat | 172 --------------------- installer/InvokeAI/readme.txt | 17 -- 3 files changed, 189 deletions(-) delete mode 100644 installer/InvokeAI/WinLongPathsEnabled.reg delete mode 100644 installer/InvokeAI/install.bat delete mode 100644 installer/InvokeAI/readme.txt diff --git a/installer/InvokeAI/WinLongPathsEnabled.reg b/installer/InvokeAI/WinLongPathsEnabled.reg deleted file mode 100644 index 778782b2724d59ad0caa2bd5ce8c0d38dc74f39b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 284 zcmXw!%WA?v6o$XG(033YK5YxP#O6xZS>`aBvBbmIGD%8NB0`B7CjPS5;vM@~aiGV@t8Thl^DtfzuDHh_cKHL!axnJ* diff --git a/installer/InvokeAI/install.bat b/installer/InvokeAI/install.bat deleted file mode 100644 index 722f1bef6f..0000000000 --- a/installer/InvokeAI/install.bat +++ /dev/null @@ -1,172 +0,0 @@ -@echo off - -@rem This script will install git (if not found on the PATH variable) -@rem using micromamba (an 8mb static-linked single-file binary, conda replacement). -@rem For users who already have git, this step will be skipped. - -@rem Next, it'll download the project's source code. -@rem Then it will download a self-contained, standalone Python and unpack it. -@rem Finally, it'll create the Python virtual environment and preload the models. - -@rem This enables a user to install this project without manually installing git or Python - -echo ***** Installing InvokeAI.. ***** - -set PATH=c:\windows\system32 - -@rem Config -set INSTALL_ENV_DIR=%cd%\installer_files\env -@rem https://mamba.readthedocs.io/en/latest/installation.html -set MICROMAMBA_DOWNLOAD_URL=https://micro.mamba.pm/api/micromamba/win-64/latest -set RELEASE_URL=https://github.com/tildebyte/InvokeAI -set RELEASE_SOURCEBALL=/archive/feat-install-pip-compile.tar.gz -set PYTHON_BUILD_STANDALONE_URL=https://github.com/indygreg/python-build-standalone/releases/download -set PYTHON_BUILD_STANDALONE=20221002/cpython-3.10.7+20221002-x86_64-pc-windows-msvc-shared-install_only.tar.gz - -set PACKAGES_TO_INSTALL= - -call git --version >.tmp1 2>.tmp2 -if "%ERRORLEVEL%" NEQ "0" set PACKAGES_TO_INSTALL=%PACKAGES_TO_INSTALL% git - -@rem Cleanup -del /q .tmp1 .tmp2 - -@rem (if necessary) install git into a contained environment -if "%PACKAGES_TO_INSTALL%" NEQ "" ( - @rem download micromamba - echo ***** Downloading micromamba from %MICROMAMBA_DOWNLOAD_URL% to micromamba.exe ***** - - call curl -L "%MICROMAMBA_DOWNLOAD_URL%" > micromamba.tbz2 - - set err_msg=----- micromamba source unpack failed ----- - tar -jxf micromamba.tbz2 - if %errorlevel% neq 0 goto err_exit - - move Library\bin\micromamba.exe micromamba.exe - rd /s /q Library info - del /q micromamba.tbz2 - - @rem test the mamba binary - echo ***** Micromamba version: ***** - call micromamba.exe --version - - @rem create the installer env - if not exist "%INSTALL_ENV_DIR%" ( - call micromamba.exe create -y --prefix "%INSTALL_ENV_DIR%" - ) - - echo ***** Packages to install:%PACKAGES_TO_INSTALL% ***** - - call micromamba.exe install -y --prefix "%INSTALL_ENV_DIR%" -c conda-forge %PACKAGES_TO_INSTALL% - - if not exist "%INSTALL_ENV_DIR%" ( - echo ----- There was a problem while installing "%PACKAGES_TO_INSTALL%" using micromamba. Cannot continue. ----- - pause - exit /b - ) -) - -del /q micromamba.exe - -@rem For 'git' only -set PATH=%INSTALL_ENV_DIR%\Library\bin;%PATH% - -@rem Download/unpack/clean up InvokeAI release sourceball -set err_msg=----- InvokeAI source download failed ----- -curl -L %RELEASE_URL%/%RELEASE_SOURCEBALL% --output InvokeAI.tgz -if %errorlevel% neq 0 goto err_exit - -set err_msg=----- InvokeAI source unpack failed ----- -tar -zxf InvokeAI.tgz -if %errorlevel% neq 0 goto err_exit - -del /q InvokeAI.tgz - -set err_msg=----- InvokeAI source copy failed ----- -cd InvokeAI-* -xcopy . .. /e /h -if %errorlevel% neq 0 goto err_exit -cd .. - -@rem cleanup -for /f %%i in ('dir /b InvokeAI-*') do rd /s /q %%i -rd /s /q .dev_scripts .github docker-build tests -del /q requirements.in requirements-mkdocs.txt shell.nix - -echo ***** Unpacked InvokeAI source ***** - -@rem Download/unpack/clean up python-build-standalone -set err_msg=----- Python download failed ----- -curl -L %PYTHON_BUILD_STANDALONE_URL%/%PYTHON_BUILD_STANDALONE% --output python.tgz -if %errorlevel% neq 0 goto err_exit - -set err_msg=----- Python unpack failed ----- -tar -zxf python.tgz -if %errorlevel% neq 0 goto err_exit - -del /q python.tgz - -echo ***** Unpacked python-build-standalone ***** - -@rem create venv -set err_msg=----- problem creating venv ----- -.\python\python -E -s -m venv .venv -@rem In reality, the following is ALL that 'activate.bat' does, -@rem aside from setting the prompt, which we don't care about -set PYTHONPATH= -set PATH=.venv\Scripts;%PATH% -if %errorlevel% neq 0 goto err_exit - -echo ***** Created Python virtual environment ***** - -@rem Print venv's Python version -set err_msg=----- problem calling venv's python ----- -echo We're running under -.venv\Scripts\python --version -if %errorlevel% neq 0 goto err_exit - -set err_msg=----- pip update failed ----- -.venv\Scripts\python -m pip install --no-cache-dir --no-warn-script-location --upgrade pip -if %errorlevel% neq 0 goto err_exit - -echo ***** Updated pip ***** - -set err_msg=----- requirements file copy failed ----- -copy installer\py3.10-windows-x86_64-cuda-reqs.txt requirements.txt -if %errorlevel% neq 0 goto err_exit - -set err_msg=----- main pip install failed ----- -.venv\Scripts\python -m pip install --no-cache-dir --no-warn-script-location -r requirements.txt -if %errorlevel% neq 0 goto err_exit - -set err_msg=----- clipseg install failed ----- -.venv\Scripts\python -m pip install --no-cache-dir --no-warn-script-location -e git+https://github.com/invoke-ai/clipseg.git@models-rename#egg=clipseg -if %errorlevel% neq 0 goto err_exit - -set err_msg=----- InvokeAI setup failed ----- -.venv\Scripts\python -m pip install --no-cache-dir --no-warn-script-location -e . -if %errorlevel% neq 0 goto err_exit - -echo ***** Installed Python dependencies ***** - -@rem preload the models -call .venv\Scripts\python scripts\preload_models.py -set err_msg=----- model download clone failed ----- -if %errorlevel% neq 0 goto err_exit - -echo ***** Finished downloading models ***** - -echo ***** Installing invoke.bat ****** -cp installer\invoke.bat .\invoke.bat - - -@rem more cleanup -rd /s /q installer installer_files - -pause -exit - -:err_exit - echo %err_msg% - pause - exit diff --git a/installer/InvokeAI/readme.txt b/installer/InvokeAI/readme.txt deleted file mode 100644 index 31456327e9..0000000000 --- a/installer/InvokeAI/readme.txt +++ /dev/null @@ -1,17 +0,0 @@ -InvokeAI - -Project homepage: https://github.com/invoke-ai/InvokeAI - -Installation on Windows: - NOTE: You might need to enable Windows Long Paths. If you're not sure, - then you almost certainly need to. Simply double-click the 'WinLongPathsEnabled.reg' - file. Note that you will need to have admin privileges in order to - do this. - - Please double-click the 'install.bat' file (while keeping it inside the invokeAI folder). - -Installation on Linux and Mac: - Please open the terminal, and run './install.sh' (while keeping it inside the invokeAI folder). - -After installation, please run the 'invoke.bat' file (on Windows) or 'invoke.sh' -file (on Linux/Mac) to start InvokeAI.