fix pag switch pipeline

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2024-11-07 12:00:15 -05:00
parent 04c16a574e
commit 2b893657f4
3 changed files with 6 additions and 5 deletions
+3 -2
View File
@@ -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
+2 -2
View File
@@ -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)
+1 -1
Submodule wiki updated: 2dba58a696...15dd79d774