4 hidden checks
Implement the formulas behind the forward diffusion process and the VAE loss.
linear_betas(T, start=1e-4, end=0.02):Tnoise variances evenly spaced fromstarttoend.alpha_bar(betas): the running product (an array the same length asbetas).q_sample(x0, t, eps, abar): the noised image usingabar[t].vae_kl(mu, logvar): over all elements.
- linear_betasnot run
- alpha_bar is the cumulative productnot run
- q_sample mixes signal and noisenot run
- vae_klnot run