Liu Song’s Projects


~/Projects/stable-diffusion-webui

git clone https://code.lsong.org/stable-diffusion-webui

Commit

Commit
bd4b4292ef6c2cb0a452b7105485ec06301b7531
Author
catboxanon <122327233+[email protected]>
Date
2023-08-08 20:55:08 -0400 -0400
Diffstat
 modules/txt2img.py | 2 +-

Fix hr use same sampler


diff --git a/modules/txt2img.py b/modules/txt2img.py
index 8fa389b563429204f7baec7004f2baa09b96d90b..edad89305c14a34c0aa004a3937a4a68c4d85aa1 100644
--- a/modules/txt2img.py
+++ b/modules/txt2img.py
@@ -42,7 +42,7 @@         hr_second_pass_steps=hr_second_pass_steps,
         hr_resize_x=hr_resize_x,

         hr_resize_y=hr_resize_y,

         hr_checkpoint_name=None if hr_checkpoint_name == 'Use same checkpoint' else hr_checkpoint_name,

-        hr_sampler_name=hr_sampler_name,

+        hr_sampler_name=None if hr_sampler_name == 'Use same sampler' else hr_sampler_name,

         hr_prompt=hr_prompt,

         hr_negative_prompt=hr_negative_prompt,

         override_settings=override_settings,