提交 45b8a499 编写于 作者: A AUTOMATIC1111

fix wrong condition

上级 bb24c13e
......@@ -156,7 +156,7 @@ replace_torchsde_browinan()
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
cfg_denoiser.p.extra_generation_params["Refiner switch by sampling steps"] = True
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册