fix realesrgan path, secondary sampler

This commit is contained in:
Vladimir Mandic
2023-04-27 09:18:10 -04:00
parent 6c28ebaf6b
commit ba02d0c2e8
6 changed files with 15 additions and 12 deletions
+1 -1
View File
@@ -973,7 +973,7 @@ class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing):
img2img_sampler_name = self.sampler_name
if self.sampler_name in ['PLMS', 'UniPC']: # PLMS/UniPC do not support img2img so we just silently switch to DDIM
img2img_sampler_name = 'DDIM'
img2img_sampler_name = shared.opts.fallback_sampler
self.sampler = sd_samplers.create_sampler(img2img_sampler_name, self.sd_model)
samples = samples[:, :, self.truncate_y//2:samples.shape[2]-(self.truncate_y+1)//2, self.truncate_x//2:samples.shape[3]-(self.truncate_x+1)//2]