You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2024-07-14 : Update online sample to use WebGPU if possible
2024-07-15 : Added DDIM sampling method
1. DDPM Introduction
- a fixed (or predefined) forward diffusion process of adding Gaussian noise to an image gradually, until ending up with pure noise
- a learned reverse denoising diffusion process, where a neural network is trained to gradually denoise an image starting from pure noise, until ending up with an actual image.
Both the forward and reverse process indexed by happen for some number of finite time steps (the DDPM authors use =1000). You start with where you sample a real image from your data distribution, and the forward process samples some noise from a Gaussian distribution at each time step , which is added to the image of the previous time step. Given a sufficiently large and a well behaved schedule for adding noise at each time step, you end up with what is called an isotropic Gaussian distribution at via a gradual process
2. Forward Process
This process is a markov chain, only depends on . adds Gaussian noise at each time step , according to a known variance schedule
is not constant at each time step . In fact one defines a so-called "variance schedule", which can be linear, quadratic, cosine, etc.
Gaussian noise, sampled from standard normal distribution.
Note: This README.md is intended solely for previewing on the Github page. If you wish to view the rendered page locally, please consult README.raw.md.