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