MCPcopy Create free account
hub / github.com/TencentARC/BrushNet / alpha_sigma_to_t

Function alpha_sigma_to_t

scripts/convert_dance_diffusion_to_diffusers.py:50–53  ·  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

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

Callers 1

get_crash_scheduleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected