mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
do not apply pag for img2img
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user