MCPcopy Index your code
hub / github.com/huggingface/diffusers / alpha_sigma_to_t

Function alpha_sigma_to_t

scripts/convert_dance_diffusion_to_diffusers.py:51–54  ·  view source on GitHub ↗

Returns a timestep, given the scaling factors for the clean image and for the noise.

(alpha, sigma)

Source from the content-addressed store, hash-verified

49
50
51def alpha_sigma_to_t(alpha, sigma):
52 """Returns a timestep, given the scaling factors for the clean image and for
53 the noise."""
54 return torch.atan2(sigma, alpha) / math.pi * 2
55
56
57def get_crash_schedule(t):

Callers 1

get_crash_scheduleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…