MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / get_sigmas_polyexponential

Function get_sigmas_polyexponential

k_diffusion/sampling.py:32–36  ·  view source on GitHub ↗

Constructs an polynomial in log sigma noise schedule.

(n, sigma_min, sigma_max, rho=1., device='cpu')

Source from the content-addressed store, hash-verified

30
31
32def get_sigmas_polyexponential(n, sigma_min, sigma_max, rho=1., device='cpu'):
33 """Constructs an polynomial in log sigma noise schedule."""
34 ramp = torch.linspace(1, 0, n, device=device) ** rho
35 sigmas = torch.exp(ramp * (math.log(sigma_max) - math.log(sigma_min)) + math.log(sigma_min))
36 return append_zero(sigmas)
37
38
39def get_sigmas_vp(n, beta_d=19.9, beta_min=0.1, eps_s=1e-3, device='cpu'):

Callers

nothing calls this directly

Calls 1

append_zeroFunction · 0.85

Tested by

no test coverage detected