def get_alphas_sigmas(log_snrs):
    """Returns the scaling factors for the clean image and for the noise, given
    the log SNR for a timestep."""
    alphas_squared = log_snrs.sigmoid()
    return alphas_squared.sqrt(), (1 - alphas_squared).sqrt()