attempt at unipc latent upscaling

i should have taken linear algebra before i dropped out...
This commit is contained in:
cool-bigdogs-tshirt
2023-04-27 11:24:26 -05:00
parent 3b6effe4a9
commit 9a09b2eef3
2 changed files with 76 additions and 1 deletions
+2 -1
View File
@@ -970,7 +970,8 @@ class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing):
shared.state.nextjob()
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
if self.sampler_name in ['PLMS']:
# PLMS does not support img2img, use fallback instead
img2img_sampler_name = shared.opts.fallback_sampler
self.sampler = sd_samplers.create_sampler(img2img_sampler_name, self.sd_model)