2024-03-26 10:43:35 +00:00
# Automatic Install
2023-02-07 21:35:22 +00:00
2024-03-26 10:43:35 +00:00
The installer is used for both new installs and updates.
2023-02-07 21:35:22 +00:00
2024-03-26 10:43:35 +00:00
Both release and pre-release versions can be installed using it. It also supports install a wheel if needed.
2023-02-07 21:35:22 +00:00
2024-03-26 10:43:35 +00:00
Be sure to review the [installation requirements] and ensure your system has everything it needs to install Invoke.
2022-12-15 20:08:07 +00:00
2024-03-26 10:43:35 +00:00
## Getting the Latest Installer
2022-12-15 20:08:07 +00:00
2024-03-26 10:43:35 +00:00
Download the `InvokeAI-installer-vX.Y.Z.zip` file from the [latest release] page. It is at the bottom of the page, under **Assets** .
2022-12-15 20:08:07 +00:00
2024-03-26 10:43:35 +00:00
After unzipping the installer, you should have a `InvokeAI-Installer` folder with some files inside, including `install.bat` and `install.sh` .
2023-07-28 20:42:57 +00:00
2024-03-26 10:43:35 +00:00
## Running the Installer
2023-07-28 20:42:57 +00:00
2024-03-26 10:58:40 +00:00
!!! tip
Windows users should first double-click the `WinLongPathsEnabled.reg` file to prevent a failed installation due to long file paths.
2024-03-26 10:43:35 +00:00
Double-click the install script:
2023-07-28 20:42:57 +00:00
2024-03-26 10:43:35 +00:00
=== "Windows"
2023-07-28 20:42:57 +00:00
2024-03-26 10:43:35 +00:00
```sh
install.bat
```
2023-07-28 20:42:57 +00:00
2024-03-26 10:43:35 +00:00
=== "Linux/macOS"
2023-07-28 20:42:57 +00:00
2024-03-26 10:43:35 +00:00
```sh
install.sh
```
2023-07-28 20:42:57 +00:00
2024-03-26 10:43:35 +00:00
!!! info "Running the Installer from the commandline"
2023-07-28 20:42:57 +00:00
2024-03-26 10:43:35 +00:00
You can also run the install script from cmd/powershell (Windows) or terminal (Linux/macOS).
2023-07-28 20:42:57 +00:00
2024-03-26 10:43:35 +00:00
!!! warning "Untrusted Publisher (Windows)"
2022-12-15 20:08:07 +00:00
2024-03-26 10:43:35 +00:00
You may get a popup saying the file comes from an `Untrusted Publisher` . Click `More Info` and `Run Anyway` to get past this.
2023-02-07 19:19:55 +00:00
2024-03-26 10:43:35 +00:00
The installation process is simple, with a few prompts:
2023-02-07 19:19:55 +00:00
2024-03-26 10:43:35 +00:00
- Select the version to install. Unless you have a specific reason to install a specific version, select the default (the latest version).
- Select location for the install. Be sure you have enough space in this folder for the base application, as described in the [installation requirements].
- Select a GPU device. If you are unsure, you can let the installer figure it out.
2023-02-07 19:19:55 +00:00
2024-03-26 10:43:35 +00:00
!!! info "Slow Installation"
2022-12-15 20:08:07 +00:00
2024-03-26 10:43:35 +00:00
The installer needs to download several GB of data and install it all. It may appear to get stuck at 99.9% when installing `pytorch` or during a step labeled "Installing collected packages".
2022-12-15 20:08:07 +00:00
2024-03-26 10:43:35 +00:00
If it is stuck for over 10 minutes, something has probably gone wrong and you should close the window and restart.
2022-12-15 20:08:07 +00:00
2024-03-26 10:43:35 +00:00
## Running the Application
2023-02-07 19:19:55 +00:00
2024-03-26 10:43:35 +00:00
Find the install location you selected earlier. Double-click the launcher script to run the app:
2023-02-07 19:19:55 +00:00
2024-03-26 10:43:35 +00:00
=== "Windows"
2023-02-07 19:19:55 +00:00
2024-03-26 10:43:35 +00:00
```sh
invoke.bat
2023-02-07 21:35:22 +00:00
```
2022-12-15 20:08:07 +00:00
2024-03-26 10:43:35 +00:00
=== "Linux/macOS"
2022-12-15 20:08:07 +00:00
2024-03-26 10:43:35 +00:00
```sh
invoke.sh
```
2023-02-24 15:04:06 +00:00
2024-03-26 10:43:35 +00:00
Choose the first option to run the UI. After a series of startup messages, you'll see something like this:
2023-02-24 15:04:06 +00:00
2024-03-26 10:43:35 +00:00
```
Uvicorn running on http://127.0.0.1:9090 (Press CTRL+C to quit)
```
2023-02-24 15:04:06 +00:00
2024-03-26 10:43:35 +00:00
Copy the URL into your browser and you should see the UI.
2023-02-24 15:04:06 +00:00
2024-03-26 10:43:35 +00:00
## First-time Setup
2023-02-24 15:04:06 +00:00
2024-03-26 10:43:35 +00:00
You will need to [install some models] before you can generate.
2023-02-24 15:04:06 +00:00
2024-03-26 10:43:35 +00:00
Check the [configuration docs] for details on configuring the application.
2023-02-24 15:04:06 +00:00
2024-03-26 10:43:35 +00:00
## Updating
2023-02-24 15:04:06 +00:00
2024-03-26 10:43:35 +00:00
Updating is exactly the same as installing - download the latest installer, choose the latest version and off you go.
2023-02-24 15:04:06 +00:00
2024-03-26 10:43:35 +00:00
!!! info "Dependency Resolution Issues"
2023-02-24 15:04:06 +00:00
2024-03-26 10:43:35 +00:00
We've found that pip's dependency resolution can cause issues when upgrading packages. One very common problem was pip "downgrading" torch from CUDA to CPU, but things broke in other novel ways.
2023-02-24 15:04:06 +00:00
2024-03-26 10:43:35 +00:00
The installer doesn't have this kind of problem, so we use it for updating as well.
2022-12-15 20:08:07 +00:00
2024-03-26 10:43:35 +00:00
## Installation Issues
2022-12-15 20:08:07 +00:00
2024-03-27 06:10:11 +00:00
If you have installation issues, please review the [FAQ]. You can also [create an issue] or ask for help on [discord].
2022-12-15 20:08:07 +00:00
2024-03-26 10:43:35 +00:00
[installation requirements]: INSTALLATION.md#installation-requirements
2024-03-27 06:10:11 +00:00
[FAQ]: ../help/FAQ.md
2024-03-26 10:43:35 +00:00
[install some models]: 050_INSTALLING_MODELS.md
[configuration docs]: ../features/CONFIGURATION.md
[latest release]: https://github.com/invoke-ai/InvokeAI/releases/latest
[create an issue]: https://github.com/invoke-ai/InvokeAI/issues
[discord]: https://discord.gg/ZmtBAhwWhy