Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
39
def
to_d(x, sigma, denoised):
40
return
(x - denoised) / append_dims(sigma, x.ndim)
41
42
43
def
to_neg_log_sigma(sigma):
Callers
4
sampler_step
Method · 0.85
ancestral_euler_step
Method · 0.85
__call__
Method · 0.85
possible_correction_step
Method · 0.85
Calls
1
append_dims
Function · 0.85
Tested by
no test coverage detected