Constructs an polynomial in log sigma noise schedule.
(n, sigma_min, sigma_max, rho=1., device='cpu')
| 30 | |
| 31 | |
| 32 | def 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 | |
| 39 | def get_sigmas_vp(n, beta_d=19.9, beta_min=0.1, eps_s=1e-3, device='cpu'): |
nothing calls this directly
no test coverage detected