MCPcopy
hub / github.com/Stability-AI/generative-models / to_d

Function to_d

sgm/modules/diffusionmodules/sampling_utils.py:39–40  ·  view source on GitHub ↗
(x, sigma, denoised)

Source from the content-addressed store, hash-verified

37
38
39def to_d(x, sigma, denoised):
40 return (x - denoised) / append_dims(sigma, x.ndim)
41
42
43def to_neg_log_sigma(sigma):

Callers 4

sampler_stepMethod · 0.85
ancestral_euler_stepMethod · 0.85
__call__Method · 0.85

Calls 1

append_dimsFunction · 0.85

Tested by

no test coverage detected