MCPcopy
hub / github.com/zai-org/CogVideo / to_d

Function to_d

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

Source from the content-addressed store, hash-verified

144
145
146def to_d(x, sigma, denoised):
147 return (x - denoised) / append_dims(sigma, x.ndim)
148
149
150def to_neg_log_sigma(sigma):

Callers 5

sampler_stepMethod · 0.85
sampler_stepMethod · 0.85
ancestral_euler_stepMethod · 0.85
__call__Method · 0.85

Calls 1

append_dimsFunction · 0.50

Tested by

no test coverage detected