do not apply pag for img2img

This commit is contained in:
Vladimir Mandic
2024-06-23 10:53:43 -04:00
parent 72f6cf6a1f
commit 5f249f3aef
+3
View File
@@ -18,6 +18,9 @@ def apply(p: processing.StableDiffusionProcessing): # pylint: disable=arguments-
return None
if p.pag_scale == 0:
return
if sd_models.get_diffusers_task(shared.sd_model) != sd_models.DiffusersTaskType.TEXT_2_IMAGE:
shared.log.warning(f'PAG: pipeline={c} not implemented')
return None
if detect.is_sd15(c):
orig_pipeline = shared.sd_model
shared.sd_model = sd_models.switch_pipe(StableDiffusionPAGPipeline, shared.sd_model)