Commit Graph

24 Commits

Author SHA1 Message Date
blessedcoolant
09365d6d2e
Fix GUI not working (#1916) 2022-12-11 06:53:40 -05:00
Lincoln Stein
0439b51a26
Simple Installer for Unified Directory Structure, Initial Implementation (#1819)
* partially working simple installer

* works on linux

* fix linux requirements files

* read root environment variable in right place

* fix cat invokeai.init in test workflows

* fix classical cp error in test-invoke-pip.yml

* respect --root argument now

* untested bat installers added

* windows install.bat now working

fix logic to find frontend files

* rename simple_install to "installer"

1. simple_install => 'installer'
2. source and binary install directories are removed

* enable update scripts to update requirements

- Also pin requirements to known working commits.
- This may be a breaking change; exercise with caution
- No functional testing performed yet!

* update docs and installation requirements

NOTE: This may be a breaking commit! Due to the way the installer
works, I have to push to a public branch in order to do full end-to-end
testing.

- Updated installation docs, removing binary and source installers and
  substituting the "simple" unified installer.
- Pin requirements for the "http:" downloads to known working commits.
- Removed as much as possible the invoke-ai forks of others' repos.

* fix directory path for installer

* correct requirement/environment errors

* exclude zip files in .gitignore

* possible fix for dockerbuild

* ready for torture testing

- final Windows bat file tweaks
- copy environments-and-requirements to the runtime directory so that
  the `update.sh` script can run.

  This is not ideal, since we lose control over the
  requirements. Better for the update script to pull the proper
  updated requirements script from the repository.

* allow update.sh/update.bat to install arbitrary InvokeAI versions

- Can pass the zip file path to any InvokeAI release, branch, commit or tag,
  and the installer will try to install it.
- Updated documentation
- Added Linux Python install hints.

* use binary installer's :err_exit function

* user diffusers 0.10.0

* added logic for CPPFLAGS on mac

* improve windows install documentation

- added information on a couple of gotchas I experienced during
  windows installation, including DLL loading errors experienced
  when Visual Studio C++ Redistributable was not present.

* tagged to pull from 2.2.4-rc1

- also fix error of shell window closing immediately if suitable
  python not found

Co-authored-by: mauwii <Mauwii@outlook.de>
2022-12-11 00:37:08 -05:00
Lincoln Stein
0cc01143d8
invoke script cds to its location before running (#1805) 2022-12-05 19:03:20 +01:00
Lincoln Stein
38cd968130 stability and use improvements to binary & source installers
- Pass command-line arguments through to invoke.py via the .bat and .sh scripts.
- Remove obsolete warning message from binary install.bat
- Make sure that current working directory matches where .bat file is installed
2022-12-03 21:25:12 -05:00
Lincoln Stein
b487fa4391 fix basicsr conflict on windows 2022-12-02 12:53:13 -05:00
Lincoln Stein
12b98ba4ec make invoke.sh executable 2022-12-02 12:53:13 -05:00
Lincoln Stein
29540452f2 fix bad naming of invoke.sh.in 2022-12-02 11:25:37 -05:00
Lincoln Stein
c7960f930a fix regression in copy function 2022-12-02 10:53:42 -05:00
Lincoln Stein
c1c8b5026a apply current directory patch to binary installer .sh file 2022-12-02 10:53:42 -05:00
Lincoln Stein
5da42e0ad2 add back PYTORCH_ENABLE_MPS_FALLBACK 2022-12-02 10:53:42 -05:00
Lincoln Stein
34d6f35408 run .bat file in directory potentially containing spaces
- The previous fix for the "install in Windows system directory" error would fail
   if the path includes directories with spaces in them. This fixes that.

- In addition, addressing the same issue in source installer, although not
	yet reported in wild.
2022-12-02 10:53:42 -05:00
Lincoln Stein
6737cc1443 recompile for linux 2022-12-02 09:11:17 -05:00
Lincoln Stein
7fd0eeb9f9 update darwin requirements 2022-12-02 09:11:17 -05:00
Lincoln Stein
16e3b45fa2 update linux reuqirements file 2022-12-02 09:11:17 -05:00
Lincoln Stein
2f07ea03a9 binary installer fix
- bat file changes to directory it lives in rather than user's current directory
- restore incorrect requirements and compiled Darwin requirements file
2022-12-02 09:11:17 -05:00
Lincoln Stein
b563d75c58 restored mac requirements file 2022-12-02 09:11:17 -05:00
Lincoln Stein
7cb9b654f3 add compiled windows file 2022-12-01 23:07:48 -05:00
Lincoln Stein
967eb60ea9 added the linux py3.10* file 2022-12-01 22:51:05 -05:00
Lincoln Stein
8f050d992e documentation fixes for release 2022-12-01 22:02:50 -05:00
Lincoln Stein
0346095876 fix incorrect syntax for .bat 2022-12-01 22:02:27 -05:00
Lincoln Stein
6ec64ecb3c fix commit conflict markers 2022-12-01 15:07:54 -05:00
Lincoln Stein
cf10a1b736 Merge branch 'main' into source-installer-improvements 2022-12-01 19:45:47 +00:00
Lincoln Stein
9fb2a43780 rename "installer" to "binary_installer"
- Fix up internal names so scripts run properly
2022-12-01 19:40:47 +00:00
Lincoln Stein
1b743f7d9b source installer improvements and documentation
- Source installer provides more context for what it is doing, and
  sends user to help/troubleshooting pages when something goes wrong.

- install.sh and install.bat are renamed to install.sh.in and install.bat.in
  to discourage users from running them from within the

- Documentation updated
2022-12-01 19:40:13 +00:00