control add ip-adapter

This commit is contained in:
Vladimir Mandic
2023-12-23 12:50:30 -05:00
parent 1bbdab74cf
commit 1d38358899
10 changed files with 150 additions and 16 deletions
+2 -2
View File
@@ -1261,9 +1261,9 @@ class StableDiffusionProcessingImg2Img(StableDiffusionProcessing):
self.mask_blur_y = value
def init(self, all_prompts, all_seeds, all_subseeds):
if shared.backend == shared.Backend.DIFFUSERS and self.image_mask is not None:
if shared.backend == shared.Backend.DIFFUSERS and self.image_mask is not None and not self.is_control:
shared.sd_model = modules.sd_models.set_diffuser_pipe(self.sd_model, modules.sd_models.DiffusersTaskType.INPAINTING)
elif shared.backend == shared.Backend.DIFFUSERS and self.image_mask is None:
elif shared.backend == shared.Backend.DIFFUSERS and self.image_mask is None and not self.is_control:
shared.sd_model = modules.sd_models.set_diffuser_pipe(self.sd_model, modules.sd_models.DiffusersTaskType.IMAGE_2_IMAGE)
if self.sampler_name == "PLMS":