From 2b893657f4b2bfdd547872dcc401103e21380f1d Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Thu, 7 Nov 2024 12:00:15 -0500 Subject: [PATCH] fix pag switch pipeline Signed-off-by: Vladimir Mandic --- CHANGELOG.md | 5 +++-- modules/sd_models.py | 4 ++-- wiki | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e08cb147..123cfdbf9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Change Log for SD.Next -## Update for 2024-11-06 +## Update for 2024-11-07 Smaller release just few days after the last one, but with some important fixes and improvements. This release can be considered an LTS release before we kick off the next round of major updates. @@ -9,7 +9,7 @@ This release can be considered an LTS release before we kick off the next round - add built-in [changelog](https://github.com/vladmandic/automatic/blob/master/CHANGELOG.md) search since changelog is the best up-to-date source of info go to system -> changelog and search/highligh/navigate directly in UI! - + - major [Wiki](https://github.com/vladmandic/automatic/wiki) updates - Integrations: - [PuLID](https://github.com/ToTheBeginning/PuLID): Pure and Lightning ID Customization via Contrastive Alignment - advanced method of face transfer with better quality as well as control over identity and appearance @@ -74,6 +74,7 @@ This release can be considered an LTS release before we kick off the next round - added `cli/model-keys.py` to quicky display content of any safetensors file - Internal: - Repo: move screenshots to GH pages + - Auto pipeline switching coveres wrapper classes and nested pipelines - Fixes: - custom watermark add alphablending diff --git a/modules/sd_models.py b/modules/sd_models.py index 5e89a29ad..4090bef50 100644 --- a/modules/sd_models.py +++ b/modules/sd_models.py @@ -1082,9 +1082,9 @@ def set_diffuser_pipe(pipe, new_pipe_type): # in some cases we want to reset the pipeline to parent as they dont have their own variants if new_pipe_type == DiffusersTaskType.IMAGE_2_IMAGE or new_pipe_type == DiffusersTaskType.INPAINTING: if n == 'StableDiffusionPAGPipeline': - new_pipe = switch_pipe(diffusers.StableDiffusionPipeline, pipe) + pipe = switch_pipe(diffusers.StableDiffusionPipeline, pipe) if n == 'StableDiffusionXLPAGPipeline': - new_pipe = switch_pipe(diffusers.StableDiffusionXLPipeline, pipe) + pipe = switch_pipe(diffusers.StableDiffusionXLPipeline, pipe) sd_checkpoint_info = getattr(pipe, "sd_checkpoint_info", None) sd_model_checkpoint = getattr(pipe, "sd_model_checkpoint", None) diff --git a/wiki b/wiki index 2dba58a69..15dd79d77 160000 --- a/wiki +++ b/wiki @@ -1 +1 @@ -Subproject commit 2dba58a6962b70e92a077dcda8f178f5e811f175 +Subproject commit 15dd79d7749cf2af42371bf3dfdd4c60571a7fbf