Returns a timestep, given the scaling factors for the clean image and for the noise.
(alpha, sigma)
| 48 | |
| 49 | |
| 50 | def 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 | |
| 56 | def get_crash_schedule(t): |
no outgoing calls
no test coverage detected