diff options
author | invincibledude <> | 2023-01-21 20:25:36 +0000 |
---|---|---|
committer | invincibledude <> | 2023-01-21 20:25:36 +0000 |
commit | 6c0566f937ba212e3faf1d30c337850543e85a12 (patch) | |
tree | e6de26bf7acb84bb79aac489864cca4a43d1c608 /modules/processing.py | |
parent | 3bd898b6ce94f34bcc7685672f0e4318d2d86b33 (diff) | |
download | stable-diffusion-webui-gfx803-6c0566f937ba212e3faf1d30c337850543e85a12.tar.gz stable-diffusion-webui-gfx803-6c0566f937ba212e3faf1d30c337850543e85a12.tar.bz2 stable-diffusion-webui-gfx803-6c0566f937ba212e3faf1d30c337850543e85a12.zip |
Type mismatch fix
Diffstat (limited to 'modules/processing.py')
-rw-r--r-- | modules/processing.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/processing.py b/modules/processing.py index b3206f80..65673a9d 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -864,8 +864,8 @@ class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing): img2img_sampler_name = self.sampler_name if self.sampler_name != 'PLMS' else 'DDIM' # PLMS does not support img2img so we just silently switch ot DDIM
- if self.hr_sampler != 0 and sd_samplers.samplers[self.hr_sampler].name != 'PLMS':
- img2img_sampler_name = sd_samplers.samplers[self.hr_sampler].name
+ if self.hr_sampler != 0 and self.hr_sampler != 'PLMS':
+ img2img_sampler_name = self.hr_sampler
self.sampler = sd_samplers.create_sampler(img2img_sampler_name, self.sd_model)
|