(t, image_d, noise_d_low, noise_d_high, logsnr_min, logsnr_max)
| 365 | return logsnr_schedule_cosine(t, logsnr_min - shift, logsnr_max - shift) + shift |
| 366 | |
| 367 | def logsnr_schedule_cosine_interpolated(t, image_d, noise_d_low, noise_d_high, logsnr_min, logsnr_max): |
| 368 | logsnr_low = logsnr_schedule_cosine_shifted(t, image_d, noise_d_low, logsnr_min, logsnr_max) |
| 369 | logsnr_high = logsnr_schedule_cosine_shifted(t, image_d, noise_d_high, logsnr_min, logsnr_max) |
| 370 | return torch.lerp(logsnr_low, logsnr_high, t) |
| 371 | |
| 372 | logsnr_min = -2 * math.log(min_value / sigma_data) |
| 373 | logsnr_max = -2 * math.log(max_value / sigma_data) |
no test coverage detected