Update processing.py

This commit is contained in:
catboxanon 2023-04-16 21:06:37 -04:00 committed by GitHub
parent 234fa9a57d
commit 9de7298898
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -640,7 +640,7 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
file.write(processed.infotext(p, 0))
step_multiplier = 1
if shared.opts.fix_second_order_samplers_schedule:
if not shared.opts.dont_fix_second_order_samplers_schedule:
try:
step_multiplier = 2 if sd_samplers.all_samplers_map.get(p.sampler_name).aliases[0] in ['k_dpmpp_2s_a', 'k_dpmpp_2s_a_ka', 'k_dpmpp_sde', 'k_dpmpp_sde_ka', 'k_dpm_2', 'k_dpm_2_a', 'k_heun'] else 1
except: