mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-27 14:50:20 +08:00
remove redundant op when cfg_pp=False
This commit is contained in:
parent
f9ca75020e
commit
3de7d3bb25
@ -859,7 +859,9 @@ def sample_dpmpp_2m_sde(model, x, sigmas, extra_args=None, callback=None, disabl
|
|||||||
current_denoised = uncond_denoised if cfg_pp else denoised
|
current_denoised = uncond_denoised if cfg_pp else denoised
|
||||||
|
|
||||||
x = sigmas[i + 1] / sigmas[i] * (-h * eta).exp() * x + alpha_t * (-h_eta).expm1().neg() * denoised
|
x = sigmas[i + 1] / sigmas[i] * (-h * eta).exp() * x + alpha_t * (-h_eta).expm1().neg() * denoised
|
||||||
x = x + alpha_t * (-h_eta).exp().neg() * (current_denoised - denoised)
|
|
||||||
|
if cfg_pp:
|
||||||
|
x = x + alpha_t * (-h_eta).exp().neg() * (current_denoised - denoised)
|
||||||
|
|
||||||
if old_denoised is not None:
|
if old_denoised is not None:
|
||||||
r = h_last / h
|
r = h_last / h
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user