cleanup scripts

This commit is contained in:
Vladimir Mandic
2023-04-28 13:09:34 -04:00
parent 07a589b1b3
commit 99e3fceedb
9 changed files with 17 additions and 59 deletions
+2
View File
@@ -1024,6 +1024,8 @@ class StableDiffusionProcessingImg2Img(StableDiffusionProcessing):
self.image_conditioning = None
def init(self, all_prompts, all_seeds, all_subseeds):
if self.sampler_name in ['PLMS', 'UniPC']: # PLMS/UniPC do not support img2img so we just silently switch to DDIM
self.sampler_name = shared.opts.fallback_sampler
self.sampler = sd_samplers.create_sampler(self.sampler_name, self.sd_model)
crop_region = None