MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / to_d

Function to_d

k_diffusion/sampling.py:46–48  ·  view source on GitHub ↗

Converts a denoiser output to a Karras ODE derivative.

(x, sigma, denoised)

Source from the content-addressed store, hash-verified

44
45
46def to_d(x, sigma, denoised):
47 """Converts a denoiser output to a Karras ODE derivative."""
48 return (x - denoised) / utils.append_dims(sigma, x.ndim)
49
50
51def get_ancestral_step(sigma_from, sigma_to, eta=1.):

Callers 9

sample_eulerFunction · 0.85
sample_euler_ancestralFunction · 0.85
sample_heunFunction · 0.85
sample_dpm_2Function · 0.85
sample_dpm_2_ancestralFunction · 0.85
sample_lmsFunction · 0.85
ode_fnFunction · 0.85
sample_dpmpp_sdeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected