mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-04 03:10:21 +00:00
fix wrong condition
This commit is contained in:
@@ -156,7 +156,7 @@ replace_torchsde_browinan()
|
|||||||
|
|
||||||
|
|
||||||
def apply_refiner(cfg_denoiser, sigma=None):
|
def apply_refiner(cfg_denoiser, sigma=None):
|
||||||
if opts.refiner_switch_by_sample_steps or not sigma:
|
if opts.refiner_switch_by_sample_steps or sigma is None:
|
||||||
completed_ratio = cfg_denoiser.step / cfg_denoiser.total_steps
|
completed_ratio = cfg_denoiser.step / cfg_denoiser.total_steps
|
||||||
cfg_denoiser.p.extra_generation_params["Refiner switch by sampling steps"] = True
|
cfg_denoiser.p.extra_generation_params["Refiner switch by sampling steps"] = True
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user