From 81b7ea43621ea5c79a7ee689eef071ef6ff1eb93 Mon Sep 17 00:00:00 2001 From: Tom Gouville Date: Sun, 26 Mar 2023 12:32:12 +0200 Subject: [PATCH 1/4] doc: updating ROCm version for pip install --- README.md | 2 +- docs/installation/010_INSTALL_AUTOMATED.md | 2 +- docs/installation/020_INSTALL_MANUAL.md | 4 ++-- docs/installation/030_INSTALL_CUDA_AND_ROCM.md | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 4f399a332c..1b02ced2c9 100644 --- a/README.md +++ b/README.md @@ -145,7 +145,7 @@ not supported. _For Linux with an AMD GPU:_ ```sh - pip install InvokeAI --use-pep517 --extra-index-url https://download.pytorch.org/whl/rocm5.2 + pip install InvokeAI --use-pep517 --extra-index-url https://download.pytorch.org/whl/rocm5.4.2 ``` _For Macintoshes, either Intel or M1/M2:_ diff --git a/docs/installation/010_INSTALL_AUTOMATED.md b/docs/installation/010_INSTALL_AUTOMATED.md index 228c0ae9a4..83b4415394 100644 --- a/docs/installation/010_INSTALL_AUTOMATED.md +++ b/docs/installation/010_INSTALL_AUTOMATED.md @@ -417,7 +417,7 @@ Then type the following commands: === "AMD System" ```bash - pip install torch torchvision --force-reinstall --extra-index-url https://download.pytorch.org/whl/rocm5.2 + pip install torch torchvision --force-reinstall --extra-index-url https://download.pytorch.org/whl/rocm5.4.2 ``` ### Corrupted configuration file diff --git a/docs/installation/020_INSTALL_MANUAL.md b/docs/installation/020_INSTALL_MANUAL.md index 401560e76c..c4082b0db3 100644 --- a/docs/installation/020_INSTALL_MANUAL.md +++ b/docs/installation/020_INSTALL_MANUAL.md @@ -154,7 +154,7 @@ manager, please follow these steps: === "ROCm (AMD)" ```bash - pip install InvokeAI --use-pep517 --extra-index-url https://download.pytorch.org/whl/rocm5.2 + pip install InvokeAI --use-pep517 --extra-index-url https://download.pytorch.org/whl/rocm5.4.1 ``` === "CPU (Intel Macs & non-GPU systems)" @@ -315,7 +315,7 @@ installation protocol (important!) === "ROCm (AMD)" ```bash - pip install -e . --use-pep517 --extra-index-url https://download.pytorch.org/whl/rocm5.2 + pip install -e . --use-pep517 --extra-index-url https://download.pytorch.org/whl/rocm5.4.2 ``` === "CPU (Intel Macs & non-GPU systems)" diff --git a/docs/installation/030_INSTALL_CUDA_AND_ROCM.md b/docs/installation/030_INSTALL_CUDA_AND_ROCM.md index 8ce690ca64..3d3445e3a0 100644 --- a/docs/installation/030_INSTALL_CUDA_AND_ROCM.md +++ b/docs/installation/030_INSTALL_CUDA_AND_ROCM.md @@ -110,7 +110,7 @@ recipes are available When installing torch and torchvision manually with `pip`, remember to provide the argument `--extra-index-url -https://download.pytorch.org/whl/rocm5.2` as described in the [Manual +https://download.pytorch.org/whl/rocm5.4.2` as described in the [Manual Installation Guide](020_INSTALL_MANUAL.md). This will be done automatically for you if you use the installer From 737e0f3085badcdcb17246c861e672848334c69f Mon Sep 17 00:00:00 2001 From: Tom Gouville Date: Sun, 26 Mar 2023 12:40:20 +0200 Subject: [PATCH 2/4] doc: fixing error in rocm version --- docs/installation/020_INSTALL_MANUAL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/installation/020_INSTALL_MANUAL.md b/docs/installation/020_INSTALL_MANUAL.md index c4082b0db3..657e3f055d 100644 --- a/docs/installation/020_INSTALL_MANUAL.md +++ b/docs/installation/020_INSTALL_MANUAL.md @@ -154,7 +154,7 @@ manager, please follow these steps: === "ROCm (AMD)" ```bash - pip install InvokeAI --use-pep517 --extra-index-url https://download.pytorch.org/whl/rocm5.4.1 + pip install InvokeAI --use-pep517 --extra-index-url https://download.pytorch.org/whl/rocm5.4.2 ``` === "CPU (Intel Macs & non-GPU systems)" From 9a7580dedd82227161cd0d8ad1524a5de3bf5e80 Mon Sep 17 00:00:00 2001 From: Lincoln Stein Date: Tue, 28 Mar 2023 00:17:20 -0400 Subject: [PATCH 3/4] fix bugs in online ckpt conversion of 2.0 models This commit fixes bugs related to the on-the-fly conversion and loading of legacy checkpoint models built on SD-2.0 base. - When legacy checkpoints built on SD-2.0 models were converted on-the-fly using --ckpt_convert, generation would crash with a precision incompatibility error. --- .../backend/model_management/convert_ckpt_to_diffusers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/invokeai/backend/model_management/convert_ckpt_to_diffusers.py b/invokeai/backend/model_management/convert_ckpt_to_diffusers.py index 3547fcee7b..b46586611d 100644 --- a/invokeai/backend/model_management/convert_ckpt_to_diffusers.py +++ b/invokeai/backend/model_management/convert_ckpt_to_diffusers.py @@ -1264,10 +1264,10 @@ def load_pipeline_from_original_stable_diffusion_ckpt( cache_dir=cache_dir, ) pipe = pipeline_class( - vae=vae, - text_encoder=text_model, + vae=vae.to(precision), + text_encoder=text_model.to(precision), tokenizer=tokenizer, - unet=unet, + unet=unet.to(precision), scheduler=scheduler, safety_checker=None, feature_extractor=None, From cc5687f26c425eb9f25cb08a1ee4de0426feae4c Mon Sep 17 00:00:00 2001 From: Eugene Date: Sun, 26 Mar 2023 02:40:30 -0400 Subject: [PATCH 4/4] [nodes] downgrade fastapi+uvicorn to fix openapi schema --- pyproject.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 393db0cae4..1da7c7bd77 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,7 +45,7 @@ dependencies = [ "einops", "eventlet", "facexlib", - "fastapi==0.94.1", + "fastapi==0.88.0", "fastapi-events==0.8.0", "fastapi-socketio==0.0.10", "flask==2.1.3", @@ -160,4 +160,3 @@ output = "coverage/index.xml" [flake8] max-line-length = 120 -