4 hidden checks

Implement the formulas behind the forward diffusion process and the VAE loss.

  • linear_betas(T, start=1e-4, end=0.02): T noise variances evenly spaced from start to end.
  • alpha_bar(betas): the running product (an array the same length as betas).
  • q_sample(x0, t, eps, abar): the noised image using abar[t].
  • vae_kl(mu, logvar): over all elements.
checks
  • linear_betasnot run
  • alpha_bar is the cumulative productnot run
  • q_sample mixes signal and noisenot run
  • vae_klnot run
python sleeps until you press run

Press Run & check. Your code runs first, then the hidden checks on the left.